From ff5cb888f6d063f74309699e563e470b5b72f490 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 17 Apr 2012 11:13:44 +0200 Subject: [PATCH] Additional prompt keyword added to stroke. --- src/stroke/stroke.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stroke/stroke.c b/src/stroke/stroke.c index d4e0447152..2e081147cc 100644 --- a/src/stroke/stroke.c +++ b/src/stroke/stroke.c @@ -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)) {