summaryrefslogtreecommitdiff
path: root/sshconnect2.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-07-04 04:52:03 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-07-04 04:52:03 +0000
commitc5b680018b1fbc58ad2316199693e2805dadf638 (patch)
treec01554c5d55ef51cc90b52dbc28c7513f75fc0bd /sshconnect2.c
parenteb7a84c49e6248279ba130f8592bae356e7fb61e (diff)
- markus@cvs.openbsd.org 2001/06/26 20:14:11
[key.c key.h ssh.c sshconnect1.c sshconnect2.c] add smartcard support to the client, too (now you can use both the agent and the client).
Diffstat (limited to 'sshconnect2.c')
-rw-r--r--sshconnect2.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sshconnect2.c b/sshconnect2.c
index 258ee4834..2e2452801 100644
--- a/sshconnect2.c
+++ b/sshconnect2.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: sshconnect2.c,v 1.79 2001/06/25 20:26:37 stevesk Exp $"); 26RCSID("$OpenBSD: sshconnect2.c,v 1.80 2001/06/26 20:14:11 markus Exp $");
27 27
28#include <openssl/bn.h> 28#include <openssl/bn.h>
29#include <openssl/md5.h> 29#include <openssl/md5.h>
@@ -640,6 +640,11 @@ identity_sign_cb(Authctxt *authctxt, Key *key, u_char **sigp, int *lenp,
640 idx = authctxt->last_key_hint; 640 idx = authctxt->last_key_hint;
641 if (idx < 0) 641 if (idx < 0)
642 return -1; 642 return -1;
643
644 /* private key is stored in external hardware */
645 if (options.identity_keys[idx]->flags & KEY_FLAG_EXT)
646 return key_sign(options.identity_keys[idx], sigp, lenp, data, datalen);
647
643 private = load_identity_file(options.identity_files[idx]); 648 private = load_identity_file(options.identity_files[idx]);
644 if (private == NULL) 649 if (private == NULL)
645 return -1; 650 return -1;