From cfe2ab22f219de2dacd3560a6a68451732fb3cba Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sat, 19 Nov 2016 17:53:38 +0300 Subject: [PATCH] test/https: fix ssl dirty bypass for https_simple Tests: - http/https_simple_dirty # not affected, since dirty is the default - http/https_simple # affected v2: fix compilation with -DEVENT__DISABLE_OPENSSL=ON --- test/regress_http.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/regress_http.c b/test/regress_http.c index 82fe30f7..911707bc 100644 --- a/test/regress_http.c +++ b/test/regress_http.c @@ -3607,6 +3607,10 @@ http_simple_test_impl(void *arg, int ssl, int dirty) test_ok = 0; bev = create_bev(data->base, -1, ssl); +#ifdef EVENT__HAVE_OPENSSL + bufferevent_openssl_set_allow_dirty_shutdown(bev, dirty); +#endif + evcon = evhttp_connection_base_bufferevent_new( data->base, NULL, bev, "127.0.0.1", hs.port); tt_assert(evcon); -- 2.40.0