Create IKEv1 keymat hasher explicitly on sync
This commit is contained in:
@@ -236,9 +236,12 @@ static void process_ike_add(private_ha_dispatcher_t *this, ha_message_t *message
|
|||||||
method = AUTH_PSK;
|
method = AUTH_PSK;
|
||||||
shared = shared_key_create(SHARED_IKE, chunk_clone(psk));
|
shared = shared_key_create(SHARED_IKE, chunk_clone(psk));
|
||||||
}
|
}
|
||||||
ok = keymat_v1->derive_ike_keys(keymat_v1, proposal,
|
if (keymat_v1->create_hasher(keymat_v1, proposal))
|
||||||
dh, dh_remote, nonce_i, nonce_r,
|
{
|
||||||
ike_sa->get_id(ike_sa), method, shared);
|
ok = keymat_v1->derive_ike_keys(keymat_v1, proposal,
|
||||||
|
dh, dh_remote, nonce_i, nonce_r,
|
||||||
|
ike_sa->get_id(ike_sa), method, shared);
|
||||||
|
}
|
||||||
DESTROY_IF(shared);
|
DESTROY_IF(shared);
|
||||||
}
|
}
|
||||||
dh->destroy(dh);
|
dh->destroy(dh);
|
||||||
|
|||||||
Reference in New Issue
Block a user