Additional prompt keyword added to stroke.
authorTobias Brunner <tobias@strongswan.org>
Tue, 17 Apr 2012 09:13:44 +0000 (11:13 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 17 Apr 2012 12:20:58 +0000 (14:20 +0200)
src/stroke/stroke.c

index d4e0447..2e08114 100644 (file)
@@ -89,9 +89,11 @@ static int send_stroke_msg (stroke_msg_t *msg)
        {
                buffer[byte_count] = '\0';
 
-               /* we prompt if we receive the "Passphrase:"/"PIN:" magic keyword */
+               /* we prompt if we receive a magic keyword */
                if ((byte_count >= 12 &&
                         strcmp(buffer + byte_count - 12, "Passphrase:\n") == 0) ||
+                       (byte_count >= 10 &&
+                        strcmp(buffer + byte_count - 10, "Password:\n") == 0) ||
                        (byte_count >= 5 &&
                         strcmp(buffer + byte_count - 5, "PIN:\n") == 0))
                {