diff options
author | Azat Khuzhin <azat@libevent.org> | 2019-06-02 21:51:35 +0300 |
---|---|---|
committer | Azat Khuzhin <azat@libevent.org> | 2019-06-02 21:55:31 +0300 |
commit | 2d4ac10ea41f136bfe5a21963c2d17195c383c24 (patch) | |
tree | 51a21ff2935ecb0065ad3f1581b64458933cd56d /sample/becat.c | |
parent | 7d569b0fafe76e9036695ccc9d22d2195c214bce (diff) | |
download | libevent-2d4ac10ea41f136bfe5a21963c2d17195c383c24.tar.gz |
becat: remove extra SSL_CTX options usage [ci skip]
Because:
- this do not affects performance
- this breaks builds for with older openssl
Diffstat (limited to 'sample/becat.c')
-rw-r--r-- | sample/becat.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sample/becat.c b/sample/becat.c index 4c474d6f..7428c326 100644 --- a/sample/becat.c +++ b/sample/becat.c @@ -232,13 +232,6 @@ static int ssl_ctx_init(struct ssl_context *ssl) goto err; ssl->ctx = SSL_CTX_new(method); - SSL_CTX_set_mode(ssl->ctx, SSL_MODE_RELEASE_BUFFERS); - SSL_CTX_set_session_cache_mode(ssl->ctx, SSL_SESS_CACHE_OFF); - SSL_CTX_set_cipher_list(ssl->ctx, - "RC4:AES128-SHA:AES:CAMELLIA128-SHA:!ADH:!aNULL:!DH:!EDH:!eNULL:!LOW:!SSLv2:!EXP:!NULL"); - SSL_CTX_set_options(ssl->ctx, - SSL_OP_CIPHER_SERVER_PREFERENCE | SSL_OP_NO_COMPRESSION); - if (ssl_load_key(ssl)) goto err; if (ssl_load_cert(ssl)) |