Raise LOCAL_AUTH_FAILED alert after receiving AUTHENTICATION_FAILURE

This commit is contained in:
Martin Willi
2013-05-15 17:18:03 +02:00
parent c6e1eda6d0
commit 965348cd7a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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,
+1
View File
@@ -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",