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

Function ssl_cmd_check_dir

modules/ssl/ssl_engine_config.c:912–931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

910
911
912static const char *ssl_cmd_check_dir(cmd_parms *parms,
913 const char **dir)
914{
915 const char *dirpath = ap_server_root_relative(parms->pool, *dir);
916
917 if (!dirpath) {
918 return apr_pstrcat(parms->pool, parms->cmd->name,
919 ": Invalid dir path ", *dir, NULL);
920 }
921 *dir = dirpath;
922
923 if (ssl_util_path_check(SSL_FLAGS_CHECK_DIR, *dir, parms->pool)) {
924 return NULL;
925 }
926
927 return apr_pstrcat(parms->pool, parms->cmd->name,
928 ": directory '", *dir,
929 "' does not exist", NULL);
930
931}
932
933const char *ssl_cmd_SSLCertificateFile(cmd_parms *cmd,
934 void *dcfg,

Calls 2

ap_server_root_relativeFunction · 0.85
ssl_util_path_checkFunction · 0.85

Tested by

no test coverage detected