starter: Parse authby as string.

This commit is contained in:
Tobias Brunner
2012-06-11 17:33:30 +02:00
parent 041e763b77
commit e838c39ba9
4 changed files with 29 additions and 61 deletions
+15 -1
View File
@@ -155,6 +155,20 @@ static const char *LST_klipsdebug[] = {
NULL
};
static const char *LST_authby[] = {
"psk",
"secret",
"pubkey",
"rsa",
"rsasig",
"ecdsa",
"ecdsasig",
"xauthpsk",
"xauthrsasig",
"never",
NULL
};
typedef struct {
arg_t type;
size_t offset;
@@ -206,7 +220,7 @@ static const token_info_t token_info[] =
{ ARG_ENUM, offsetof(starter_conn_t, install_policy), LST_bool },
{ ARG_ENUM, offsetof(starter_conn_t, aggressive), LST_bool },
{ ARG_MISC, 0, NULL /* KW_AUTH */ },
{ ARG_MISC, 0, NULL /* KW_AUTHBY */ },
{ ARG_STR, offsetof(starter_conn_t, authby), LST_authby },
{ ARG_STR, offsetof(starter_conn_t, eap_identity), NULL },
{ ARG_STR, offsetof(starter_conn_t, aaa_identity), NULL },
{ ARG_MISC, 0, NULL /* KW_MOBIKE */ },