summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-keygen.c
diff options
context:
space:
mode:
authorrees <rees@openbsd.org>2002-03-21 21:54:34 +0000
committerrees <rees@openbsd.org>2002-03-21 21:54:34 +0000
commit69f6ab2dcfd41f6b9888ed909aca40f7633c90b3 (patch)
tree4c6c17564f4c5dc26c182710c06fae93161ce4a7 /usr.bin/ssh/ssh-keygen.c
parenttry to (proxy)connect with UsePrivilegeSeparation enabled. (diff)
downloadwireguard-openbsd-69f6ab2dcfd41f6b9888ed909aca40f7633c90b3.tar.xz
wireguard-openbsd-69f6ab2dcfd41f6b9888ed909aca40f7633c90b3.zip
Add PIN-protection for secret key.
Diffstat (limited to 'usr.bin/ssh/ssh-keygen.c')
-rw-r--r--usr.bin/ssh/ssh-keygen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c
index 73817a63b05..a0f0c9a7fb1 100644
--- a/usr.bin/ssh/ssh-keygen.c
+++ b/usr.bin/ssh/ssh-keygen.c
@@ -12,7 +12,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-keygen.c,v 1.95 2002/03/21 16:54:53 markus Exp $");
+RCSID("$OpenBSD: ssh-keygen.c,v 1.96 2002/03/21 21:54:34 rees Exp $");
#include <openssl/evp.h>
#include <openssl/pem.h>
@@ -414,7 +414,7 @@ do_download(struct passwd *pw, const char *sc_reader_id)
{
Key *pub = NULL;
- pub = sc_get_key(sc_reader_id);
+ pub = sc_get_key(sc_reader_id, NULL);
if (pub == NULL)
fatal("cannot read public key from smartcard");
key_write(pub, stdout);