diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-04-17 11:13:44 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-04-17 14:20:58 +0200 |
commit | ff5cb888f6d063f74309699e563e470b5b72f490 (patch) | |
tree | c5a73101c58ad874245b78e1a62c99b158054237 /src | |
parent | 4c31657d2cb7f4ae355efedbf3e68745385f4060 (diff) | |
download | strongswan-ff5cb888f6d063f74309699e563e470b5b72f490.tar.bz2 strongswan-ff5cb888f6d063f74309699e563e470b5b72f490.tar.xz |
Additional prompt keyword added to stroke.
Diffstat (limited to 'src')
-rw-r--r-- | src/stroke/stroke.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stroke/stroke.c b/src/stroke/stroke.c index d4e044715..2e081147c 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)) { |