mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-07 00:01:49 -04:00
Additional prompt keyword added to stroke.
This commit is contained in:
parent
4c31657d2c
commit
ff5cb888f6
@ -89,9 +89,11 @@ static int send_stroke_msg (stroke_msg_t *msg)
|
|||||||
{
|
{
|
||||||
buffer[byte_count] = '\0';
|
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 &&
|
if ((byte_count >= 12 &&
|
||||||
strcmp(buffer + byte_count - 12, "Passphrase:\n") == 0) ||
|
strcmp(buffer + byte_count - 12, "Passphrase:\n") == 0) ||
|
||||||
|
(byte_count >= 10 &&
|
||||||
|
strcmp(buffer + byte_count - 10, "Password:\n") == 0) ||
|
||||||
(byte_count >= 5 &&
|
(byte_count >= 5 &&
|
||||||
strcmp(buffer + byte_count - 5, "PIN:\n") == 0))
|
strcmp(buffer + byte_count - 5, "PIN:\n") == 0))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user