mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 12:44:45 +02:00
Globally remap & refactor conflicting symbols to allow -DOPENSSL_EXTRA -DOPENSSL_COEXIST, or equivalently, --enable-opensslextra --enable-opensslcoexist.
No functional changes. Several compat symbols that were formerly enums are now macros. All library source is refactored to use only native symbols in all code gated in with --enable-all-crypto --enable-opensslextra. wolfcrypt/test/test.c is similarly refactored to use only native symbols. examples/ and tests/ are unmodified except for header setup to disable OPENSSL_COEXIST and TEST_OPENSSL_COEXIST.
This commit is contained in:
@@ -32,7 +32,6 @@ Or
|
||||
bench_tls(args);
|
||||
*/
|
||||
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
@@ -40,6 +39,12 @@ Or
|
||||
#include <wolfssl/options.h>
|
||||
#endif
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
|
||||
#undef TEST_OPENSSL_COEXIST /* can't use this option with this example */
|
||||
#ifdef OPENSSL_EXTRA
|
||||
#undef OPENSSL_COEXIST /* can't use this option with this example */
|
||||
#endif
|
||||
|
||||
#include <wolfssl/wolfcrypt/types.h>
|
||||
#include <wolfssl/wolfcrypt/wc_port.h>
|
||||
#include <wolfssl/ssl.h>
|
||||
|
@@ -32,6 +32,11 @@
|
||||
#endif
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
|
||||
#undef TEST_OPENSSL_COEXIST /* can't use this option with this example */
|
||||
#ifdef OPENSSL_EXTRA
|
||||
#undef OPENSSL_COEXIST /* can't use this option with this example */
|
||||
#endif
|
||||
|
||||
#include <wolfssl/ssl.h>
|
||||
|
||||
#ifdef WOLFSSL_WOLFSENTRY_HOOKS
|
||||
|
@@ -25,6 +25,15 @@
|
||||
#endif
|
||||
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
#ifndef WOLFSSL_USER_SETTINGS
|
||||
#include <wolfssl/options.h>
|
||||
#endif
|
||||
|
||||
#undef TEST_OPENSSL_COEXIST /* can't use this option with this example */
|
||||
#ifdef OPENSSL_EXTRA
|
||||
#undef OPENSSL_COEXIST /* can't use this option with this example */
|
||||
#endif
|
||||
|
||||
/* let's use cyassl layer AND cyassl openssl layer */
|
||||
#undef TEST_OPENSSL_COEXIST /* can't use this option with this example */
|
||||
#include <wolfssl/ssl.h>
|
||||
|
@@ -24,6 +24,16 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#ifndef WOLFSSL_USER_SETTINGS
|
||||
#include <wolfssl/options.h>
|
||||
#endif
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
|
||||
#undef TEST_OPENSSL_COEXIST /* can't use this option with this example */
|
||||
#ifdef OPENSSL_EXTRA
|
||||
#undef OPENSSL_COEXIST /* can't use this option with this example */
|
||||
#endif
|
||||
|
||||
#include <wolfssl/ssl.h> /* name change portability layer */
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
#ifdef HAVE_ECC
|
||||
|
@@ -33,6 +33,10 @@
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
|
||||
#undef TEST_OPENSSL_COEXIST /* can't use this option with this example */
|
||||
#ifdef OPENSSL_EXTRA
|
||||
#undef OPENSSL_COEXIST /* can't use this option with this example */
|
||||
#endif
|
||||
|
||||
#include <wolfssl/ssl.h> /* name change portability layer */
|
||||
|
||||
#ifdef HAVE_ECC
|
||||
|
Reference in New Issue
Block a user