diff options
Diffstat (limited to 'sshconnect2.c')
-rw-r--r-- | sshconnect2.c | 7 |
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" |
26 | RCSID("$OpenBSD: sshconnect2.c,v 1.79 2001/06/25 20:26:37 stevesk Exp $"); | 26 | RCSID("$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; |