mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-08 00:02:03 -04:00
Raise an alert if an authorize() hook fails
This commit is contained in:
parent
45d6134218
commit
c57fe7ac6f
@ -720,6 +720,10 @@ METHOD(bus_t, authorize, bool,
|
|||||||
}
|
}
|
||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
this->mutex->unlock(this->mutex);
|
this->mutex->unlock(this->mutex);
|
||||||
|
if (!success)
|
||||||
|
{
|
||||||
|
alert(this, ALERT_AUTHORIZATION_FAILED);
|
||||||
|
}
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -124,6 +124,8 @@ enum alert_t {
|
|||||||
ALERT_UNIQUE_KEEP,
|
ALERT_UNIQUE_KEEP,
|
||||||
/** allocating virtual IP failed, linked_list_t of host_t requested */
|
/** allocating virtual IP failed, linked_list_t of host_t requested */
|
||||||
ALERT_VIP_FAILURE,
|
ALERT_VIP_FAILURE,
|
||||||
|
/** an authorize() hook failed, no argument */
|
||||||
|
ALERT_AUTHORIZATION_FAILED,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user