Lines Matching defs:ssl_ctx
374 static void init_ssl_ctx(SSL_CTX *ssl_ctx) {
376 SSL_CTX_set_options(ssl_ctx, SSL_OP_ALL | SSL_OP_NO_SSLv2);
377 SSL_CTX_set_mode(ssl_ctx, SSL_MODE_AUTO_RETRY);
378 SSL_CTX_set_mode(ssl_ctx, SSL_MODE_RELEASE_BUFFERS);
381 SSL_CTX_set_next_proto_select_cb(ssl_ctx, select_next_proto_cb, NULL);
385 SSL_CTX_set_alpn_protos(ssl_ctx, (const unsigned char *)"\x02h2", 3);
536 SSL_CTX *ssl_ctx;
551 ssl_ctx = SSL_CTX_new(TLS_client_method());
552 if (ssl_ctx == NULL) {
555 init_ssl_ctx(ssl_ctx);
556 ssl = SSL_new(ssl_ctx);
621 SSL_CTX_free(ssl_ctx);