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.
This commit is contained in:
Geoff Thorpe
2003-10-29 04:06:50 +00:00
parent 6145b0b183
commit 9d473aa2e4
5 changed files with 22 additions and 1 deletions

View File

@@ -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