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