| 1017 | } |
| 1018 | |
| 1019 | apr_status_t md_util_abs_http_uri_check(apr_pool_t *p, const char *uri, const char **perr) |
| 1020 | { |
| 1021 | apr_uri_t uri_parsed; |
| 1022 | apr_status_t rv; |
| 1023 | |
| 1024 | if (APR_SUCCESS == (rv = uri_check(&uri_parsed, p, uri, perr))) { |
| 1025 | if (!uri_parsed.scheme) { |
| 1026 | *perr = "missing uri scheme"; |
| 1027 | return APR_EINVAL; |
| 1028 | } |
| 1029 | if (apr_cstr_casecmp("http", uri_parsed.scheme) |
| 1030 | && apr_cstr_casecmp("https", uri_parsed.scheme)) { |
| 1031 | *perr = "uri scheme must be http or https"; |
| 1032 | return APR_EINVAL; |
| 1033 | } |
| 1034 | } |
| 1035 | return rv; |
| 1036 | } |
| 1037 | |
| 1038 | /* try and retry for a while **********************************************************************/ |
| 1039 |
no test coverage detected