vici: Handle "xauth" as an alias for "eap" secrets
authorMartin Willi <martin@revosec.ch>
Tue, 6 May 2014 08:59:55 +0000 (10:59 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 7 May 2014 12:13:38 +0000 (14:13 +0200)
src/libcharon/plugins/vici/vici_cred.c

index 3557cf8..2a9231d 100644 (file)
@@ -218,7 +218,7 @@ CALLBACK(load_shared, vici_message_t*,
        {
                type = SHARED_IKE;
        }
-       else if (strcaseeq(str, "eap"))
+       else if (strcaseeq(str, "eap") || streq(str, "xauth"))
        {
                type = SHARED_EAP;
        }