Address indendation, fix return on stub, remove warning

This commit is contained in:
kaleb-himes
2021-02-10 11:26:29 -07:00
parent 4c171524dd
commit 9e6ab4ab70
3 changed files with 13 additions and 7 deletions

View File

@@ -188,7 +188,7 @@ extern "C" {
#ifdef HAVE_FIPS #ifdef HAVE_FIPS
#undef HAVE_ECC_CDH #undef HAVE_ECC_CDH
#define HAVE_ECC_CDH #define HAVE_ECC_CDH
#define NO_STRICT_ECDSA_LEN #define NO_STRICT_ECDSA_LEN
#endif #endif
@@ -722,7 +722,7 @@ extern "C" {
#define OPENSSL_EXTRA #define OPENSSL_EXTRA
#define OPENSSL_ALL #define OPENSSL_ALL
#define HAVE_EX_DATA #define HAVE_EX_DATA
#define WOLFSSL_EVP_DECRYPT_LEGACY #define WOLFSSL_EVP_DECRYPT_LEGACY
/* TLS 1.3 support */ /* TLS 1.3 support */
@@ -736,8 +736,8 @@ extern "C" {
/* for static ciphers */ /* for static ciphers */
#define WOLFSSL_STATIC_RSA #define WOLFSSL_STATIC_RSA
#define WOLFSSL_STATIC_PSK #define WOLFSSL_STATIC_PSK
#define WOLFSSL_STATIC_EPHEMERAL #define WOLFSSL_STATIC_EPHEMERAL
#define WOLFSSL_SNIFFER #define WOLFSSL_SNIFFER
/* TEMPORARY */ /* TEMPORARY */

View File

@@ -36,7 +36,6 @@
* these defines here. Do not move to wc_port.h */ * these defines here. Do not move to wc_port.h */
#ifdef USER_CUSTOM_SNIFFX #ifdef USER_CUSTOM_SNIFFX
/* To be implemented in user_settings.h */ /* To be implemented in user_settings.h */
#warning "Please implement Sniffer porting in user_settings.h"
#elif defined(FUSION_RTOS) #elif defined(FUSION_RTOS)
#include <fcl_network.h> #include <fcl_network.h>
#define XINET_NTOA FNS_INET_NTOA #define XINET_NTOA FNS_INET_NTOA

View File

@@ -15669,8 +15669,15 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
WOLFSSL_ENTER("BIO_set_write_buffer_size"); WOLFSSL_ENTER("BIO_set_write_buffer_size");
WOLFSSL_STUB("BIO_set_write_buffer_size"); WOLFSSL_STUB("BIO_set_write_buffer_size");
(void)bio; (void)bio;
/* return 1 if the buffer was successfully resized or 0 for failure. */ (void) size;
return 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 #endif