Raise LOCAL_AUTH_FAILED alert after receiving AUTHENTICATION_FAILURE
This commit is contained in:
@@ -86,7 +86,7 @@ enum alert_t {
|
||||
ALERT_RADIUS_NOT_RESPONDING,
|
||||
/** a shutdown signal has been received, argument is the signal (int) */
|
||||
ALERT_SHUTDOWN_SIGNAL,
|
||||
/** creating local authentication data failed, no arguments */
|
||||
/** local peer authentication failed (by us or by peer), no arguments */
|
||||
ALERT_LOCAL_AUTH_FAILED,
|
||||
/** peer authentication failed, no arguments */
|
||||
ALERT_PEER_AUTH_FAILED,
|
||||
|
||||
@@ -908,6 +908,7 @@ METHOD(task_t, process_i, status_t,
|
||||
DBG1(DBG_IKE, "received %N notify error",
|
||||
notify_type_names, type);
|
||||
enumerator->destroy(enumerator);
|
||||
charon->bus->alert(charon->bus, ALERT_LOCAL_AUTH_FAILED);
|
||||
return FAILED;
|
||||
}
|
||||
DBG2(DBG_IKE, "received %N notify",
|
||||
|
||||
Reference in New Issue
Block a user