Add AUTH_RULE_IDENTITY_LOOSE which allows to use IDr loosely as initiator

If it is set on an auth config IDr will not be sent, and later the configured
identity will not only be checked against the returned IDr, but also
against other identities contained in the responder's certificate.
This commit is contained in:
Tobias Brunner
2012-09-18 11:16:10 +02:00
parent cf1ec85207
commit 3a8852c76f
3 changed files with 28 additions and 1 deletions
+3
View File
@@ -67,6 +67,9 @@ extern enum_name_t *auth_class_names;
enum auth_rule_t {
/** identity to use for IKEv2 authentication exchange, identification_t* */
AUTH_RULE_IDENTITY,
/** if TRUE don't send IDr as initiator, but verify the identity after
* receiving IDr (but also verify it against subjectAltNames), bool */
AUTH_RULE_IDENTITY_LOOSE,
/** authentication class, auth_class_t */
AUTH_RULE_AUTH_CLASS,
/** AAA-backend identity for EAP methods supporting it, identification_t* */