diff options
author | 2003-03-17 19:57:16 +0000 | |
---|---|---|
committer | 2003-03-17 19:57:16 +0000 | |
commit | 2c33109cf6aff1765ed16fa19f9efb360088c583 (patch) | |
tree | f1b242aa85fa1796bf7c102e64a668738cb2deb9 /lib/libcrypto/rsa/rsa_lib.c | |
parent | use snprintf throughout (diff) | |
download | wireguard-openbsd-2c33109cf6aff1765ed16fa19f9efb360088c583.tar.xz wireguard-openbsd-2c33109cf6aff1765ed16fa19f9efb360088c583.zip |
update to official patch from openssl.org; ok deraadt@, millert@
Diffstat (limited to 'lib/libcrypto/rsa/rsa_lib.c')
-rw-r--r-- | lib/libcrypto/rsa/rsa_lib.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libcrypto/rsa/rsa_lib.c b/lib/libcrypto/rsa/rsa_lib.c index f71870a3387..37fff8bce3a 100644 --- a/lib/libcrypto/rsa/rsa_lib.c +++ b/lib/libcrypto/rsa/rsa_lib.c @@ -70,7 +70,13 @@ static const RSA_METHOD *default_RSA_meth=NULL; RSA *RSA_new(void) { - return(RSA_new_method(NULL)); + RSA *r=RSA_new_method(NULL); + +#ifndef OPENSSL_NO_FORCE_RSA_BLINDING + r->flags|=RSA_FLAG_BLINDING; +#endif + + return r; } void RSA_set_default_method(const RSA_METHOD *meth) @@ -181,10 +187,6 @@ RSA *RSA_new_method(ENGINE *engine) OPENSSL_free(ret); ret=NULL; } - - /* Enforce blinding. */ - ret->flags |= RSA_FLAG_BLINDING; - return(ret); } |