tuxillo's projects
/
dragonfly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Import OpenSSL-1.0.0b.
[dragonfly.git]
/
crypto
/
openssl
/
crypto
/
rsa
/
rsa_eay.c
diff --git
a/crypto/openssl/crypto/rsa/rsa_eay.c
b/crypto/openssl/crypto/rsa/rsa_eay.c
index
c5eaeea
..
7c94188
100644
(file)
--- a/
crypto/openssl/crypto/rsa/rsa_eay.c
+++ b/
crypto/openssl/crypto/rsa/rsa_eay.c
@@
-675,7
+675,7
@@
static int RSA_eay_public_decrypt(int flen, const unsigned char *from,
rsa->_method_mod_n)) goto err;
if ((padding == RSA_X931_PADDING) && ((ret->d[0] & 0xf) != 12))
-
BN_sub(ret, rsa->n, ret)
;
+
if (!BN_sub(ret, rsa->n, ret)) goto err
;
p=buf;
i=BN_bn2bin(ret,p);