From a0d8435d26cdfa75eed61b864f9a1dfc0d6c956d Mon Sep 17 00:00:00 2001 From: miod <> Date: Wed, 9 Jul 2014 08:55:32 +0000 Subject: Remove RSA_memory_lock(). This undocumented function sort-of serializes your RSA components to memory and clears them, but there is no unserializing function, so its usefulness is close to zero. A grep through the ports tree sources show that it is only present in ports embedding their own openssl copy, and never used otherwise. ok jsing@ --- src/lib/libcrypto/rsa/rsa.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/lib/libcrypto/rsa/rsa.h') diff --git a/src/lib/libcrypto/rsa/rsa.h b/src/lib/libcrypto/rsa/rsa.h index 3c49c13215..daea33ff60 100644 --- a/src/lib/libcrypto/rsa/rsa.h +++ b/src/lib/libcrypto/rsa/rsa.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa.h,v 1.19 2014/06/12 15:49:30 deraadt Exp $ */ +/* $OpenBSD: rsa.h,v 1.20 2014/07/09 08:55:32 miod Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -155,7 +155,6 @@ struct rsa_st /* all BIGNUM values are actually in the following data, if it is not * NULL */ - char *bignum_data; BN_BLINDING *blinding; BN_BLINDING *mt_blinding; }; @@ -312,9 +311,6 @@ const RSA_METHOD *RSA_get_default_method(void); const RSA_METHOD *RSA_get_method(const RSA *rsa); int RSA_set_method(RSA *rsa, const RSA_METHOD *meth); -/* This function needs the memory locking malloc callbacks to be installed */ -int RSA_memory_lock(RSA *r); - /* these are the actual SSLeay RSA functions */ const RSA_METHOD *RSA_PKCS1_SSLeay(void); -- cgit v1.2.3-55-g6feb