MCPcopy Create free account
hub / github.com/apache/httpd / ssl_cmd_SSLRequire

Function ssl_cmd_SSLRequire

modules/ssl/ssl_engine_config.c:1407–1430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1405}
1406
1407const char *ssl_cmd_SSLRequire(cmd_parms *cmd,
1408 void *dcfg,
1409 const char *arg)
1410{
1411 SSLDirConfigRec *dc = (SSLDirConfigRec *)dcfg;
1412 ap_expr_info_t *info = apr_pcalloc(cmd->pool, sizeof(ap_expr_info_t));
1413 ssl_require_t *require;
1414 const char *errstring;
1415
1416 info->flags = AP_EXPR_FLAG_SSL_EXPR_COMPAT;
1417 info->filename = cmd->directive->filename;
1418 info->line_number = cmd->directive->line_num;
1419 info->module_index = APLOG_MODULE_INDEX;
1420 errstring = ap_expr_parse(cmd->pool, cmd->temp_pool, info, arg, NULL);
1421 if (errstring) {
1422 return apr_pstrcat(cmd->pool, "SSLRequire: ", errstring, NULL);
1423 }
1424
1425 require = apr_array_push(dc->aRequirement);
1426 require->cpExpr = arg;
1427 require->mpExpr = info;
1428
1429 return NULL;
1430}
1431
1432const char *ssl_cmd_SSLRenegBufferSize(cmd_parms *cmd, void *dcfg, const char *arg)
1433{

Callers

nothing calls this directly

Calls 1

ap_expr_parseFunction · 0.85

Tested by

no test coverage detected