From dec598220b9a293c4ec75e593ab642a8945fa4fc Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 23 Mar 2006 15:25:43 +0000 Subject: - 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... ;-) --- Source/charon/sa/authenticator.c | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'Source/charon/sa/authenticator.c') 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); } -- cgit v1.2.3