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/rsa | |
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/rsa')
-rw-r--r-- | crypto/rsa/rsa.h | 4 | ||||
-rw-r--r-- | crypto/rsa/rsa_test.c | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/crypto/rsa/rsa.h b/crypto/rsa/rsa.h index 5bf862cd68..00a7873f92 100644 --- a/crypto/rsa/rsa.h +++ b/crypto/rsa/rsa.h @@ -64,9 +64,11 @@ #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 #ifdef OPENSSL_NO_RSA #error RSA is disabled. diff --git a/crypto/rsa/rsa_test.c b/crypto/rsa/rsa_test.c index 236842a634..6f0a28aa25 100644 --- a/crypto/rsa/rsa_test.c +++ b/crypto/rsa/rsa_test.c @@ -8,6 +8,7 @@ #include <openssl/crypto.h> #include <openssl/err.h> #include <openssl/rand.h> +#include <openssl/bn.h> #ifdef OPENSSL_NO_RSA int main(int argc, char *argv[]) { |