vici: Add support for PPKs
authorTobias Brunner <tobias@strongswan.org>
Wed, 25 Jul 2018 15:23:12 +0000 (17:23 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 10 Sep 2018 16:03:01 +0000 (18:03 +0200)
src/libcharon/plugins/vici/vici_cred.c

index ec6c80a..0383388 100644 (file)
@@ -442,6 +442,10 @@ CALLBACK(load_shared, vici_message_t*,
        {
                type = SHARED_NT_HASH;
        }
+       else if (strcaseeq(str, "ppk"))
+       {
+               type = SHARED_PPK;
+       }
        else
        {
                return create_reply("invalid shared key type: %s", str);