forked from wolfSSL/wolfssl
Address indendation, fix return on stub, remove warning
This commit is contained in:
@@ -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 */
|
||||
|
@@ -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 <fcl_network.h>
|
||||
#define XINET_NTOA FNS_INET_NTOA
|
||||
|
11
src/ssl.c
11
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
|
||||
|
||||
|
Reference in New Issue
Block a user