diff options
author | Thomas Egerer <thomas.egerer@secunet.com> | 2016-02-02 16:13:46 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2016-02-02 16:16:49 +0100 |
commit | 3d15269af96967ef3580c84bf096e83d03730ed7 (patch) | |
tree | 29c78449cc3ac62f26588b8013e4ac3bc3d69d9d | |
parent | beb4a07ea883fe7217d512f7bff634496e70965c (diff) | |
download | strongswan-3d15269af96967ef3580c84bf096e83d03730ed7.tar.bz2 strongswan-3d15269af96967ef3580c84bf096e83d03730ed7.tar.xz |
ikev2: Add debug message about failed IKE authentication
Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
-rw-r--r-- | src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c b/src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c index 2284a484d..2929033aa 100644 --- a/src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c +++ b/src/libcharon/sa/ikev2/authenticators/pubkey_authenticator.c @@ -369,6 +369,7 @@ METHOD(authenticator_t, process, status_t, signature_scheme_t scheme; status_t status = NOT_FOUND; keymat_v2_t *keymat; + const char *reason = "unsupported"; auth_payload = (auth_payload_t*)message->get_payload(message, PLV2_AUTH); if (!auth_payload) @@ -397,8 +398,11 @@ METHOD(authenticator_t, process, status_t, { break; } + reason = "payload invalid"; /* fall-through */ default: + DBG1(DBG_IKE, "%N authentication %s", auth_method_names, + auth_method, reason); return INVALID_ARG; } id = this->ike_sa->get_other_id(this->ike_sa); |