From 9b6591e7964c77b55bc7a4861557796e3c90602c Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Tue, 15 May 2007 19:05:26 +0000 Subject: [PATCH] authentication failure is handled in ike_auth.c --- src/charon/sa/authenticators/rsa_authenticator.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/charon/sa/authenticators/rsa_authenticator.c b/src/charon/sa/authenticators/rsa_authenticator.c index beb9463fb..5a1a3a560 100644 --- a/src/charon/sa/authenticators/rsa_authenticator.c +++ b/src/charon/sa/authenticators/rsa_authenticator.c @@ -78,9 +78,11 @@ static status_t verify(private_rsa_authenticator_t *this, chunk_t ike_sa_init, octets, auth_data, other_id, &issuer); chunk_free(&octets); - DBG1(DBG_IKE, "authentication of '%D' with %N %s", - other_id, auth_method_names, AUTH_RSA, - (status == SUCCESS)? "successful":"failed"); + if (status == SUCCESS) + { + DBG1(DBG_IKE, "authentication of '%D' with %N successful", + other_id, auth_method_names, AUTH_RSA); + } return status; }