diff options
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_lib.c')
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_lib.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_lib.c b/src/lib/libcrypto/rsa/rsa_lib.c index 054690cee6..5ccdfe9810 100644 --- a/src/lib/libcrypto/rsa/rsa_lib.c +++ b/src/lib/libcrypto/rsa/rsa_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsa_lib.c,v 1.21 2014/07/09 08:20:08 miod Exp $ */ | 1 | /* $OpenBSD: rsa_lib.c,v 1.22 2014/07/09 08:44:53 miod 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 | * |
| @@ -88,13 +88,8 @@ RSA_set_default_method(const RSA_METHOD *meth) | |||
| 88 | const RSA_METHOD * | 88 | const RSA_METHOD * |
| 89 | RSA_get_default_method(void) | 89 | RSA_get_default_method(void) |
| 90 | { | 90 | { |
| 91 | if (default_RSA_meth == NULL) { | 91 | if (default_RSA_meth == NULL) |
| 92 | #ifdef RSA_NULL | ||
| 93 | default_RSA_meth = RSA_null_method(); | ||
| 94 | #else | ||
| 95 | default_RSA_meth = RSA_PKCS1_SSLeay(); | 92 | default_RSA_meth = RSA_PKCS1_SSLeay(); |
| 96 | #endif | ||
| 97 | } | ||
| 98 | 93 | ||
| 99 | return default_RSA_meth; | 94 | return default_RSA_meth; |
| 100 | } | 95 | } |
