diff options
author | Geoff Thorpe <geoff@openssl.org> | 2004-05-17 19:14:22 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2004-05-17 19:14:22 +0000 |
commit | 0f814687b95e5980744240b7a81672c89c255340 (patch) | |
tree | 7e65ceeb8d939a4ab4dbadb5170bb879a6c361cd /crypto/ec | |
parent | f0eae953e2a02a92674e39f5ff087c1f67afd7dc (diff) |
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/ec')
-rw-r--r-- | crypto/ec/ec.h | 4 | ||||
-rw-r--r-- | crypto/ec/ec_lcl.h | 1 | ||||
-rw-r--r-- | crypto/ec/ectest.c | 1 |
3 files changed, 5 insertions, 1 deletions
diff --git a/crypto/ec/ec.h b/crypto/ec/ec.h index db15a81938..b3267df62b 100644 --- a/crypto/ec/ec.h +++ b/crypto/ec/ec.h @@ -78,9 +78,11 @@ #error EC is disabled. #endif -#include <openssl/bn.h> #include <openssl/asn1.h> #include <openssl/symhacks.h> +#ifndef OPENSSL_NO_DEPRECATED +#include <openssl/bn.h> +#endif #ifdef __cplusplus extern "C" { diff --git a/crypto/ec/ec_lcl.h b/crypto/ec/ec_lcl.h index 9becad8283..30632ba915 100644 --- a/crypto/ec/ec_lcl.h +++ b/crypto/ec/ec_lcl.h @@ -74,6 +74,7 @@ #include <openssl/obj_mac.h> #include <openssl/ec.h> +#include <openssl/bn.h> #if defined(__SUNPRO_C) # if __SUNPRO_C >= 0x520 diff --git a/crypto/ec/ectest.c b/crypto/ec/ectest.c index 9944d632c9..b96feae7f3 100644 --- a/crypto/ec/ectest.c +++ b/crypto/ec/ectest.c @@ -93,6 +93,7 @@ int main(int argc, char * argv[]) { puts("Elliptic curves are disabled."); retur #include <openssl/obj_mac.h> #include <openssl/objects.h> #include <openssl/rand.h> +#include <openssl/bn.h> #define ABORT do { \ fflush(stdout); \ |