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/dh/dh_depr.c | |
parent | 6145b0b1835f14167f8e9e4701251149f9c5373f (diff) |
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/dh/dh_depr.c')
-rw-r--r-- | crypto/dh/dh_depr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/dh/dh_depr.c b/crypto/dh/dh_depr.c index 3eb319e2a8..acc05f252c 100644 --- a/crypto/dh/dh_depr.c +++ b/crypto/dh/dh_depr.c @@ -61,6 +61,9 @@ #include <openssl/bn.h> #include <openssl/dh.h> +static void *dummy=&dummy; + +#ifndef OPENSSL_NO_DEPRECATED DH *DH_generate_parameters(int prime_len, int generator, void (*callback)(int,int,void *), void *cb_arg) { @@ -77,3 +80,4 @@ DH *DH_generate_parameters(int prime_len, int generator, DH_free(ret); return NULL; } +#endif |