aboutsummaryrefslogtreecommitdiff
path: root/crypto/dh
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2004-05-17 19:14:22 +0000
committerGeoff Thorpe <geoff@openssl.org>2004-05-17 19:14:22 +0000
commit0f814687b95e5980744240b7a81672c89c255340 (patch)
tree7e65ceeb8d939a4ab4dbadb5170bb879a6c361cd /crypto/dh
parentf0eae953e2a02a92674e39f5ff087c1f67afd7dc (diff)
downloadopenssl-0f814687b95e5980744240b7a81672c89c255340.zip
openssl-0f814687b95e5980744240b7a81672c89c255340.tar.gz
openssl-0f814687b95e5980744240b7a81672c89c255340.tar.bz2
Deprecate the recursive includes of bn.h from various API headers (asn1.h,
dh.h, dsa.h, ec.h, ecdh.h, ecdsa.h, rsa.h), as the opaque bignum types are already declared in ossl_typ.h. Add explicit includes for bn.h in those C files that need access to structure internals or API functions+macros.
Diffstat (limited to 'crypto/dh')
-rw-r--r--crypto/dh/dh.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/dh/dh.h b/crypto/dh/dh.h
index 28a1b42..312340e 100644
--- a/crypto/dh/dh.h
+++ b/crypto/dh/dh.h
@@ -68,9 +68,10 @@
#ifndef OPENSSL_NO_BIO
#include <openssl/bio.h>
#endif
-#include <openssl/bn.h>
-#include <openssl/crypto.h>
#include <openssl/ossl_typ.h>
+#ifndef OPENSSL_NO_DEPRECATED
+#include <openssl/bn.h>
+#endif
#define DH_FLAG_CACHE_MONT_P 0x01