version 1.118, 2015/01/28 22:36:00 |
version 1.119, 2015/02/03 00:34:14 |
|
|
if (private == NULL) { |
if (private == NULL) { |
/* clear passphrase since it did not work */ |
/* clear passphrase since it did not work */ |
clear_pass(); |
clear_pass(); |
snprintf(msg, sizeof msg, "Enter passphrase for %.200s: ", |
snprintf(msg, sizeof msg, "Enter passphrase for %.200s%s: ", |
comment); |
comment, confirm ? " (will confirm each use)" : ""); |
for (;;) { |
for (;;) { |
pass = read_passphrase(msg, RP_ALLOW_STDIN); |
pass = read_passphrase(msg, RP_ALLOW_STDIN); |
if (strcmp(pass, "") == 0) |
if (strcmp(pass, "") == 0) |
|
|
} |
} |
clear_pass(); |
clear_pass(); |
snprintf(msg, sizeof msg, |
snprintf(msg, sizeof msg, |
"Bad passphrase, try again for %.200s: ", comment); |
"Bad passphrase, try again for %.200s%s: ", comment, |
|
confirm ? " (will confirm each use)" : ""); |
} |
} |
} |
} |
sshbuf_free(keyblob); |
sshbuf_free(keyblob); |