diff options
author | Martin Willi <martin@strongswan.org> | 2006-03-23 15:25:43 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-03-23 15:25:43 +0000 |
commit | dec598220b9a293c4ec75e593ab642a8945fa4fc (patch) | |
tree | a97247afbdb29e2b071933f8c9667a7ffa03cca3 /Source/charon/sa/authenticator.c | |
parent | 3264ce50b912f2aba09d2d8e7ee7ed9d364d9e46 (diff) | |
download | strongswan-dec598220b9a293c4ec75e593ab642a8945fa4fc.tar.bz2 strongswan-dec598220b9a293c4ec75e593ab642a8945fa4fc.tar.xz |
- rewrite of logger_manager, uses now one instance per context
- cleanups for logger here and there
- removed critical flag check in payload verification (conformance to IKEv2)
- so thats and theres everywere... ;-)
Diffstat (limited to 'Source/charon/sa/authenticator.c')
-rw-r--r-- | Source/charon/sa/authenticator.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/Source/charon/sa/authenticator.c b/Source/charon/sa/authenticator.c index 8b96246ac..92dee5c62 100644 --- a/Source/charon/sa/authenticator.c +++ b/Source/charon/sa/authenticator.c @@ -125,9 +125,6 @@ static chunk_t allocate_octets(private_authenticator_t *this, chunk_t octets; id_with_header[0] = my_id->get_id_type(my_id); - /* TODO: - * Reserved bytes are not in any case zero. - */ id_with_header[1] = 0x00; id_with_header[2] = 0x00; id_with_header[3] = 0x00; @@ -213,11 +210,11 @@ static status_t verify_auth_data (private_authenticator_t *this, } chunk_t my_auth_data = this->build_preshared_secret_signature(this, - last_received_packet, - my_nonce, - other_id_payload, - initiator, - preshared_secret); + last_received_packet, + my_nonce, + other_id_payload, + initiator, + preshared_secret); allocator_free_chunk(&preshared_secret); if (auth_data.len != my_auth_data.len) @@ -251,8 +248,8 @@ static status_t verify_auth_data (private_authenticator_t *this, auth_data = auth_payload->get_data(auth_payload); status = charon->credentials->get_rsa_public_key(charon->credentials, - other_id, - &public_key); + other_id, + &public_key); if (status != SUCCESS) { other_id->destroy(other_id); @@ -393,5 +390,5 @@ authenticator_t *authenticator_create(protected_ike_sa_t *ike_sa) this->prf = this->ike_sa->get_prf(this->ike_sa); this->logger = this->ike_sa->get_logger(this->ike_sa); - return &(this->public); + return &(this->public); } |