summaryrefslogtreecommitdiff
path: root/ssh-keygen.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-03-22 03:47:38 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-03-22 03:47:38 +0000
commit266ec63eb36e2d3154ead355ce67cdee5c9394a3 (patch)
tree09b82e7682702d238de7b7055936721e6a1c9397 /ssh-keygen.c
parent943481cc774d31f5de75c16efbe8f3394e9470ab (diff)
- rees@cvs.openbsd.org 2002/03/21 21:54:34
[scard.c scard.h ssh-keygen.c] Add PIN-protection for secret key.
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r--ssh-keygen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c
index d14c99004..7d3629365 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14#include "includes.h" 14#include "includes.h"
15RCSID("$OpenBSD: ssh-keygen.c,v 1.95 2002/03/21 16:54:53 markus Exp $"); 15RCSID("$OpenBSD: ssh-keygen.c,v 1.96 2002/03/21 21:54:34 rees Exp $");
16 16
17#include <openssl/evp.h> 17#include <openssl/evp.h>
18#include <openssl/pem.h> 18#include <openssl/pem.h>
@@ -418,7 +418,7 @@ do_download(struct passwd *pw, const char *sc_reader_id)
418{ 418{
419 Key *pub = NULL; 419 Key *pub = NULL;
420 420
421 pub = sc_get_key(sc_reader_id); 421 pub = sc_get_key(sc_reader_id, NULL);
422 if (pub == NULL) 422 if (pub == NULL)
423 fatal("cannot read public key from smartcard"); 423 fatal("cannot read public key from smartcard");
424 key_write(pub, stdout); 424 key_write(pub, stdout);