diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-11-21 11:55:55 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-11-21 11:55:55 +0100 |
commit | 35ba45916cba3bc979f36d745a18dd0ea3e744b9 (patch) | |
tree | 1093a2d4bf2dde3b87ef62e2585e5340626ae9cd /src | |
parent | ef214f2855b47c886b4dc84af1c83e0193bcfdf2 (diff) | |
download | strongswan-35ba45916cba3bc979f36d745a18dd0ea3e744b9.tar.bz2 strongswan-35ba45916cba3bc979f36d745a18dd0ea3e744b9.tar.xz |
Fixed two bugs in logging MSK during EAP-SIM/AKA
msk is already a pointer to a chunk_t and it was actually not set yet.
Diffstat (limited to 'src')
-rw-r--r-- | src/libsimaka/simaka_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsimaka/simaka_crypto.c b/src/libsimaka/simaka_crypto.c index 8b47198df..e60c02a1a 100644 --- a/src/libsimaka/simaka_crypto.c +++ b/src/libsimaka/simaka_crypto.c @@ -150,7 +150,6 @@ METHOD(simaka_crypto_t, derive_keys_full, bool, k_encr = chunk_create(str.ptr, KENCR_LEN); k_auth = chunk_create(str.ptr + KENCR_LEN, KAUTH_LEN); - DBG3(DBG_LIB, "K_encr %B\nK_auth %B\nMSK %B", &k_encr, &k_auth, &msk); if (!this->signer->set_key(this->signer, k_auth) || !this->crypter->set_key(this->crypter, k_encr)) @@ -160,6 +159,7 @@ METHOD(simaka_crypto_t, derive_keys_full, bool, } *msk = chunk_clone(chunk_create(str.ptr + KENCR_LEN + KAUTH_LEN, MSK_LEN)); + DBG3(DBG_LIB, "K_encr %B\nK_auth %B\nMSK %B", &k_encr, &k_auth, msk); call_hook(this, k_encr, k_auth); |