diff --git a/IDE/VisualDSP/user_settings.h b/IDE/VisualDSP/user_settings.h index 5d33914ae..f0fa67553 100644 --- a/IDE/VisualDSP/user_settings.h +++ b/IDE/VisualDSP/user_settings.h @@ -188,7 +188,7 @@ extern "C" { #ifdef HAVE_FIPS #undef HAVE_ECC_CDH #define HAVE_ECC_CDH - + #define NO_STRICT_ECDSA_LEN #endif @@ -722,7 +722,7 @@ extern "C" { #define OPENSSL_EXTRA #define OPENSSL_ALL #define HAVE_EX_DATA - #define WOLFSSL_EVP_DECRYPT_LEGACY + #define WOLFSSL_EVP_DECRYPT_LEGACY /* TLS 1.3 support */ @@ -736,8 +736,8 @@ extern "C" { /* for static ciphers */ #define WOLFSSL_STATIC_RSA - #define WOLFSSL_STATIC_PSK - #define WOLFSSL_STATIC_EPHEMERAL + #define WOLFSSL_STATIC_PSK + #define WOLFSSL_STATIC_EPHEMERAL #define WOLFSSL_SNIFFER /* TEMPORARY */ diff --git a/src/sniffer.c b/src/sniffer.c index 6f6d996ec..3411bc7c5 100644 --- a/src/sniffer.c +++ b/src/sniffer.c @@ -36,7 +36,6 @@ * these defines here. Do not move to wc_port.h */ #ifdef USER_CUSTOM_SNIFFX /* To be implemented in user_settings.h */ - #warning "Please implement Sniffer porting in user_settings.h" #elif defined(FUSION_RTOS) #include #define XINET_NTOA FNS_INET_NTOA diff --git a/src/ssl.c b/src/ssl.c index ab0a5c3db..a23c7c33a 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -15669,8 +15669,15 @@ int wolfSSL_set_compression(WOLFSSL* ssl) WOLFSSL_ENTER("BIO_set_write_buffer_size"); WOLFSSL_STUB("BIO_set_write_buffer_size"); (void)bio; - /* return 1 if the buffer was successfully resized or 0 for failure. */ - return size; + (void) size; + + /* Even though this is only a STUB at the moment many user applications + * may attempt to use this. OpenSSL documentation specifies the return + * "return 1 if the buffer was successfully resized or 0 for failure." + * since wolfSSL does not resize the buffer will always return failure + * by default due to memory concerns until this stub is promoted to + * a non-stub function */ + return WOLFSSL_FAILURE; /* 0, no resize happened */ } #endif