ikev2: Add debug message about failed IKE authentication
Signed-off-by: Thomas Egerer <[email protected]>
This commit is contained in:
committed by
Tobias Brunner
parent
beb4a07ea8
commit
3d15269af9
@@ -369,6 +369,7 @@ METHOD(authenticator_t, process, status_t,
|
|||||||
signature_scheme_t scheme;
|
signature_scheme_t scheme;
|
||||||
status_t status = NOT_FOUND;
|
status_t status = NOT_FOUND;
|
||||||
keymat_v2_t *keymat;
|
keymat_v2_t *keymat;
|
||||||
|
const char *reason = "unsupported";
|
||||||
|
|
||||||
auth_payload = (auth_payload_t*)message->get_payload(message, PLV2_AUTH);
|
auth_payload = (auth_payload_t*)message->get_payload(message, PLV2_AUTH);
|
||||||
if (!auth_payload)
|
if (!auth_payload)
|
||||||
@@ -397,8 +398,11 @@ METHOD(authenticator_t, process, status_t,
|
|||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
reason = "payload invalid";
|
||||||
/* fall-through */
|
/* fall-through */
|
||||||
default:
|
default:
|
||||||
|
DBG1(DBG_IKE, "%N authentication %s", auth_method_names,
|
||||||
|
auth_method, reason);
|
||||||
return INVALID_ARG;
|
return INVALID_ARG;
|
||||||
}
|
}
|
||||||
id = this->ike_sa->get_other_id(this->ike_sa);
|
id = this->ike_sa->get_other_id(this->ike_sa);
|
||||||
|
|||||||
Reference in New Issue
Block a user