cyassl skip setting SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER
It's already the default and no "SSL_set_mode" in CYASSL Reported by Chris Conlon <chris@wolfssl.com> Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
a616300091
commit
145ecece10
2 changed files with 4 additions and 2 deletions
|
@ -125,9 +125,10 @@ int lws_client_socket_service(struct libwebsocket_context *context,
|
|||
if (wsi->use_ssl && !wsi->ssl) {
|
||||
|
||||
wsi->ssl = SSL_new(context->ssl_client_ctx);
|
||||
#ifndef USE_CYASSL
|
||||
SSL_set_mode(wsi->ssl,
|
||||
SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
|
||||
|
||||
#endif
|
||||
|
||||
/* use server name indication (SNI), if supported,
|
||||
* when establishing connection */
|
||||
|
|
|
@ -316,8 +316,9 @@ int lws_server_socket_service(struct libwebsocket_context *context,
|
|||
openssl_websocket_private_data_index, context);
|
||||
|
||||
SSL_set_fd(new_wsi->ssl, accept_fd);
|
||||
#ifndef USE_CYASSL
|
||||
SSL_set_mode(new_wsi->ssl, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
|
||||
|
||||
#endif
|
||||
#ifdef USE_CYASSL
|
||||
CyaSSL_set_using_nonblock(new_wsi->ssl, 1);
|
||||
#else
|
||||
|
|
Loading…
Add table
Reference in a new issue