diff options
author | Geoff Thorpe <geoff@openssl.org> | 2003-10-29 04:06:50 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2003-10-29 04:06:50 +0000 |
commit | 9d473aa2e4076beb959bc9701786a0860877ee12 (patch) | |
tree | 4a14c245681bcfc01549ca827486d65f0404268a /crypto/rsa | |
parent | 6145b0b1835f14167f8e9e4701251149f9c5373f (diff) | |
download | openssl-9d473aa2e4076beb959bc9701786a0860877ee12.tar.gz |
When OPENSSL_NO_DEPRECATED is defined, deprecated functions are (or should
be) precompiled out in the API headers. This change is to ensure that if
it is defined when compiling openssl, the deprecated functions aren't
implemented either.
Diffstat (limited to 'crypto/rsa')
-rw-r--r-- | crypto/rsa/rsa_depr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/rsa/rsa_depr.c b/crypto/rsa/rsa_depr.c index 3773d037c6..2d87cd39f3 100644 --- a/crypto/rsa/rsa_depr.c +++ b/crypto/rsa/rsa_depr.c @@ -62,6 +62,9 @@ #include <openssl/bn.h> #include <openssl/rsa.h> +static void *dummy=&dummy; + +#ifndef OPENSSL_NO_DEPRECATED RSA *RSA_generate_key(int bits, unsigned long e_value, void (*callback)(int,int,void *), void *cb_arg) { @@ -78,4 +81,4 @@ RSA *RSA_generate_key(int bits, unsigned long e_value, RSA_free(rsa); return 0; } - +#endif |