From f7db3bb64caf8d7822a18d6fd4c0480df7d0086d Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Mon, 6 Aug 2001 21:35:51 +0000 Subject: - markus@cvs.openbsd.org 2001/08/01 22:03:33 [authfd.c authfd.h readconf.c readconf.h scard.c scard.h ssh-add.c ssh-agent.c ssh.c] use strings instead of ints for smartcard reader ids --- ssh.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ssh.c') diff --git a/ssh.c b/ssh.c index 70eaa772b..8f1d6ac73 100644 --- a/ssh.c +++ b/ssh.c @@ -39,7 +39,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh.c,v 1.132 2001/07/31 09:28:44 jakob Exp $"); +RCSID("$OpenBSD: ssh.c,v 1.133 2001/08/01 22:03:33 markus Exp $"); #include #include @@ -372,7 +372,7 @@ again: break; case 'I': #ifdef SMARTCARD - options.smartcard_device = atoi(optarg); + options.smartcard_device = xstrdup(optarg); #else fprintf(stderr, "no support for smartcards.\n"); #endif @@ -1151,7 +1151,7 @@ load_public_identity_files(void) int i = 0; #ifdef SMARTCARD - if (options.smartcard_device >= 0 && + if (options.smartcard_device != NULL && options.num_identity_files + 1 < SSH_MAX_IDENTITY_FILES && (public = sc_get_key(options.smartcard_device)) != NULL ) { Key *new; -- cgit v1.2.3