mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
When choosing a cipher, use the server's preferences.
This commit is contained in:
parent
584b316700
commit
77a677c2bd
1 changed files with 2 additions and 0 deletions
|
@ -2730,6 +2730,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);
|
||||
|
||||
/* client context */
|
||||
|
||||
|
@ -2749,6 +2750,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);
|
||||
|
||||
/* openssl init for cert verification (for client sockets) */
|
||||
if (!ssl_ca_filepath) {
|
||||
|
|
Loading…
Add table
Reference in a new issue