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/ecdsa | |
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/ecdsa')
-rw-r--r-- | crypto/ecdsa/ecdsa.h | 4 | ||||
-rw-r--r-- | crypto/ecdsa/ecs_lib.c | 1 | ||||
-rw-r--r-- | crypto/ecdsa/ecs_ossl.c | 1 |
3 files changed, 5 insertions, 1 deletions
diff --git a/crypto/ecdsa/ecdsa.h b/crypto/ecdsa/ecdsa.h index a57ba0f14f..e6081bb2af 100644 --- a/crypto/ecdsa/ecdsa.h +++ b/crypto/ecdsa/ecdsa.h @@ -65,9 +65,11 @@ #error ECDSA 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" { diff --git a/crypto/ecdsa/ecs_lib.c b/crypto/ecdsa/ecs_lib.c index 6ce5d927ca..d553ea1cd6 100644 --- a/crypto/ecdsa/ecs_lib.c +++ b/crypto/ecdsa/ecs_lib.c @@ -57,6 +57,7 @@ #include "ecdsa.h" #include <openssl/engine.h> #include <openssl/err.h> +#include <openssl/bn.h> const char *ECDSA_version="ECDSA" OPENSSL_VERSION_PTEXT; diff --git a/crypto/ecdsa/ecs_ossl.c b/crypto/ecdsa/ecs_ossl.c index 7e4b61fdef..712f666641 100644 --- a/crypto/ecdsa/ecs_ossl.c +++ b/crypto/ecdsa/ecs_ossl.c @@ -59,6 +59,7 @@ #include "ecdsa.h" #include <openssl/err.h> #include <openssl/obj_mac.h> +#include <openssl/bn.h> static ECDSA_SIG *ecdsa_do_sign(const unsigned char *dgst, int dlen, EC_KEY *eckey); |