ikev2: Add task that verifies a peer's certificate
On failure the SA is deleted and reestablished as configured. The task is activated after the REAUTH_COMPLETE task so a make-before-break reauth is completed before the new SA might get torn down.
This commit is contained in:
@@ -527,6 +527,11 @@ METHOD(task_manager_t, initiate, status_t,
|
||||
exchange = INFORMATIONAL;
|
||||
break;
|
||||
}
|
||||
if (activate_task(this, TASK_IKE_VERIFY_PEER_CERT))
|
||||
{
|
||||
exchange = INFORMATIONAL;
|
||||
break;
|
||||
}
|
||||
case IKE_REKEYING:
|
||||
if (activate_task(this, TASK_IKE_DELETE))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user