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,
|
ALERT_RADIUS_NOT_RESPONDING,
|
||||||
/** a shutdown signal has been received, argument is the signal (int) */
|
/** a shutdown signal has been received, argument is the signal (int) */
|
||||||
ALERT_SHUTDOWN_SIGNAL,
|
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,
|
ALERT_LOCAL_AUTH_FAILED,
|
||||||
/** peer authentication failed, no arguments */
|
/** peer authentication failed, no arguments */
|
||||||
ALERT_PEER_AUTH_FAILED,
|
ALERT_PEER_AUTH_FAILED,
|
||||||
|
|||||||
@@ -908,6 +908,7 @@ METHOD(task_t, process_i, status_t,
|
|||||||
DBG1(DBG_IKE, "received %N notify error",
|
DBG1(DBG_IKE, "received %N notify error",
|
||||||
notify_type_names, type);
|
notify_type_names, type);
|
||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
|
charon->bus->alert(charon->bus, ALERT_LOCAL_AUTH_FAILED);
|
||||||
return FAILED;
|
return FAILED;
|
||||||
}
|
}
|
||||||
DBG2(DBG_IKE, "received %N notify",
|
DBG2(DBG_IKE, "received %N notify",
|
||||||
|
|||||||
Reference in New Issue
Block a user