]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
ikev2: Log the actual signature scheme used for RFC 7427 authentication
authorTobias Brunner <tobias@strongswan.org>
Wed, 25 Feb 2015 15:58:45 +0000 (16:58 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 4 Mar 2015 12:54:09 +0000 (13:54 +0100)
src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c

index f7ededb89a51efdeff87048845d497b31be59904..1f33aac7a0fe37ee88fba98223fda3aa262b4a94 100644 (file)
@@ -249,8 +249,9 @@ METHOD(authenticator_t, build, status_t,
                }
        }
        DBG1(DBG_IKE, "authentication of '%Y' (myself) with %N %s", id,
-                auth_method_names, auth_method,
-                (status == SUCCESS)? "successful":"failed");
+                auth_method == AUTH_DS ? signature_scheme_names : auth_method_names,
+                auth_method == AUTH_DS ? scheme : auth_method,
+                status == SUCCESS ? "successful" : "failed");
        chunk_free(&octets);
        private->destroy(private);
 
@@ -317,8 +318,9 @@ METHOD(authenticator_t, process, status_t,
        {
                if (public->verify(public, scheme, octets, auth_data))
                {
-                       DBG1(DBG_IKE, "authentication of '%Y' with %N successful",
-                                                  id, auth_method_names, auth_method);
+                       DBG1(DBG_IKE, "authentication of '%Y' with %N successful", id,
+                                auth_method == AUTH_DS ? signature_scheme_names : auth_method_names,
+                                auth_method == AUTH_DS ? scheme : auth_method);
                        status = SUCCESS;
                        auth->merge(auth, current_auth, FALSE);
                        auth->add(auth, AUTH_RULE_SIGNATURE_SCHEME, (uintptr_t)scheme);