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/dsa/dsa_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/dsa/dsa_depr.c')
-rw-r--r-- | crypto/dsa/dsa_depr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/dsa/dsa_depr.c b/crypto/dsa/dsa_depr.c index cb80457211..f2da680eb4 100644 --- a/crypto/dsa/dsa_depr.c +++ b/crypto/dsa/dsa_depr.c @@ -69,6 +69,8 @@ #define HASH EVP_sha1() #endif +static void *dummy=&dummy; + #ifndef OPENSSL_NO_SHA #include <stdio.h> @@ -80,6 +82,7 @@ #include <openssl/rand.h> #include <openssl/sha.h> +#ifndef OPENSSL_NO_DEPRECATED DSA *DSA_generate_parameters(int bits, unsigned char *seed_in, int seed_len, int *counter_ret, unsigned long *h_ret, @@ -100,3 +103,4 @@ DSA *DSA_generate_parameters(int bits, return NULL; } #endif +#endif |