1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

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:
Andy Green 2014-03-28 14:00:01 +08:00
parent a616300091
commit 145ecece10
2 changed files with 4 additions and 2 deletions

View file

@ -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 */

View file

@ -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