]> granicus.if.org Git - libevent/commitdiff
test/https: fix ssl dirty bypass for https_simple
authorAzat Khuzhin <a3at.mail@gmail.com>
Sat, 19 Nov 2016 14:53:38 +0000 (17:53 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Tue, 6 Dec 2016 22:30:41 +0000 (01:30 +0300)
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

index 82fe30f7213afba86732886fef4783d6f469d1dd..911707bc239c63630c07bf061ec1623a7f6a3525 100644 (file)
@@ -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);