Lines Matching refs:srv
170 server *srv; member
362 elog(p->srv->errh, __FILE__,__LINE__, rc, in mod_mbedtls_session_ticket_key_check()
405 static int mod_mbedtls_init_once_mbedtls (server *srv) in mod_mbedtls_init_once_mbedtls() argument
421 elog(srv->errh, __FILE__,__LINE__, rc, in mod_mbedtls_init_once_mbedtls()
453 mod_mbedtls_free_config (server *srv, plugin_data * const p) in mod_mbedtls_free_config() argument
458 for (uint32_t i = 1; i < srv->config_context->used; ++i) { in mod_mbedtls_free_config()
515 if (NULL == p->srv) return; in FREE_FUNC()
516 mod_mbedtls_free_config(p->srv, p); in FREE_FUNC()
999 network_mbedtls_load_pemfile (server *srv, const buffer *pemfile, const buffer *privkey) in network_mbedtls_load_pemfile() argument
1008 elogf(srv->errh, __FILE__, __LINE__, rc, in network_mbedtls_load_pemfile()
1013 log_error(srv->errh, __FILE__, __LINE__, in network_mbedtls_load_pemfile()
1020 elogf(srv->errh, __FILE__, __LINE__, rc, in network_mbedtls_load_pemfile()
1034 elogf(srv->errh, __FILE__, __LINE__, rc, in network_mbedtls_load_pemfile()
1315 mod_mbedtls_ssl_conf_ciphersuites (server *srv, plugin_config_socket *s, buffer *ciphersuites, cons…
1319 mod_mbedtls_ssl_conf_curves(server *srv, plugin_config_socket *s, const buffer *curvelist);
1323 mod_mbedtls_ssl_conf_dhparameters(server *srv, plugin_config_socket *s, const buffer *dhparameters);
1327 mod_mbedtls_ssl_conf_proto (server *srv, plugin_config_socket *s, const buffer *b, int max);
1331 mod_mbedtls_ssl_conf_cmd (server *srv, plugin_config_socket *s) in mod_mbedtls_ssl_conf_cmd() argument
1347 if (!mod_mbedtls_ssl_conf_curves(srv, s, &ds->value)) in mod_mbedtls_ssl_conf_cmd()
1352 if (!mod_mbedtls_ssl_conf_dhparameters(srv, s, &ds->value)) in mod_mbedtls_ssl_conf_cmd()
1357 mod_mbedtls_ssl_conf_proto(srv, s, &ds->value, 1); /* max */ in mod_mbedtls_ssl_conf_cmd()
1359 mod_mbedtls_ssl_conf_proto(srv, s, &ds->value, 0); /* min */ in mod_mbedtls_ssl_conf_cmd()
1362 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_cmd()
1407 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_cmd()
1418 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_cmd()
1424 if (!mod_mbedtls_ssl_conf_ciphersuites(srv, s, ciphersuites, cipherstring)) in mod_mbedtls_ssl_conf_cmd()
1432 network_init_ssl (server *srv, plugin_config_socket *s, plugin_data *p) in network_init_ssl() argument
1454 elog(srv->errh, __FILE__,__LINE__, rc, in network_init_ssl()
1460 if (!mod_mbedtls_ssl_conf_ciphersuites(srv,s,NULL,s->ssl_cipher_list)) in network_init_ssl()
1468 s->ssl_ca_file, srv->errh)) in network_init_ssl()
1475 elogf(srv->errh, __FILE__, __LINE__, rc, in network_init_ssl()
1503 if (!srv->srvconf.h2proto) ++alpn_protos; in network_init_ssl()
1506 elog(srv->errh, __FILE__, __LINE__, rc, "error setting ALPN protocols"); in network_init_ssl()
1511 mod_mbedtls_ssl_conf_proto(srv, s, NULL, 0); /* min */ in network_init_ssl()
1514 if (0 != mod_mbedtls_ssl_conf_cmd(srv, s)) return -1; in network_init_ssl()
1534 elog(srv->errh,__FILE__,__LINE__,rc,"mbedtls_ssl_ticket_setup()"); in network_init_ssl()
1559 mod_mbedtls_set_defaults_sockets(server *srv, plugin_data *p) in mod_mbedtls_set_defaults_sockets() argument
1584 p->ssl_ctxs = ck_calloc(srv->config_context->used, sizeof(plugin_ssl_ctx)); in mod_mbedtls_set_defaults_sockets()
1590 if (!config_plugin_values_init(srv, ps, cpk, "mod_mbedtls")) in mod_mbedtls_set_defaults_sockets()
1612 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_set_defaults_sockets()
1628 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_set_defaults_sockets()
1647 log_error(srv->errh, __FILE__, __LINE__, "MTLS: " in mod_mbedtls_set_defaults_sockets()
1725 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_set_defaults_sockets()
1738 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_set_defaults_sockets()
1745 if (!mod_mbedtls_init_once_mbedtls(srv)) { in mod_mbedtls_set_defaults_sockets()
1753 if (0 == network_init_ssl(srv, &conf, p)) { in mod_mbedtls_set_defaults_sockets()
1837 p->srv = srv; in SETDEFAULTS_FUNC()
1838 if (!config_plugin_values_init(srv, p, cpk, "mod_mbedtls")) in SETDEFAULTS_FUNC()
1864 if (!mod_mbedtls_init_once_mbedtls(srv)) return HANDLER_ERROR; in SETDEFAULTS_FUNC()
1876 elogf(srv->errh, __FILE__, __LINE__, rc, in SETDEFAULTS_FUNC()
1898 elogf(srv->errh, __FILE__, __LINE__, rc, in SETDEFAULTS_FUNC()
1913 log_error(srv->errh, __FILE__, __LINE__, in SETDEFAULTS_FUNC()
1944 network_mbedtls_load_pemfile(srv, pemfile->v.b, privkey->v.b); in SETDEFAULTS_FUNC()
1966 log_error(srv->errh, __FILE__, __LINE__, in SETDEFAULTS_FUNC()
1971 return mod_mbedtls_set_defaults_sockets(srv, p); in SETDEFAULTS_FUNC()
2316 log_error(plugin_data_singleton->srv->errh,file,line,"MTLS: %s",str); in mod_mbedtls_debug_cb()
2330 hctx->tmp_buf = con->srv->tmp_buf; in CONNECTION_FUNC()
2713 UNUSED(srv); in TRIGGER_FUNC()
3370 mod_mbedtls_ssl_DEFAULT_ciphersuite (server *srv, int *ids, int nids, int idsz) in mod_mbedtls_ssl_DEFAULT_ciphersuite() argument
3378 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_DEFAULT_ciphersuite()
3393 mod_mbedtls_ssl_append_ciphersuite (server *srv, int *ids, int nids, int idsz, const int *x, int xs… in mod_mbedtls_ssl_append_ciphersuite() argument
3396 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_append_ciphersuite()
3409 mod_mbedtls_ssl_conf_ciphersuites (server *srv, plugin_config_socket *s, buffer *ciphersuites, cons… in mod_mbedtls_ssl_conf_ciphersuites() argument
3433 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_ciphersuites()
3443 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_ciphersuites()
3452 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_ciphersuites()
3460 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_ciphersuites()
3528 elog(srv->errh, __FILE__,__LINE__, rc, in mod_mbedtls_ssl_conf_ciphersuites()
3560 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_ciphersuites()
3576 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_ciphersuites()
3598 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_ciphersuites()
3606 mod_mbedtls_ssl_DEFAULT_ciphersuite(srv, ids, nids, idsz); in mod_mbedtls_ssl_conf_ciphersuites()
3621 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_ciphersuites()
3633 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_ciphersuites()
3640 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_ciphersuites()
3647 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3657 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3677 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_ciphersuites()
3694 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_ciphersuites()
3709 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_ciphersuites()
3728 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_ciphersuites()
3741 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3750 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3755 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3765 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3770 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3780 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3785 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3796 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3801 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3812 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3817 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3827 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3832 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3841 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3852 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3857 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3861 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3871 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3884 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3896 nids = mod_mbedtls_ssl_append_ciphersuite(srv, ids, nids, idsz, in mod_mbedtls_ssl_conf_ciphersuites()
3907 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_ciphersuites()
3917 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_ciphersuites()
3935 mod_mbedtls_ssl_DEFAULT_ciphersuite(srv, ids, nids, in mod_mbedtls_ssl_conf_ciphersuites()
3941 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_ciphersuites()
3964 mod_mbedtls_ssl_append_curve (server *srv, mbedtls_ecp_group_id *ids, int nids, int idsz, const mbe… in mod_mbedtls_ssl_append_curve() argument
3967 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_append_curve()
3977 mod_mbedtls_ssl_conf_curves(server *srv, plugin_config_socket *s, const buffer *curvelist) in mod_mbedtls_ssl_conf_curves() argument
3996 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_curves()
4001 nids = mod_mbedtls_ssl_append_curve(srv, ids, nids, idsz, info->grp_id); in mod_mbedtls_ssl_conf_curves()
4021 mod_mbedtls_ssl_append_curve (server *srv, uint16_t *ids, int nids, int idsz, const uint16_t id) in mod_mbedtls_ssl_append_curve() argument
4024 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_append_curve()
4034 mod_mbedtls_ssl_conf_curves(server *srv, plugin_config_socket *s, const buffer *curvelist) in mod_mbedtls_ssl_conf_curves() argument
4053 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_curves()
4058 nids = mod_mbedtls_ssl_append_curve(srv, ids, nids, idsz, info->tls_id); in mod_mbedtls_ssl_conf_curves()
4080 mod_mbedtls_ssl_conf_dhparameters(server *srv, plugin_config_socket *s, const buffer *dhparameters) in mod_mbedtls_ssl_conf_dhparameters() argument
4086 elogf(srv->errh, __FILE__,__LINE__, rc, in mod_mbedtls_ssl_conf_dhparameters()
4091 elogf(srv->errh, __FILE__,__LINE__, rc, in mod_mbedtls_ssl_conf_dhparameters()
4101 mod_mbedtls_ssl_conf_proto (server *srv, plugin_config_socket *s, const buffer *b, int max) in mod_mbedtls_ssl_conf_proto() argument
4146 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_proto()
4154 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_proto()
4160 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_proto()
4173 mod_mbedtls_ssl_conf_proto (server *srv, plugin_config_socket *s, const buffer *b, int max) in mod_mbedtls_ssl_conf_proto() argument
4187 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_proto()
4193 log_error(srv->errh, __FILE__, __LINE__, in mod_mbedtls_ssl_conf_proto()