summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa/rsa.h
diff options
context:
space:
mode:
authormiod <>2014-07-09 08:55:32 +0000
committermiod <>2014-07-09 08:55:32 +0000
commita0d8435d26cdfa75eed61b864f9a1dfc0d6c956d (patch)
tree2ec32e3be23a5e22a38511c5477a7619f55849cc /src/lib/libcrypto/rsa/rsa.h
parent647c5790bf6cd9db48b1ec80ad028bdea7918d20 (diff)
downloadopenbsd-a0d8435d26cdfa75eed61b864f9a1dfc0d6c956d.tar.gz
openbsd-a0d8435d26cdfa75eed61b864f9a1dfc0d6c956d.tar.bz2
openbsd-a0d8435d26cdfa75eed61b864f9a1dfc0d6c956d.zip
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@
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa.h')
-rw-r--r--src/lib/libcrypto/rsa/rsa.h6
1 files changed, 1 insertions, 5 deletions
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 @@
1/* $OpenBSD: rsa.h,v 1.19 2014/06/12 15:49:30 deraadt Exp $ */ 1/* $OpenBSD: rsa.h,v 1.20 2014/07/09 08:55:32 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 *
@@ -155,7 +155,6 @@ struct rsa_st
155 155
156 /* all BIGNUM values are actually in the following data, if it is not 156 /* all BIGNUM values are actually in the following data, if it is not
157 * NULL */ 157 * NULL */
158 char *bignum_data;
159 BN_BLINDING *blinding; 158 BN_BLINDING *blinding;
160 BN_BLINDING *mt_blinding; 159 BN_BLINDING *mt_blinding;
161 }; 160 };
@@ -312,9 +311,6 @@ const RSA_METHOD *RSA_get_default_method(void);
312const RSA_METHOD *RSA_get_method(const RSA *rsa); 311const RSA_METHOD *RSA_get_method(const RSA *rsa);
313int RSA_set_method(RSA *rsa, const RSA_METHOD *meth); 312int RSA_set_method(RSA *rsa, const RSA_METHOD *meth);
314 313
315/* This function needs the memory locking malloc callbacks to be installed */
316int RSA_memory_lock(RSA *r);
317
318/* these are the actual SSLeay RSA functions */ 314/* these are the actual SSLeay RSA functions */
319const RSA_METHOD *RSA_PKCS1_SSLeay(void); 315const RSA_METHOD *RSA_PKCS1_SSLeay(void);
320 316