keymat: derive_ike_keys updated with XAUTH RSA:s
authorClavister OpenSource <opensource@clavister.com>
Mon, 5 Dec 2011 12:54:54 +0000 (13:54 +0100)
committerClavister OpenSource <opensource@clavister.com>
Tue, 20 Mar 2012 16:31:11 +0000 (17:31 +0100)
src/libcharon/sa/keymat_v1.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index fc49a20..19d6a74
@@ -426,8 +426,14 @@ METHOD(keymat_v1_t, derive_ike_keys, bool,
                        this->prf->allocate_bytes(this->prf, nonces, &this->skeyid);
                        break;
                }
-               case AUTH_RSA:
                case AUTH_XAUTH_INIT_RSA:
+               case AUTH_XAUTH_RESP_RSA:
+               {
+                       this->prf->set_key(this->prf, nonces);
+                       this->prf->allocate_bytes(this->prf, g_xy, &this->skeyid);
+                       break;
+               }
+               case AUTH_RSA:
                {
                        /* signatures : SKEYID = prf(Ni_b | Nr_b, g^xy)
                         * pubkey encr: SKEYID = prf(hash(Ni_b | Nr_b), CKY-I | CKY-R) */