Lines Matching refs:ssl_ctx
133 WOLFSSL_CTX *ssl_ctx; member
142 WOLFSSL_CTX *ssl_ctx; /* output from network_init_ssl() */ member
551 SSL_CTX * const ssl_ctx_global_scope = p->ssl_ctxs->ssl_ctx; in mod_openssl_free_config()
555 if (s->ssl_ctx && s->ssl_ctx != ssl_ctx_global_scope) in mod_openssl_free_config()
556 SSL_CTX_free(s->ssl_ctx); in mod_openssl_free_config()
807 mod_wolfssl_CTX_use_certificate_chain_file (WOLFSSL_CTX *ssl_ctx, const char *fn, log_error_st *err… in mod_wolfssl_CTX_use_certificate_chain_file() argument
817 ? wolfSSL_CTX_use_certificate_chain_buffer(ssl_ctx, (unsigned char *)data, in mod_wolfssl_CTX_use_certificate_chain_file()
819 : wolfSSL_CTX_use_certificate_chain_buffer_format(ssl_ctx, in mod_wolfssl_CTX_use_certificate_chain_file()
948 mod_wolfssl_load_cacrls (WOLFSSL_CTX *ssl_ctx, const buffer *ssl_ca_crl_file, server *srv) in mod_wolfssl_load_cacrls() argument
951 int rc = wolfSSL_CTX_EnableCRL(ssl_ctx, in mod_wolfssl_load_cacrls()
960 rc = wolfSSL_CTX_LoadCRLBuffer(ssl_ctx, (byte *)data, (long)dlen, in mod_wolfssl_load_cacrls()
973 UNUSED(ssl_ctx); in mod_wolfssl_load_cacrls()
982 mod_wolfssl_load_verify_locn (SSL_CTX *ssl_ctx, const buffer *b, server *srv) in mod_wolfssl_load_verify_locn() argument
989 int rc = wolfSSL_CTX_load_verify_buffer(ssl_ctx, (unsigned char *)data, in mod_wolfssl_load_verify_locn()
1005 mod_wolfssl_load_ca_files (SSL_CTX *ssl_ctx, plugin_data *p, server *srv) in mod_wolfssl_load_ca_files() argument
1011 if (!mod_wolfssl_load_verify_locn(ssl_ctx, b, srv)) in mod_wolfssl_load_ca_files()
1974 wolfSSL_CTX_SetTmpDH_buffer(s->ssl_ctx, (unsigned char *)data, in mod_openssl_ssl_conf_dhparameters()
1992 SSL_CTX_set_tmp_dh(s->ssl_ctx, dh); in mod_openssl_ssl_conf_dhparameters()
1995 SSL_CTX_set_options(s->ssl_ctx, SSL_OP_SINGLE_DH_USE); in mod_openssl_ssl_conf_dhparameters()
2022 wolfSSL_SSL_CTX_set_tmp_ecdh(s->ssl_ctx, ecdh); in mod_openssl_ssl_conf_curves()
2023 SSL_CTX_set_options(s->ssl_ctx, SSL_OP_SINGLE_ECDH_USE); in mod_openssl_ssl_conf_curves()
2048 s->ssl_ctx = SSL_CTX_new(TLS_server_method()); in network_init_ssl()
2050 s->ssl_ctx = SSL_CTX_new(SSLv23_server_method()); in network_init_ssl()
2052 if (NULL == s->ssl_ctx) { in network_init_ssl()
2065 s->ssl_ctx,(const unsigned char*)CONST_STR_LEN("lighttpd"))){ in network_init_ssl()
2077 SSL_CTX_set_session_cache_mode(s->ssl_ctx, in network_init_ssl()
2083 SSL_CTX_set_options(s->ssl_ctx, ssloptions); in network_init_ssl()
2084 SSL_CTX_set_info_callback(s->ssl_ctx, ssl_info_callback); in network_init_ssl()
2091 & SSL_CTX_set_options(s->ssl_ctx, SSL_OP_NO_SSLv3)) in network_init_ssl()
2101 if (SSL_CTX_set_cipher_list(s->ssl_ctx,s->ssl_cipher_list->ptr)!=1){ in network_init_ssl()
2108 SSL_CTX_set_options(s->ssl_ctx,SSL_OP_CIPHER_SERVER_PREFERENCE); in network_init_ssl()
2114 SSL_CTX_set_options(s->ssl_ctx, SSL_OP_PRIORITIZE_CHACHA); in network_init_ssl()
2121 wolfSSL_CTX_set_tlsext_ticket_key_cb(s->ssl_ctx, ssl_tlsext_ticket_key_cb); in network_init_ssl()
2125 wolfSSL_CTX_set_tlsext_status_cb(s->ssl_ctx, ssl_tlsext_status_cb); in network_init_ssl()
2132 if (!mod_wolfssl_load_ca_files(s->ssl_ctx, p, srv)) in network_init_ssl()
2155 wolfSSL_CTX_set_client_CA_list(s->ssl_ctx, in network_init_ssl()
2161 wolfSSL_CTX_set_verify(s->ssl_ctx, mode, verify_callback); in network_init_ssl()
2162 wolfSSL_CTX_set_verify_depth(s->ssl_ctx, in network_init_ssl()
2166 if (!mod_wolfssl_load_cacrls(s->ssl_ctx,s->ssl_ca_crl_file,srv)) in network_init_ssl()
2172 s->ssl_ctx, s->pc->ssl_pemfile->ptr, srv->errh)) in network_init_ssl()
2176 if (1 != wolfSSL_CTX_use_PrivateKey_buffer(s->ssl_ctx, in network_init_ssl()
2186 if (SSL_CTX_check_private_key(s->ssl_ctx) != 1) { in network_init_ssl()
2194 SSL_CTX_set_default_read_ahead(s->ssl_ctx, s->ssl_read_ahead); in network_init_ssl()
2195 wolfSSL_CTX_set_mode(s->ssl_ctx, in network_init_ssl()
2197 wolfSSL_CTX_set_mode(s->ssl_ctx, /*(wolfSSL default mode)*/ in network_init_ssl()
2200 wolfSSL_CTX_set_mode(s->ssl_ctx, /*(not currently implemented)*/ in network_init_ssl()
2227 s->ssl_ctx, network_ssl_servername_callback); in network_init_ssl()
2228 wolfSSL_CTX_set_servername_arg(s->ssl_ctx, srv); in network_init_ssl()
2237 SSL_CTX_set_alpn_select_cb(s->ssl_ctx,mod_openssl_alpn_select_cb,NULL); in network_init_ssl()
2242 if (wolfSSL_CTX_SetMinVersion(s->ssl_ctx, WOLFSSL_TLSV1_2) in network_init_ssl()
2429 || (conf.ssl_enabled && NULL == p->ssl_ctxs[0].ssl_ctx)) { in mod_openssl_set_defaults_sockets()
2453 s->ssl_ctx = conf.ssl_ctx; in mod_openssl_set_defaults_sockets()
2456 SSL_CTX_free(conf.ssl_ctx); in mod_openssl_set_defaults_sockets()
3009 hctx->ssl = SSL_new(s->ssl_ctx); in CONNECTION_FUNC()
3506 SSL_CTX_clear_options(s->ssl_ctx, in mod_openssl_ssl_conf_cmd()
3509 SSL_CTX_set_options(s->ssl_ctx, in mod_openssl_ssl_conf_cmd()
3517 SSL_CTX_clear_options(s->ssl_ctx, in mod_openssl_ssl_conf_cmd()
3520 SSL_CTX_set_options(s->ssl_ctx, in mod_openssl_ssl_conf_cmd()
3528 SSL_CTX_set_options(s->ssl_ctx, in mod_openssl_ssl_conf_cmd()
3531 SSL_CTX_clear_options(s->ssl_ctx, in mod_openssl_ssl_conf_cmd()
3562 if (wolfSSL_CTX_SetMinVersion(s->ssl_ctx, n) != WOLFSSL_SUCCESS) in mod_openssl_ssl_conf_cmd()
3574 wolfSSL_CTX_set_options(s->ssl_ctx, WOLFSSL_OP_NO_TLSv1); in mod_openssl_ssl_conf_cmd()
3577 wolfSSL_CTX_set_options(s->ssl_ctx, WOLFSSL_OP_NO_TLSv1_1); in mod_openssl_ssl_conf_cmd()
3580 wolfSSL_CTX_set_options(s->ssl_ctx, WOLFSSL_OP_NO_TLSv1_2); in mod_openssl_ssl_conf_cmd()
3583 wolfSSL_CTX_set_options(s->ssl_ctx, WOLFSSL_OP_NO_TLSv1_3); in mod_openssl_ssl_conf_cmd()
3596 if (SSL_CTX_set_cipher_list(s->ssl_ctx, cipherstring->ptr) != 1) { in mod_openssl_ssl_conf_cmd()
3603 SSL_CTX_set_options(s->ssl_ctx, SSL_OP_CIPHER_SERVER_PREFERENCE); in mod_openssl_ssl_conf_cmd()