Home
last modified time | relevance | path

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

/libevent-2.1.12/test-export/
H A Dtest-export.c54 SSL_CTX *ssl_ctx = NULL; in test() local
69 ssl_ctx = SSL_CTX_new(SSLv23_method()); in test()
70 if (!ssl_ctx) { in test()
73 ssl = SSL_new(ssl_ctx); in test()
87 if (ssl_ctx) in test()
88 SSL_CTX_free(ssl_ctx); in test()
H A Dtest-export.c54 SSL_CTX *ssl_ctx = NULL; in test() local
69 ssl_ctx = SSL_CTX_new(SSLv23_method()); in test()
70 if (!ssl_ctx) { in test()
73 ssl = SSL_new(ssl_ctx); in test()
87 if (ssl_ctx) in test()
88 SSL_CTX_free(ssl_ctx); in test()
H A Dtest-export.c54 SSL_CTX *ssl_ctx = NULL; in test() local
69 ssl_ctx = SSL_CTX_new(SSLv23_method()); in test()
70 if (!ssl_ctx) { in test()
73 ssl = SSL_new(ssl_ctx); in test()
87 if (ssl_ctx) in test()
88 SSL_CTX_free(ssl_ctx); in test()
H A Dtest-export.c54 SSL_CTX *ssl_ctx = NULL; in test() local
69 ssl_ctx = SSL_CTX_new(SSLv23_method()); in test()
70 if (!ssl_ctx) { in test()
73 ssl = SSL_new(ssl_ctx); in test()
87 if (ssl_ctx) in test()
88 SSL_CTX_free(ssl_ctx); in test()
H A Dtest-export.c54 SSL_CTX *ssl_ctx = NULL; in test() local
69 ssl_ctx = SSL_CTX_new(SSLv23_method()); in test()
70 if (!ssl_ctx) { in test()
73 ssl = SSL_new(ssl_ctx); in test()
87 if (ssl_ctx) in test()
88 SSL_CTX_free(ssl_ctx); in test()
H A Dtest-export.c54 SSL_CTX *ssl_ctx = NULL; in test() local
69 ssl_ctx = SSL_CTX_new(SSLv23_method()); in test()
70 if (!ssl_ctx) { in test()
73 ssl = SSL_new(ssl_ctx); in test()
87 if (ssl_ctx) in test()
88 SSL_CTX_free(ssl_ctx); in test()
H A Dtest-export.c54 SSL_CTX *ssl_ctx = NULL; in test() local
69 ssl_ctx = SSL_CTX_new(SSLv23_method()); in test()
70 if (!ssl_ctx) { in test()
73 ssl = SSL_new(ssl_ctx); in test()
87 if (ssl_ctx) in test()
88 SSL_CTX_free(ssl_ctx); in test()
H A Dtest-export.c54 SSL_CTX *ssl_ctx = NULL; in test() local
69 ssl_ctx = SSL_CTX_new(SSLv23_method()); in test()
70 if (!ssl_ctx) { in test()
73 ssl = SSL_new(ssl_ctx); in test()
87 if (ssl_ctx) in test()
88 SSL_CTX_free(ssl_ctx); in test()
H A Dtest-export.c54 SSL_CTX *ssl_ctx = NULL; in test() local
69 ssl_ctx = SSL_CTX_new(SSLv23_method()); in test()
70 if (!ssl_ctx) { in test()
73 ssl = SSL_new(ssl_ctx); in test()
87 if (ssl_ctx) in test()
88 SSL_CTX_free(ssl_ctx); in test()
H A Dtest-export.c54 SSL_CTX *ssl_ctx = NULL; in test() local
69 ssl_ctx = SSL_CTX_new(SSLv23_method()); in test()
70 if (!ssl_ctx) { in test()
73 ssl = SSL_new(ssl_ctx); in test()
87 if (ssl_ctx) in test()
88 SSL_CTX_free(ssl_ctx); in test()
H A Dtest-export.c54 SSL_CTX *ssl_ctx = NULL; in test() local
69 ssl_ctx = SSL_CTX_new(SSLv23_method()); in test()
70 if (!ssl_ctx) { in test()
73 ssl = SSL_new(ssl_ctx); in test()
87 if (ssl_ctx) in test()
88 SSL_CTX_free(ssl_ctx); in test()
H A Dtest-export.c54 SSL_CTX *ssl_ctx = NULL; in test() local
69 ssl_ctx = SSL_CTX_new(SSLv23_method()); in test()
70 if (!ssl_ctx) { in test()
73 ssl = SSL_new(ssl_ctx); in test()
87 if (ssl_ctx) in test()
88 SSL_CTX_free(ssl_ctx); in test()
H A Dtest-export.c54 SSL_CTX *ssl_ctx = NULL; in test() local
69 ssl_ctx = SSL_CTX_new(SSLv23_method()); in test()
70 if (!ssl_ctx) { in test()
73 ssl = SSL_new(ssl_ctx); in test()
87 if (ssl_ctx) in test()
88 SSL_CTX_free(ssl_ctx); in test()
H A Dtest-export.c54 SSL_CTX *ssl_ctx = NULL; in test() local
69 ssl_ctx = SSL_CTX_new(SSLv23_method()); in test()
70 if (!ssl_ctx) { in test()
73 ssl = SSL_new(ssl_ctx); in test()
87 if (ssl_ctx) in test()
88 SSL_CTX_free(ssl_ctx); in test()
H A Dtest-export.c54 SSL_CTX *ssl_ctx = NULL; in test() local
69 ssl_ctx = SSL_CTX_new(SSLv23_method()); in test()
70 if (!ssl_ctx) { in test()
73 ssl = SSL_new(ssl_ctx); in test()
87 if (ssl_ctx) in test()
88 SSL_CTX_free(ssl_ctx); in test()
H A Dtest-export.c54 SSL_CTX *ssl_ctx = NULL; in test() local
69 ssl_ctx = SSL_CTX_new(SSLv23_method()); in test()
70 if (!ssl_ctx) { in test()
73 ssl = SSL_new(ssl_ctx); in test()
87 if (ssl_ctx) in test()
88 SSL_CTX_free(ssl_ctx); in test()
H A Dtest-export.c54 SSL_CTX *ssl_ctx = NULL; in test() local
69 ssl_ctx = SSL_CTX_new(SSLv23_method()); in test()
70 if (!ssl_ctx) { in test()
73 ssl = SSL_new(ssl_ctx); in test()
87 if (ssl_ctx) in test()
88 SSL_CTX_free(ssl_ctx); in test()
H A Dtest-export.c54 SSL_CTX *ssl_ctx = NULL; in test() local
69 ssl_ctx = SSL_CTX_new(SSLv23_method()); in test()
70 if (!ssl_ctx) { in test()
73 ssl = SSL_new(ssl_ctx); in test()
87 if (ssl_ctx) in test()
88 SSL_CTX_free(ssl_ctx); in test()
H A Dtest-export.c54 SSL_CTX *ssl_ctx = NULL; in test() local
69 ssl_ctx = SSL_CTX_new(SSLv23_method()); in test()
70 if (!ssl_ctx) { in test()
73 ssl = SSL_new(ssl_ctx); in test()
87 if (ssl_ctx) in test()
88 SSL_CTX_free(ssl_ctx); in test()
/libevent-2.1.12/sample/
H A Dhttps-client.c228 SSL_CTX *ssl_ctx = NULL; in main() local
360 ssl_ctx = SSL_CTX_new(SSLv23_method()); in main()
361 if (!ssl_ctx) { in main()
369 store = SSL_CTX_get_cert_store(ssl_ctx); in main()
383 if (SSL_CTX_load_verify_locations(ssl_ctx, crt, NULL) != 1) { in main()
396 SSL_CTX_set_verify(ssl_ctx, SSL_VERIFY_PEER, NULL); in main()
410 SSL_CTX_set_cert_verify_callback(ssl_ctx, cert_verify_callback, in main()
421 ssl = SSL_new(ssl_ctx); in main()
518 if (ssl_ctx) in main()
519 SSL_CTX_free(ssl_ctx); in main()
H A Dle-proxy.c45 static SSL_CTX *ssl_ctx = NULL; variable
168 if (!ssl_ctx || use_wrapper) in accept_cb()
172 SSL *ssl = SSL_new(ssl_ctx); in accept_cb()
188 if (ssl_ctx && use_wrapper) { in accept_cb()
190 SSL *ssl = SSL_new(ssl_ctx); in accept_cb()
283 ssl_ctx = SSL_CTX_new(TLS_method()); in main()