Home
last modified time | relevance | path

Searched refs:the_ssl_ctx (Results 1 – 1 of 1) sorted by relevance

/netbsd-src/external/bsd/libevent/dist/test/
H A Dregress_ssl.c168 static SSL_CTX *the_ssl_ctx = NULL; variable
173 if (the_ssl_ctx) in get_ssl_ctx()
174 return the_ssl_ctx; in get_ssl_ctx()
175 the_ssl_ctx = SSL_CTX_new(SSLv23_method()); in get_ssl_ctx()
176 if (!the_ssl_ctx) in get_ssl_ctx()
180 SSL_CTX_set_options(the_ssl_ctx, SSL_OP_NO_TLSv1_2); in get_ssl_ctx()
183 SSL_CTX_set_options(the_ssl_ctx, SSL_OP_NO_TLSv1_1); in get_ssl_ctx()
186 return the_ssl_ctx; in get_ssl_ctx()
254 SSL_CTX_free(the_ssl_ctx); in ssl_test_cleanup()
255 the_ssl_ctx = NULL; in ssl_test_cleanup()