Deprecate the recursive includes of bn.h from various API headers (asn1.h,
[openssl.git] / crypto / ecdh / ecdh.h
index 1a62a21..f9189e0 100644 (file)
 #error ECDH is disabled.
 #endif
 
-#include <openssl/bn.h>
 #include <openssl/ec.h>
 #include <openssl/ossl_typ.h>
+#ifndef OPENSSL_NO_DEPRECATED
+#include <openssl/bn.h>
+#endif
 
 #ifdef __cplusplus
 extern "C" {