forked from wolfSSL/wolfssl
Address indendation, fix return on stub, remove warning
This commit is contained in:
@@ -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 */
|
||||||
|
@@ -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
|
||||||
|
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_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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user