Home | History | Annotate | Download | only in sample

Lines Matching refs:ssl_ctx

201 	SSL_CTX *ssl_ctx = NULL;
332 ssl_ctx = SSL_CTX_new(SSLv23_method());
333 if (!ssl_ctx) {
343 if (1 != SSL_CTX_load_verify_locations(ssl_ctx, crt, NULL)) {
355 SSL_CTX_set_verify(ssl_ctx, SSL_VERIFY_PEER, NULL);
369 SSL_CTX_set_cert_verify_callback(ssl_ctx, cert_verify_callback,
383 ssl = SSL_new(ssl_ctx);
479 if (ssl_ctx)
480 SSL_CTX_free(ssl_ctx);