diff --git a/src/ssl.c b/src/ssl.c index cbd79414e..5077a21f8 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -150,9 +150,6 @@ int wolfssl_bn_get_value(WOLFSSL_BIGNUM* bn, mp_int* mpi); int wolfssl_bn_set_value(WOLFSSL_BIGNUM** bn, mp_int* mpi); #endif -#if defined(OPENSSL_EXTRA) && !defined(NO_ASN) - static int wolfssl_bn_set_neg(WOLFSSL_BIGNUM* bn, int n); -#endif #if defined(WOLFSSL_QT) #include @@ -211,11 +208,6 @@ #define WOLFSSL_EVP_INCLUDED #include "wolfcrypt/src/evp.c" -#ifndef OPENSSL_EXTRA_NO_ASN1 -#define WOLFSSL_SSL_ASN1_INCLUDED -#include "src/ssl_asn1.c" -#endif /* OPENSSL_EXTRA_NO_ASN1 */ - #if (defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL)) && \ !defined(WOLFCRYPT_ONLY) /* Convert shortname to NID. @@ -416,6 +408,11 @@ WC_RNG* wolfssl_make_rng(WC_RNG* rng, int* local) #define WOLFSSL_SSL_BN_INCLUDED #include "src/ssl_bn.c" +#ifndef OPENSSL_EXTRA_NO_ASN1 +#define WOLFSSL_SSL_ASN1_INCLUDED +#include "src/ssl_asn1.c" +#endif /* OPENSSL_EXTRA_NO_ASN1 */ + #define WOLFSSL_PK_INCLUDED #include "src/pk.c"