authentication failure is handled in ike_auth.c
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 15 May 2007 19:05:26 +0000 (19:05 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 15 May 2007 19:05:26 +0000 (19:05 -0000)
src/charon/sa/authenticators/rsa_authenticator.c

index beb9463..5a1a3a5 100644 (file)
@@ -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;
 }