Skip to content

Commit 8b84b1f

Browse files
committed
wolfssl/wolfcrypt/coding.h and wolfssl/wolfcrypt/settings.h: fix feature activation for WOLFSSL_BASE16 (move from coding.h to settings.h).
1 parent e3d4d22 commit 8b84b1f

2 files changed

Lines changed: 8 additions & 11 deletions

File tree

wolfssl/wolfcrypt/coding.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,6 @@ WOLFSSL_API int Base64_Decode_nonCT(const byte* in, word32 inLen, byte* out,
7676
word32* outLen);
7777
#endif
7878

79-
#if defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL) || \
80-
defined(HAVE_WEBSERVER) || defined(HAVE_FIPS) || \
81-
defined(HAVE_ECC_CDH) || defined(HAVE_SELFTEST) || \
82-
defined(WOLFSSL_ENCRYPTED_KEYS)
83-
#ifndef WOLFSSL_BASE16
84-
#define WOLFSSL_BASE16
85-
#endif
86-
#endif
87-
8879
#ifdef WOLFSSL_BASE16
8980
#ifdef WOLFSSL_API_PREFIX_MAP
9081
#define Base16_Decode wc_Base16_Decode

wolfssl/wolfcrypt/settings.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4316,8 +4316,14 @@ extern void uITRON4_free(void *p) ;
43164316
#define WOLFSSL_BASE64_DECODE
43174317
#endif
43184318

4319-
#if defined(WOLFCRYPT_FIPS_CORE_DYNAMIC_HASH_VALUE) && !defined(WOLFSSL_BASE16)
4320-
#define WOLFSSL_BASE16
4319+
#if defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL) || \
4320+
defined(HAVE_WEBSERVER) || defined(HAVE_FIPS) || \
4321+
defined(HAVE_ECC_CDH) || defined(HAVE_SELFTEST) || \
4322+
defined(WOLFCRYPT_FIPS_CORE_DYNAMIC_HASH_VALUE) || \
4323+
defined(WOLFSSL_ENCRYPTED_KEYS)
4324+
#ifndef WOLFSSL_BASE16
4325+
#define WOLFSSL_BASE16
4326+
#endif
43214327
#endif
43224328

43234329
#if defined(FORTRESS) && !defined(HAVE_EX_DATA)

0 commit comments

Comments
 (0)