diff options
author | miod <> | 2014-07-09 08:44:53 +0000 |
---|---|---|
committer | miod <> | 2014-07-09 08:44:53 +0000 |
commit | 80c7e473818aaeb7fb9171f571861d3445db5452 (patch) | |
tree | 0fe0376de6cf7b6cdc5dc2a821cc8ee3e7945605 /src/lib/libcrypto/rsa/rsa_lib.c | |
parent | 8cbe58f0d357b14b0ce292d336469d0554a567bc (diff) | |
download | openbsd-80c7e473818aaeb7fb9171f571861d3445db5452.tar.gz openbsd-80c7e473818aaeb7fb9171f571861d3445db5452.tar.bz2 openbsd-80c7e473818aaeb7fb9171f571861d3445db5452.zip |
RSA_NULL used to be a compile option allowing the RSA interfaces to be
compiled-in, with nonfunctional code, to be able to cope with the RSA
patent.
However, we don't use this option, and the RSA patent has expired more than 10
years ago, so just drop this piece.
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 | } |