diff options
author | beck <> | 2017-01-29 17:49:23 +0000 |
---|---|---|
committer | beck <> | 2017-01-29 17:49:23 +0000 |
commit | 957b11334a7afb14537322f0e4795b2e368b3f59 (patch) | |
tree | 1a54abba678898ee5270ae4f3404a50ee9a92eea /src/lib/libcrypto/rsa/rsa_crpt.c | |
parent | df96e020e729c6c37a8c7fe311fdd1fe6a8718c5 (diff) | |
download | openbsd-957b11334a7afb14537322f0e4795b2e368b3f59.tar.gz openbsd-957b11334a7afb14537322f0e4795b2e368b3f59.tar.bz2 openbsd-957b11334a7afb14537322f0e4795b2e368b3f59.zip |
Send the function codes from the error functions to the bit bucket,
as was done earlier in libssl. Thanks inoguchi@ for noticing
libssl had more reacharounds into this.
ok jsing@ inoguchi@
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_crpt.c')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_crpt.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_crpt.c b/src/lib/libcrypto/rsa/rsa_crpt.c index 8063a83263..f0c925602f 100644 --- a/src/lib/libcrypto/rsa/rsa_crpt.c +++ b/src/lib/libcrypto/rsa/rsa_crpt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_crpt.c,v 1.17 2017/01/21 11:00:47 beck Exp $ */ | 1 | /* $OpenBSD: rsa_crpt.c,v 1.18 2017/01/29 17:49:23 beck Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -187,8 +187,7 @@ RSA_setup_blinding(RSA *rsa, BN_CTX *in_ctx) | |||
187 | if (rsa->e == NULL) { | 187 | if (rsa->e == NULL) { |
188 | e = rsa_get_public_exp(rsa->d, rsa->p, rsa->q, ctx); | 188 | e = rsa_get_public_exp(rsa->d, rsa->p, rsa->q, ctx); |
189 | if (e == NULL) { | 189 | if (e == NULL) { |
190 | RSAerr(RSA_F_RSA_SETUP_BLINDING, | 190 | RSAerror(RSA_R_NO_PUBLIC_EXPONENT); |
191 | RSA_R_NO_PUBLIC_EXPONENT); | ||
192 | goto err; | 191 | goto err; |
193 | } | 192 | } |
194 | } else | 193 | } else |
@@ -201,7 +200,7 @@ RSA_setup_blinding(RSA *rsa, BN_CTX *in_ctx) | |||
201 | rsa->_method_mod_n); | 200 | rsa->_method_mod_n); |
202 | 201 | ||
203 | if (ret == NULL) { | 202 | if (ret == NULL) { |
204 | RSAerr(RSA_F_RSA_SETUP_BLINDING, ERR_R_BN_LIB); | 203 | RSAerror(ERR_R_BN_LIB); |
205 | goto err; | 204 | goto err; |
206 | } | 205 | } |
207 | CRYPTO_THREADID_current(BN_BLINDING_thread_id(ret)); | 206 | CRYPTO_THREADID_current(BN_BLINDING_thread_id(ret)); |