Lines Matching defs:ssl_ctx
475 static void init_ssl_ctx(SSL_CTX *ssl_ctx, uint16_t *spdy_proto_version)
478 SSL_CTX_set_options(ssl_ctx, SSL_OP_ALL|SSL_OP_NO_SSLv2);
479 SSL_CTX_set_mode(ssl_ctx, SSL_MODE_AUTO_RETRY);
480 SSL_CTX_set_mode(ssl_ctx, SSL_MODE_RELEASE_BUFFERS);
482 SSL_CTX_set_next_proto_select_cb(ssl_ctx, select_next_proto_cb,
645 SSL_CTX *ssl_ctx;
662 ssl_ctx = SSL_CTX_new(SSLv23_client_method());
663 if(ssl_ctx == NULL) {
666 init_ssl_ctx(ssl_ctx, &spdy_proto_version);
667 ssl = SSL_new(ssl_ctx);
715 SSL_CTX_free(ssl_ctx);