Additional prompt keyword added to stroke.
[strongswan.git] / 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))
                {