From 80c7e473818aaeb7fb9171f571861d3445db5452 Mon Sep 17 00:00:00 2001 From: miod <> Date: Wed, 9 Jul 2014 08:44:53 +0000 Subject: 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. --- src/lib/libcrypto/rsa/rsa_lib.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/lib/libcrypto/rsa/rsa_lib.c') 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 @@ -/* $OpenBSD: rsa_lib.c,v 1.21 2014/07/09 08:20:08 miod Exp $ */ +/* $OpenBSD: rsa_lib.c,v 1.22 2014/07/09 08:44:53 miod Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -88,13 +88,8 @@ RSA_set_default_method(const RSA_METHOD *meth) const RSA_METHOD * RSA_get_default_method(void) { - if (default_RSA_meth == NULL) { -#ifdef RSA_NULL - default_RSA_meth = RSA_null_method(); -#else + if (default_RSA_meth == NULL) default_RSA_meth = RSA_PKCS1_SSLeay(); -#endif - } return default_RSA_meth; } -- cgit v1.2.3-55-g6feb