diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-05-14 17:36:46 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-06-11 17:33:30 +0200 |
commit | e838c39ba965787395ee05f64e78990398d3624c (patch) | |
tree | 5f4b26e8d75e3f97621021bbb45fec2ab97f0a69 /src/starter/args.c | |
parent | 041e763b7741906f18ec38bcb64fbabe11256080 (diff) | |
download | strongswan-e838c39ba965787395ee05f64e78990398d3624c.tar.bz2 strongswan-e838c39ba965787395ee05f64e78990398d3624c.tar.xz |
starter: Parse authby as string.
Diffstat (limited to 'src/starter/args.c')
-rw-r--r-- | src/starter/args.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/starter/args.c b/src/starter/args.c index 00d66eaed..336064633 100644 --- a/src/starter/args.c +++ b/src/starter/args.c @@ -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 */ }, |