Lines Matching defs:sc

102     mctx->sc                  = NULL; /* set during module init */
168 static void modssl_ctx_init_proxy(SSLSrvConfigRec *sc,
173 mctx = sc->proxy = apr_palloc(p, sizeof(*sc->proxy));
186 static void modssl_ctx_init_server(SSLSrvConfigRec *sc,
191 mctx = sc->server = apr_palloc(p, sizeof(*sc->server));
207 SSLSrvConfigRec *sc = apr_palloc(p, sizeof(*sc));
209 sc->mc = NULL;
210 sc->enabled = SSL_ENABLED_UNSET;
211 sc->proxy_enabled = UNSET;
212 sc->vhost_id = NULL; /* set during module init */
213 sc->vhost_id_len = 0; /* set during module init */
214 sc->session_cache_timeout = UNSET;
215 sc->cipher_server_pref = UNSET;
216 sc->insecure_reneg = UNSET;
217 sc->proxy_ssl_check_peer_expire = SSL_ENABLED_UNSET;
218 sc->proxy_ssl_check_peer_cn = SSL_ENABLED_UNSET;
219 sc->proxy_ssl_check_peer_name = SSL_ENABLED_UNSET;
221 sc->strict_sni_vhost_check = SSL_ENABLED_UNSET;
224 sc->fips = UNSET;
227 sc->compression = UNSET;
229 sc->session_tickets = UNSET;
231 modssl_ctx_init_proxy(sc, p);
233 modssl_ctx_init_server(sc, p);
235 return sc;
243 SSLSrvConfigRec *sc = ssl_config_server_new(p);
245 sc->mc = ssl_config_global_create(s);
247 return sc;
454 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
463 sc->server->pphrase_dialog_type = SSL_PPTYPE_BUILTIN;
464 sc->server->pphrase_dialog_path = NULL;
467 sc->server->pphrase_dialog_type = SSL_PPTYPE_FILTER;
468 sc->server->pphrase_dialog_path =
470 if (!sc->server->pphrase_dialog_path) {
476 sc->server->pphrase_dialog_path,
481 sc->server->pphrase_dialog_path,
487 sc->server->pphrase_dialog_type = SSL_PPTYPE_PIPE;
488 sc->server->pphrase_dialog_path = arg + 1;
623 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
626 sc->enabled = SSL_ENABLED_TRUE;
630 sc->enabled = SSL_ENABLED_FALSE;
634 sc->enabled = SSL_ENABLED_OPTIONAL;
644 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
653 if ((sc->fips != UNSET) && (sc->fips != (BOOL)(flag ? TRUE : FALSE)))
655 sc->fips = flag ? TRUE : FALSE;
668 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
678 sc->server->auth.cipher_suite = arg;
714 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
732 sc->compression = flag ? TRUE : FALSE;
742 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
743 sc->cipher_server_pref = flag?TRUE:FALSE;
752 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
757 sc->session_tickets = flag ? TRUE : FALSE;
764 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
765 sc->insecure_reneg = flag?TRUE:FALSE;
799 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
806 *(const char **)apr_array_push(sc->server->pks->cert_files) =
816 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
823 *(const char **)apr_array_push(sc->server->pks->key_files) =
833 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
846 sc->server->cert_chain = arg;
856 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
863 sc->server->ticket_key->file_path = arg;
877 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
889 sc->server->auth.ca_cert_path = arg;
899 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
911 sc->server->auth.ca_cert_file = arg;
919 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
926 sc->server->pks->ca_name_path = arg;
934 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
941 sc->server->pks->ca_name_file = arg;
950 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
957 sc->server->crl_path = arg;
966 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
973 sc->server->crl_file = arg;
1004 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1006 return ssl_cmd_crlcheck_parse(cmd, arg, &sc->server->crl_check_mode);
1039 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1051 sc->server->auth.verify_mode = mode;
1075 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1087 sc->server->auth.verify_depth = depth;
1173 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1175 sc->session_cache_timeout = atoi(arg);
1177 if (sc->session_cache_timeout < 0) {
1369 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1371 sc->server->protocol_set = 1;
1372 return ssl_cmd_protocol_parse(cmd, arg, &sc->server->protocol);
1377 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1379 sc->proxy_enabled = flag ? TRUE : FALSE;
1388 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1390 sc->proxy->protocol_set = 1;
1391 return ssl_cmd_protocol_parse(cmd, arg, &sc->proxy->protocol);
1398 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1403 sc->proxy->auth.cipher_suite = arg;
1412 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1420 sc->proxy->auth.verify_mode = mode;
1429 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1437 sc->proxy->auth.verify_depth = depth;
1446 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1453 sc->proxy->auth.ca_cert_file = arg;
1462 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1469 sc->proxy->auth.ca_cert_path = arg;
1478 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1485 sc->proxy->crl_path = arg;
1494 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1501 sc->proxy->crl_file = arg;
1510 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1512 return ssl_cmd_crlcheck_parse(cmd, arg, &sc->proxy->crl_check_mode);
1519 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1526 sc->proxy->pkp->cert_file = arg;
1535 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1542 sc->proxy->pkp->cert_path = arg;
1551 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1558 sc->proxy->pkp->ca_cert_file = arg;
1573 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1575 sc->server->ocsp_enabled = flag ? TRUE : FALSE;
1589 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1591 sc->server->ocsp_force_default = flag ? TRUE : FALSE;
1598 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1600 sc->server->ocsp_responder = arg;
1607 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1608 sc->server->ocsp_resptime_skew = atoi(arg);
1609 if (sc->server->ocsp_resptime_skew < 0) {
1617 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1618 sc->server->ocsp_resp_maxage = atoi(arg);
1619 if (sc->server->ocsp_resp_maxage < 0) {
1627 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1628 sc->server->ocsp_responder_timeout = apr_time_from_sec(atoi(arg));
1629 if (sc->server->ocsp_responder_timeout < 0) {
1637 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1639 sc->server->ocsp_use_request_nonce = flag ? TRUE : FALSE;
1646 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1648 sc->proxy_ssl_check_peer_expire = flag ? SSL_ENABLED_TRUE : SSL_ENABLED_FALSE;
1655 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1657 sc->proxy_ssl_check_peer_cn = flag ? SSL_ENABLED_TRUE : SSL_ENABLED_FALSE;
1664 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1666 sc->proxy_ssl_check_peer_name = flag ? SSL_ENABLED_TRUE : SSL_ENABLED_FALSE;
1674 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1676 sc->strict_sni_vhost_check = flag ? SSL_ENABLED_TRUE : SSL_ENABLED_FALSE;
1745 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1746 sc->server->stapling_enabled = flag ? TRUE : FALSE;
1753 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1754 sc->server->stapling_resptime_skew = atoi(arg);
1755 if (sc->server->stapling_resptime_skew < 0) {
1764 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1765 sc->server->stapling_resp_maxage = atoi(arg);
1766 if (sc->server->stapling_resp_maxage < 0) {
1775 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1776 sc->server->stapling_cache_timeout = atoi(arg);
1777 if (sc->server->stapling_cache_timeout < 0) {
1786 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1787 sc->server->stapling_errcache_timeout = atoi(arg);
1788 if (sc->server->stapling_errcache_timeout < 0) {
1797 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1798 sc->server->stapling_return_errors = flag ? TRUE : FALSE;
1805 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1806 sc->server->stapling_fake_trylater = flag ? TRUE : FALSE;
1813 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1814 sc->server->stapling_responder_timeout = atoi(arg);
1815 sc->server->stapling_responder_timeout *= APR_USEC_PER_SEC;
1816 if (sc->server->stapling_responder_timeout < 0) {
1825 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1826 sc->server->stapling_force_url = arg;
1836 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1837 SSL_CONF_CTX *cctx = sc->server->ssl_ctx_config;
1857 param = apr_array_push(sc->server->ssl_ctx_param);
1868 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1869 APR_ARRAY_PUSH(sc->server->ssl_alpn_pref, const char *) = protocol;
1879 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1885 sc->server->srp_vfile = apr_pstrdup(cmd->pool, arg);
1892 SSLSrvConfigRec *sc = mySrvConfig(cmd->server);
1894 sc->server->srp_unknown_user_seed = apr_pstrdup(cmd->pool, arg);
1915 SSLSrvConfigRec *sc = mySrvConfig(s);
1917 if (sc && sc->server && sc->server->pks) {
1918 modssl_pk_server_t *const pks = sc->server->pks;
1942 SSLSrvConfigRec *sc = mySrvConfig(s);
1944 if (sc && sc->server) {
1945 if (sc->server->auth.ca_cert_path) {
1947 sc->server->auth.ca_cert_path);
1949 if (sc->server->auth.ca_cert_file) {
1951 sc->server->auth.ca_cert_file);