| 72 | }; |
| 73 | |
| 74 | static apr_status_t problem_status_get(const char *type) { |
| 75 | size_t i; |
| 76 | |
| 77 | if (strstr(type, "urn:ietf:params:") == type) { |
| 78 | type += strlen("urn:ietf:params:"); |
| 79 | } |
| 80 | else if (strstr(type, "urn:") == type) { |
| 81 | type += strlen("urn:"); |
| 82 | } |
| 83 | |
| 84 | for(i = 0; i < (sizeof(Problems)/sizeof(Problems[0])); ++i) { |
| 85 | if (!apr_cstr_casecmp(type, Problems[i].type)) { |
| 86 | return Problems[i].rv; |
| 87 | } |
| 88 | } |
| 89 | return APR_EGENERAL; |
| 90 | } |
| 91 | |
| 92 | int md_acme_problem_is_input_related(const char *problem) { |
| 93 | size_t i; |