diff options
Diffstat (limited to 'auth-rsa.c')
-rw-r--r-- | auth-rsa.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/auth-rsa.c b/auth-rsa.c index 260ce2f98..5d7bdcbfc 100644 --- a/auth-rsa.c +++ b/auth-rsa.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth-rsa.c,v 1.86 2014/01/27 19:18:54 markus Exp $ */ | 1 | /* $OpenBSD: auth-rsa.c,v 1.88 2014/07/15 15:54:14 millert Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -35,6 +35,7 @@ | |||
35 | #include "buffer.h" | 35 | #include "buffer.h" |
36 | #include "pathnames.h" | 36 | #include "pathnames.h" |
37 | #include "log.h" | 37 | #include "log.h" |
38 | #include "misc.h" | ||
38 | #include "servconf.h" | 39 | #include "servconf.h" |
39 | #include "key.h" | 40 | #include "key.h" |
40 | #include "auth-options.h" | 41 | #include "auth-options.h" |
@@ -45,7 +46,6 @@ | |||
45 | #endif | 46 | #endif |
46 | #include "monitor_wrap.h" | 47 | #include "monitor_wrap.h" |
47 | #include "ssh.h" | 48 | #include "ssh.h" |
48 | #include "misc.h" | ||
49 | 49 | ||
50 | #include "digest.h" | 50 | #include "digest.h" |
51 | 51 | ||
@@ -144,7 +144,8 @@ auth_rsa_challenge_dialog(Key *key) | |||
144 | challenge = PRIVSEP(auth_rsa_generate_challenge(key)); | 144 | challenge = PRIVSEP(auth_rsa_generate_challenge(key)); |
145 | 145 | ||
146 | /* Encrypt the challenge with the public key. */ | 146 | /* Encrypt the challenge with the public key. */ |
147 | rsa_public_encrypt(encrypted_challenge, challenge, key->rsa); | 147 | if (rsa_public_encrypt(encrypted_challenge, challenge, key->rsa) != 0) |
148 | fatal("%s: rsa_public_encrypt failed", __func__); | ||
148 | 149 | ||
149 | /* Send the encrypted challenge to the client. */ | 150 | /* Send the encrypted challenge to the client. */ |
150 | packet_start(SSH_SMSG_AUTH_RSA_CHALLENGE); | 151 | packet_start(SSH_SMSG_AUTH_RSA_CHALLENGE); |