mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Address indendation, fix return on stub, remove warning
This commit is contained in:
@@ -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