auth-cfg: Add lower case enum names for auth_rule_t

Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
This commit is contained in:
Thomas Egerer
2025-04-10 08:31:09 +02:00
committed by Tobias Brunner
parent af9095fdd9
commit a7c285bc50
2 changed files with 38 additions and 2 deletions
+32 -1
View File
@@ -43,7 +43,7 @@ ENUM(auth_rule_names, AUTH_RULE_IDENTITY, AUTH_HELPER_AC_CERT,
"RULE_EAP_VENDOR",
"RULE_XAUTH_BACKEND",
"RULE_XAUTH_IDENTITY",
"AUTH_RULE_CA_IDENTITY",
"RULE_CA_IDENTITY",
"RULE_CA_CERT",
"RULE_IM_CERT",
"RULE_SUBJECT_CERT",
@@ -64,6 +64,37 @@ ENUM(auth_rule_names, AUTH_RULE_IDENTITY, AUTH_HELPER_AC_CERT,
"HELPER_AC_CERT",
);
ENUM(auth_rule_names_lower, AUTH_RULE_IDENTITY, AUTH_HELPER_AC_CERT,
"identity",
"identity_loose",
"auth_class",
"aaa_identity",
"eap_identity",
"eap_type",
"eap_vendor",
"xauth_backend",
"xauth_identity",
"ca_identity",
"ca_cert",
"im_cert",
"subject_cert",
"crl_validation",
"ocsp_validation",
"cert_validation_suspended",
"group",
"rsa_strength",
"ecdsa_strength",
"signature_scheme",
"ike_signature_scheme",
"cert_policy",
"im_cert",
"subject_cert",
"im_hash_url",
"subject_hash_url",
"revocation_cert",
"ac_cert",
);
/**
* Check if the given rule is a rule for which there may be multiple values.
*/
+6 -1
View File
@@ -132,10 +132,15 @@ enum auth_rule_t {
};
/**
* enum name for auth_rule_t.
* Names for auth_rule_t (upper case).
*/
extern enum_name_t *auth_rule_names;
/**
* Names for auth_rule_t (lower case, without "rule_" or "helper_" prefix).
*/
extern enum_name_t *auth_rule_names_lower;
/**
* Authentication/Authorization round.
*