Don't always include wolfssl/openssl/bn.h

This commit is contained in:
Juliusz Sosinowicz
2020-02-19 11:17:31 +01:00
parent 26e2d6eacf
commit cc597add48

View File

@@ -70,6 +70,7 @@
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/ec.h> #include <openssl/ec.h>
#include <openssl/hmac.h> #include <openssl/hmac.h>
#include <openssl/bn.h>
#endif #endif
/* make sure old names are disabled */ /* make sure old names are disabled */
@@ -81,6 +82,7 @@
#endif #endif
#elif (defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL)) #elif (defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL))
#include <wolfssl/openssl/bn.h>
#include <wolfssl/openssl/hmac.h> #include <wolfssl/openssl/hmac.h>
/* We need the old SSL names */ /* We need the old SSL names */
@@ -91,8 +93,6 @@
#undef NO_OLD_WC_NAMES #undef NO_OLD_WC_NAMES
#endif #endif
#endif #endif
/* Needed for WOLFSSL_RSA struct */
#include <wolfssl/openssl/bn.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {