mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
test: fix windows error when mbedtls https
This commit is contained in:
parent
6752070909
commit
53c6867520
@ -3992,6 +3992,9 @@ http_simple_test_impl(void *arg, int ssl, int dirty, const char *uri)
|
|||||||
#ifdef EVENT__HAVE_OPENSSL
|
#ifdef EVENT__HAVE_OPENSSL
|
||||||
bufferevent_openssl_set_allow_dirty_shutdown(bev, dirty);
|
bufferevent_openssl_set_allow_dirty_shutdown(bev, dirty);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef EVENT__HAVE_MBEDTLS
|
||||||
|
bufferevent_mbedtls_set_allow_dirty_shutdown(bev, dirty);
|
||||||
|
#endif
|
||||||
|
|
||||||
evcon = evhttp_connection_base_bufferevent_new(
|
evcon = evhttp_connection_base_bufferevent_new(
|
||||||
data->base, NULL, bev, "127.0.0.1", hs.port);
|
data->base, NULL, bev, "127.0.0.1", hs.port);
|
||||||
@ -5639,10 +5642,10 @@ struct testcase_t http_testcases[] = {
|
|||||||
struct testcase_t http_iocp_testcases[] = {
|
struct testcase_t http_iocp_testcases[] = {
|
||||||
{ "simple", http_simple_test, TT_FORK|TT_NEED_BASE|TT_ENABLE_IOCP, &basic_setup, NULL },
|
{ "simple", http_simple_test, TT_FORK|TT_NEED_BASE|TT_ENABLE_IOCP, &basic_setup, NULL },
|
||||||
#ifdef EVENT__HAVE_OPENSSL
|
#ifdef EVENT__HAVE_OPENSSL
|
||||||
{ "https_simple", https_simple_test, TT_FORK|TT_NEED_BASE|TT_ENABLE_IOCP, &basic_setup, NULL },
|
{ "https_openssl_simple", https_simple_test, TT_FORK|TT_NEED_BASE|TT_ENABLE_IOCP, &basic_setup, NULL },
|
||||||
#endif
|
#endif
|
||||||
#ifdef EVENT__HAVE_MBEDTLS
|
#ifdef EVENT__HAVE_MBEDTLS
|
||||||
{ "https_simple", https_mbedtls_simple_test, TT_FORK|TT_NEED_BASE|TT_ENABLE_IOCP, &basic_setup, NULL },
|
{ "https_mbedtls_simple", https_mbedtls_simple_test, TT_FORK|TT_NEED_BASE|TT_ENABLE_IOCP, &mbedtls_setup, NULL },
|
||||||
#endif
|
#endif
|
||||||
END_OF_TESTCASES
|
END_OF_TESTCASES
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user