diff --git a/ctaocrypt/src/coding.c b/ctaocrypt/src/coding.c index 68bf4a7ae..6ccff9e9f 100644 --- a/ctaocrypt/src/coding.c +++ b/ctaocrypt/src/coding.c @@ -324,6 +324,11 @@ int Base64_EncodeEsc(const byte* in, word32 inLen, byte* out, word32* outLen) } +#endif /* defined(OPENSSL_EXTRA) || defined (SESSION_CERTS) || defined(CYASSL_KEY_GEN) || defined(CYASSL_CERT_GEN) || defined(HAVE_WEBSERVER) */ + + +#if defined(OPENSSL_EXTRA) || defined(HAVE_WEBSERVER) || defined(HAVE_FIPS) + static const byte hexDecode[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, BAD, BAD, BAD, BAD, BAD, BAD, BAD, @@ -389,5 +394,6 @@ int Base16_Decode(const byte* in, word32 inLen, byte* out, word32* outLen) } -#endif /* defined(OPENSSL_EXTRA) || defined (SESSION_CERTS) || defined(CYASSL_KEY_GEN) || defined(CYASSL_CERT_GEN) || defined(HAVE_WEBSERVER) */ +#endif /* (OPENSSL_EXTRA) || (HAVE_WEBSERVER) || (HAVE_FIPS) */ + #endif /* NO_CODING */ diff --git a/cyassl/ctaocrypt/coding.h b/cyassl/ctaocrypt/coding.h index 0a72d414b..9a0f11d65 100644 --- a/cyassl/ctaocrypt/coding.h +++ b/cyassl/ctaocrypt/coding.h @@ -42,10 +42,14 @@ CYASSL_LOCAL int Base64_Decode(const byte* in, word32 inLen, byte* out, CYASSL_API int Base64_EncodeEsc(const byte* in, word32 inLen, byte* out, word32* outLen); +#endif + +#if defined(OPENSSL_EXTRA) || defined(HAVE_WEBSERVER) || defined(HAVE_FIPS) CYASSL_API int Base16_Decode(const byte* in, word32 inLen, byte* out, word32* outLen); #endif + #ifdef __cplusplus } /* extern "C" */ #endif