diff options
| author | markus <> | 2003-03-17 19:57:16 +0000 |
|---|---|---|
| committer | markus <> | 2003-03-17 19:57:16 +0000 |
| commit | f70fbcbe107b93fd24d31f9afa4e99bf2464a2b7 (patch) | |
| tree | bec19d17062fad889c529144dab8655dc0a8de38 /src/lib/libcrypto/rsa/rsa_lib.c | |
| parent | a4c0f9de9c618e0271a7e122136bdfe50301a6d7 (diff) | |
| download | openbsd-f70fbcbe107b93fd24d31f9afa4e99bf2464a2b7.tar.gz openbsd-f70fbcbe107b93fd24d31f9afa4e99bf2464a2b7.tar.bz2 openbsd-f70fbcbe107b93fd24d31f9afa4e99bf2464a2b7.zip | |
update to official patch from openssl.org; ok deraadt@, millert@
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_lib.c')
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_lib.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_lib.c b/src/lib/libcrypto/rsa/rsa_lib.c index f71870a338..37fff8bce3 100644 --- a/src/lib/libcrypto/rsa/rsa_lib.c +++ b/src/lib/libcrypto/rsa/rsa_lib.c | |||
| @@ -70,7 +70,13 @@ static const RSA_METHOD *default_RSA_meth=NULL; | |||
| 70 | 70 | ||
| 71 | RSA *RSA_new(void) | 71 | RSA *RSA_new(void) |
| 72 | { | 72 | { |
| 73 | return(RSA_new_method(NULL)); | 73 | RSA *r=RSA_new_method(NULL); |
| 74 | |||
| 75 | #ifndef OPENSSL_NO_FORCE_RSA_BLINDING | ||
| 76 | r->flags|=RSA_FLAG_BLINDING; | ||
| 77 | #endif | ||
| 78 | |||
| 79 | return r; | ||
| 74 | } | 80 | } |
| 75 | 81 | ||
| 76 | void RSA_set_default_method(const RSA_METHOD *meth) | 82 | void RSA_set_default_method(const RSA_METHOD *meth) |
| @@ -181,10 +187,6 @@ RSA *RSA_new_method(ENGINE *engine) | |||
| 181 | OPENSSL_free(ret); | 187 | OPENSSL_free(ret); |
| 182 | ret=NULL; | 188 | ret=NULL; |
| 183 | } | 189 | } |
| 184 | |||
| 185 | /* Enforce blinding. */ | ||
| 186 | ret->flags |= RSA_FLAG_BLINDING; | ||
| 187 | |||
| 188 | return(ret); | 190 | return(ret); |
| 189 | } | 191 | } |
| 190 | 192 | ||
