]> granicus.if.org Git - libevent/commitdiff
becat: remove extra SSL_CTX options usage [ci skip]
authorAzat Khuzhin <azat@libevent.org>
Sun, 2 Jun 2019 18:51:35 +0000 (21:51 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sun, 2 Jun 2019 18:55:31 +0000 (21:55 +0300)
Because:
- this do not affects performance
- this breaks builds for with older openssl

sample/becat.c

index 4c474d6fb1230aa49952bec27f6280c066ac69fb..7428c326d2972c90fa7dce789f6e3d112dcde076 100644 (file)
@@ -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))