Pass IKEv1 specific keymat to ike_keys hook

This commit is contained in:
Martin Willi
2012-03-20 17:31:37 +01:00
parent 264514826c
commit 23f9e7a18d
6 changed files with 20 additions and 12 deletions
+2 -2
View File
@@ -215,9 +215,9 @@ METHOD(phase1_t, derive_keys, bool,
DBG1(DBG_IKE, "key derivation for %N failed", auth_method_names, method);
return FALSE;
}
charon->bus->ike_keys(charon->bus, this->ike_sa, this->dh, this->dh_value,
this->nonce_i, this->nonce_r, NULL, shared_key);
DESTROY_IF(shared_key);
charon->bus->ike_keys(charon->bus, this->ike_sa, this->dh,
this->nonce_i, this->nonce_r, NULL);
return TRUE;
}
+2 -2
View File
@@ -354,8 +354,8 @@ static bool derive_keys(private_ike_init_t *this,
{
return FALSE;
}
charon->bus->ike_keys(charon->bus, this->ike_sa, this->dh,
nonce_i, nonce_r, this->old_sa);
charon->bus->ike_keys(charon->bus, this->ike_sa, this->dh, chunk_empty,
nonce_i, nonce_r, this->old_sa, NULL);
return TRUE;
}