diff options
author | Tobias Brunner <tobias@strongswan.org> | 2016-11-16 17:12:33 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2017-02-16 19:23:51 +0100 |
commit | ed105f45afca41b4e445c18f24f219352a4c6ef0 (patch) | |
tree | ad00aa9fbf1f38fff645ea2a281ac1d5263c089c /src/swanctl/commands/load_creds.c | |
parent | 3bedf10b25fe8d5241709a446b3e1faffdc79b01 (diff) | |
download | strongswan-ed105f45afca41b4e445c18f24f219352a4c6ef0.tar.bz2 strongswan-ed105f45afca41b4e445c18f24f219352a4c6ef0.tar.xz |
vici: Add support for NT Hash secrets
Fixes #1002.
Diffstat (limited to 'src/swanctl/commands/load_creds.c')
-rw-r--r-- | src/swanctl/commands/load_creds.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/swanctl/commands/load_creds.c b/src/swanctl/commands/load_creds.c index 126b61e64..836017893 100644 --- a/src/swanctl/commands/load_creds.c +++ b/src/swanctl/commands/load_creds.c @@ -583,6 +583,7 @@ static bool load_secret(load_ctx_t *ctx, char *section) char *types[] = { "eap", "xauth", + "ntlm", "ike", "private", "rsa", @@ -605,7 +606,8 @@ static bool load_secret(load_ctx_t *ctx, char *section) fprintf(stderr, "ignoring unsupported secret '%s'\n", section); return FALSE; } - if (!streq(type, "eap") && !streq(type, "xauth") && !streq(type, "ike")) + if (!streq(type, "eap") && !streq(type, "xauth") && !streq(type, "ntlm") && + !streq(type, "ike")) { /* skip non-shared secrets */ return TRUE; } |