Lines Matching refs:ctx
41 SSL_CTX *ctx; member
98 if (args->ctx != NULL) in ossl_quic_tserver_new()
99 srv->ctx = args->ctx; in ossl_quic_tserver_new()
101 srv->ctx = SSL_CTX_new_ex(srv->args.libctx, srv->args.propq, in ossl_quic_tserver_new()
103 if (srv->ctx == NULL) in ossl_quic_tserver_new()
107 && SSL_CTX_use_certificate_file(srv->ctx, certfile, SSL_FILETYPE_PEM) <= 0) in ossl_quic_tserver_new()
111 && SSL_CTX_use_PrivateKey_file(srv->ctx, keyfile, SSL_FILETYPE_PEM) <= 0) in ossl_quic_tserver_new()
114 SSL_CTX_set_alpn_select_cb(srv->ctx, alpn_select_cb, srv); in ossl_quic_tserver_new()
116 srv->tls = SSL_new(srv->ctx); in ossl_quic_tserver_new()
130 port_args.channel_ctx = srv->ctx; in ossl_quic_tserver_new()
154 if (args->ctx == NULL) in ossl_quic_tserver_new()
155 SSL_CTX_free(srv->ctx); in ossl_quic_tserver_new()
182 SSL_CTX_free(srv->ctx); in ossl_quic_tserver_free()
440 return srv->ctx; in ossl_quic_tserver_get0_ssl_ctx()