| 818 | (SSL_PCM_EXISTS|SSL_PCM_ISDIR) |
| 819 | |
| 820 | static const char *ssl_cmd_check_file(cmd_parms *parms, |
| 821 | const char **file) |
| 822 | { |
| 823 | const char *filepath; |
| 824 | |
| 825 | /* If only dumping the config, don't verify the paths */ |
| 826 | if (ap_state_query(AP_SQ_RUN_MODE) == AP_SQ_RM_CONFIG_DUMP) { |
| 827 | return NULL; |
| 828 | } |
| 829 | |
| 830 | filepath = ap_server_root_relative(parms->pool, *file); |
| 831 | if (!filepath) { |
| 832 | return apr_pstrcat(parms->pool, parms->cmd->name, |
| 833 | ": Invalid file path ", *file, NULL); |
| 834 | } |
| 835 | *file = filepath; |
| 836 | |
| 837 | if (ssl_util_path_check(SSL_FLAGS_CHECK_FILE, *file, parms->pool)) { |
| 838 | return NULL; |
| 839 | } |
| 840 | |
| 841 | return apr_pstrcat(parms->pool, parms->cmd->name, |
| 842 | ": file '", *file, |
| 843 | "' does not exist or is empty", NULL); |
| 844 | |
| 845 | } |
| 846 | |
| 847 | const char *ssl_cmd_SSLCompression(cmd_parms *cmd, void *dcfg, int flag) |
| 848 | { |
no test coverage detected