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

Added private macro CIPHERS_LIST_STRING to define ciphers list string.

This commit is contained in:
David Galeano 2013-01-10 10:15:19 +08:00 committed by Andy Green
parent 77a677c2bd
commit f177f2a15e
2 changed files with 3 additions and 0 deletions

View file

@ -2731,6 +2731,7 @@ libwebsocket_create_context(int port, const char *interf,
SSL_CTX_set_options(context->ssl_ctx, SSL_OP_NO_COMPRESSION);
SSL_CTX_set_options(context->ssl_ctx, SSL_OP_CIPHER_SERVER_PREFERENCE);
SSL_CTX_set_cipher_list(context->ssl_ctx, CIPHERS_LIST_STRING);
/* client context */
@ -2751,6 +2752,7 @@ libwebsocket_create_context(int port, const char *interf,
SSL_CTX_set_options(context->ssl_client_ctx, SSL_OP_NO_COMPRESSION);
SSL_CTX_set_options(context->ssl_client_ctx, SSL_OP_CIPHER_SERVER_PREFERENCE);
SSL_CTX_set_cipher_list(context->ssl_client_ctx, CIPHERS_LIST_STRING);
/* openssl init for cert verification (for client sockets) */
if (!ssl_ca_filepath) {

View file

@ -129,6 +129,7 @@ void debug(const char *format, ...)
#define LWS_MAX_EXTENSIONS_ACTIVE 10
#define SPEC_LATEST_SUPPORTED 13
#define AWAITING_TIMEOUT 5
#define CIPHERS_LIST_STRING "DEFAULT"
#define MAX_WEBSOCKET_04_KEY_LEN 128
#define SYSTEM_RANDOM_FILEPATH "/dev/urandom"