ikev2: Add new authentication method defined by RFC 7427

This commit is contained in:
Tobias Brunner
2015-03-04 13:54:08 +01:00
parent dd0ebb5483
commit 7cd8371da2
2 changed files with 9 additions and 3 deletions
+4 -3
View File
@@ -31,13 +31,14 @@ ENUM_BEGIN(auth_method_names, AUTH_RSA, AUTH_DSS,
"RSA signature", "RSA signature",
"pre-shared key", "pre-shared key",
"DSS signature"); "DSS signature");
ENUM_NEXT(auth_method_names, AUTH_ECDSA_256, AUTH_NULL, AUTH_DSS, ENUM_NEXT(auth_method_names, AUTH_ECDSA_256, AUTH_DS, AUTH_DSS,
"ECDSA-256 signature", "ECDSA-256 signature",
"ECDSA-384 signature", "ECDSA-384 signature",
"ECDSA-521 signature", "ECDSA-521 signature",
"secure password method", "secure password method",
"NULL authentication"); "NULL authentication",
ENUM_NEXT(auth_method_names, AUTH_BLISS, AUTH_BLISS, AUTH_NULL, "digital signature");
ENUM_NEXT(auth_method_names, AUTH_BLISS, AUTH_BLISS, AUTH_DS,
"BLISS signature"); "BLISS signature");
ENUM_NEXT(auth_method_names, AUTH_XAUTH_INIT_PSK, AUTH_HYBRID_RESP_RSA, AUTH_BLISS, ENUM_NEXT(auth_method_names, AUTH_XAUTH_INIT_PSK, AUTH_HYBRID_RESP_RSA, AUTH_BLISS,
"XAuthInitPSK", "XAuthInitPSK",
+5
View File
@@ -84,6 +84,11 @@ enum auth_method_t {
*/ */
AUTH_NULL = 13, AUTH_NULL = 13,
/**
* Digital Signature as specified in RFC 7427
*/
AUTH_DS = 14,
/** /**
* BLISS Authentication Method * BLISS Authentication Method
*/ */