Lines Matching refs:s
227 const char *s = PR_ErrorToName(rc); in elog() local
229 msg, s ? s : "", PR_ErrorToString(rc, 0)); in elog()
836 plugin_ssl_ctx * const s = p->ssl_ctxs + i; in mod_nss_free_config() local
837 if (s->model && s->model != global_model) in mod_nss_free_config()
838 PR_Close(s->model); in mod_nss_free_config()
1511 mod_nss_ssl_conf_ciphersuites (server *srv, plugin_config_socket *s, buffer *ciphersuites, const bu…
1515 mod_nss_ssl_conf_curves(server *srv, plugin_config_socket *s, const buffer *curvelist);
1519 mod_nss_ssl_conf_proto (server *srv, plugin_config_socket *s, const buffer *minb, const buffer *max…
1523 mod_nss_ssl_conf_cmd (server *srv, plugin_config_socket *s) in mod_nss_ssl_conf_cmd() argument
1534 for (size_t i = 0; i < s->ssl_conf_cmd->used; ++i) { in mod_nss_ssl_conf_cmd()
1535 data_string *ds = (data_string *)s->ssl_conf_cmd->data[i]; in mod_nss_ssl_conf_cmd()
1571 s->ssl_compression = flag; in mod_nss_ssl_conf_cmd()
1578 s->ssl_session_ticket = flag; in mod_nss_ssl_conf_cmd()
1585 s->ssl_honor_cipher_order = flag; in mod_nss_ssl_conf_cmd()
1612 mod_nss_ssl_conf_proto(srv, s, minb, maxb); in mod_nss_ssl_conf_cmd()
1614 if (!mod_nss_ssl_conf_ciphersuites(srv, s, ciphersuites, cipherstring)) in mod_nss_ssl_conf_cmd()
1618 if (!mod_nss_ssl_conf_curves(srv, s, curves)) in mod_nss_ssl_conf_cmd()
1627 network_init_ssl (server *srv, plugin_config_socket *s, plugin_data *p) in network_init_ssl() argument
1639 s->model = PR_CreateSocketPollFd(-1); in network_init_ssl()
1640 if (NULL == s->model) return -1; in network_init_ssl()
1641 s->model->methods = PR_GetTCPMethods(); in network_init_ssl()
1642 PRFileDesc *model = SSL_ImportFD(NULL, s->model); in network_init_ssl()
1644 s->model = model; in network_init_ssl()
1646 if (s->ssl_cipher_list) { in network_init_ssl()
1647 if (!mod_nss_ssl_conf_ciphersuites(srv,s,NULL,s->ssl_cipher_list)) in network_init_ssl()
1651 mod_nss_ssl_conf_proto(srv, s, NULL, NULL); /* set default range */ in network_init_ssl()
1653 if (s->ssl_conf_cmd && s->ssl_conf_cmd->used) { in network_init_ssl()
1654 if (0 != mod_nss_ssl_conf_cmd(srv, s)) return -1; in network_init_ssl()
1665 if (SSL_VersionRangeSet(model, &s->protos)) { in network_init_ssl()
1670 if (s->protos.min == SSL_LIBRARY_VERSION_2 in network_init_ssl()
1676 if (s->protos.min == SSL_LIBRARY_VERSION_3_0 in network_init_ssl()
1682 if (!s->ssl_session_ticket in network_init_ssl()
1688 if (SSL_OptionSet(model, SSL_ENABLE_DEFLATE, s->ssl_compression) < 0) { in network_init_ssl()
1697 SSL_ConfigServerCert(model, s->pc->ssl_pemfile_x509, in network_init_ssl()
1698 s->pc->ssl_pemfile_pkey, in network_init_ssl()
1699 &s->pc->ssl_credex, in network_init_ssl()
1700 sizeof(s->pc->ssl_credex)); in network_init_ssl()
1867 plugin_ssl_ctx * const s = p->ssl_ctxs + sidx; in mod_nss_set_defaults_sockets() local
1868 *s = *p->ssl_ctxs;/*(copy struct of ssl_ctx from global scope)*/ in mod_nss_set_defaults_sockets()
1888 plugin_ssl_ctx * const s = p->ssl_ctxs + sidx; in mod_nss_set_defaults_sockets() local
1889 s->model = conf.model; in mod_nss_set_defaults_sockets()
1890 s->protos = conf.protos; in mod_nss_set_defaults_sockets()
1891 s->ssl_compression = conf.ssl_compression; in mod_nss_set_defaults_sockets()
1892 s->ssl_session_ticket = conf.ssl_session_ticket; in mod_nss_set_defaults_sockets()
2311 plugin_ssl_ctx * const s = p->ssl_ctxs + srv_sock->sidx; in CONNECTION_FUNC() local
2312 hctx->ssl_session_ticket = s->ssl_session_ticket; in CONNECTION_FUNC()
2319 hctx->ssl = mod_nss_io_ctor(con->fd, s->model, r->conf.errh); in CONNECTION_FUNC()
2493 char *s = comp[i].fn(subj); in https_add_ssl_client_subject() local
2494 if (NULL == s) continue; in https_add_ssl_client_subject()
2498 for (n = 0; (c = ((unsigned char *)s)[n]); ++n) { in https_add_ssl_client_subject()
2499 if (c < 32 || c == 127) s[n] = '?'; in https_add_ssl_client_subject()
2504 http_header_env_set(r, key, prelen+comp[i].tlen, s, n); in https_add_ssl_client_subject()
2506 PR_Free(s); in https_add_ssl_client_subject()
2515 const char *s = PR_ErrorToName(status); in https_add_ssl_client_verify_err() local
2516 if (s) in https_add_ssl_client_verify_err()
2517 buffer_append_string_len(b, s, strlen(s)); in https_add_ssl_client_verify_err()
2519 s = PR_ErrorToString(status, PR_LANGUAGE_I_DEFAULT); in https_add_ssl_client_verify_err()
2520 buffer_append_string_len(b, s, strlen(s)); in https_add_ssl_client_verify_err()
2549 char *s = CERT_NameToAsciiInvertible(&crt->subject, CERT_N2A_STRICT); in https_add_ssl_client_entries() local
2550 if (s) { in https_add_ssl_client_entries()
2553 s, strlen(s)); in https_add_ssl_client_entries()
2554 PR_Free(s); in https_add_ssl_client_entries()
2559 s = (char *)crt->serialNumber.data; in https_add_ssl_client_entries()
2561 while (i < crt->serialNumber.len && s[i] == 0) ++i; in https_add_ssl_client_entries()
2565 s+i, crt->serialNumber.len-i); in https_add_ssl_client_entries()
2604 const char *s = NULL; in http_cgi_ssl_env() local
2606 case SSL_LIBRARY_VERSION_TLS_1_3: s="TLSv1.3";n=sizeof("TLSv1.3")-1;break; in http_cgi_ssl_env()
2607 case SSL_LIBRARY_VERSION_TLS_1_2: s="TLSv1.2";n=sizeof("TLSv1.2")-1;break; in http_cgi_ssl_env()
2608 case SSL_LIBRARY_VERSION_TLS_1_1: s="TLSv1.1";n=sizeof("TLSv1.1")-1;break; in http_cgi_ssl_env()
2609 case SSL_LIBRARY_VERSION_TLS_1_0: s="TLSv1.0";n=sizeof("TLSv1.0")-1;break; in http_cgi_ssl_env()
2612 if (s) http_header_env_set(r, CONST_STR_LEN("SSL_PROTOCOL"), s, n); in http_cgi_ssl_env()
2719 mod_nss_ssl_conf_curves(server *srv, plugin_config_socket *s, const buffer *curvelist) in mod_nss_ssl_conf_curves() argument
2724 UNUSED(s); in mod_nss_ssl_conf_curves()
2765 mod_nss_ssl_conf_proto (server *srv, plugin_config_socket *s, const buffer *minb, const buffer *max… in mod_nss_ssl_conf_proto() argument
2767 s->protos.min = mod_nss_ssl_conf_proto_val(srv, minb, 0); in mod_nss_ssl_conf_proto()
2768 s->protos.max = mod_nss_ssl_conf_proto_val(srv, maxb, 1); in mod_nss_ssl_conf_proto()
2896 int nss_parse_ciphers(server_rec *s, char *ciphers, PRBool cipher_list[ciphernum]);
3077 static int parse_nss_ciphers(server_rec *s, char *ciphers, PRBool cipher_list[ciphernum]);
3078 static int parse_openssl_ciphers(server_rec *s, char *ciphers, PRBool cipher_list[ciphernum]);
3098 int nss_parse_ciphers(server_rec *s, char *ciphers, PRBool cipher_list[ciphernum]) in nss_parse_ciphers() argument
3100 UNUSED(s); in nss_parse_ciphers()
3106 rv = parse_openssl_ciphers(s, ciphers, cipher_list); in nss_parse_ciphers()
3108 rv = parse_nss_ciphers(s, ciphers, cipher_list); in nss_parse_ciphers()
3110 rv = parse_openssl_ciphers(s, ciphers, cipher_list); in nss_parse_ciphers()
3112 rv = parse_nss_ciphers(s, ciphers, cipher_list); in nss_parse_ciphers()
3116 ap_log_error(APLOG_MARK, APLOG_INFO, 0, s, in nss_parse_ciphers()
3149 static int parse_openssl_ciphers(server_rec *s, char *ciphers, PRBool cipher_list[ciphernum]) in parse_openssl_ciphers() argument
3151 UNUSED(s); in parse_openssl_ciphers()
3226 ap_log_error(APLOG_MARK, APLOG_INFO, 0, s, in parse_openssl_ciphers()
3442 static int parse_nss_ciphers(server_rec *s, char *ciphers, PRBool cipher_list[ciphernum]) in parse_nss_ciphers() argument
3444 UNUSED(s); in parse_nss_ciphers()
3465 ap_log_error(APLOG_MARK, APLOG_INFO, 0, s, in parse_nss_ciphers()
3488 ap_log_error(APLOG_MARK, APLOG_INFO, 0, s, in parse_nss_ciphers()
3496 ap_log_error(APLOG_MARK, APLOG_INFO, 0, s, in parse_nss_ciphers()
3510 mod_nss_ssl_conf_ciphersuites (server *srv, plugin_config_socket *s, buffer *ciphersuites, const bu… in mod_nss_ssl_conf_ciphersuites() argument
3538 SSL_CipherPrefSet(s->model, SSL_ImplementedCiphers[i], SSL_NOT_ALLOWED); in mod_nss_ssl_conf_ciphersuites()
3551 if (s->protos.min && s->protos.min <= SSL_LIBRARY_VERSION_3_0 in mod_nss_ssl_conf_ciphersuites()
3558 if (s->protos.max >= SSL_LIBRARY_VERSION_TLS_1_0 in mod_nss_ssl_conf_ciphersuites()
3567 SSL_CipherPrefSet(s->model, ciphers_def[i].num, in mod_nss_ssl_conf_ciphersuites()