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

Function problem_status_get

modules/md/md_acme.c:74–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72};
73
74static 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
92int md_acme_problem_is_input_related(const char *problem) {
93 size_t i;

Callers 1

inspect_problemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected