mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-17 00:07:04 -04:00
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
This commit is contained in:
parent
45247e6fd9
commit
cfe2ab22f2
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user