| 418 | } |
| 419 | |
| 420 | static int uses_port(server_rec *s, int port) |
| 421 | { |
| 422 | server_addr_rec *sa; |
| 423 | int match = 0; |
| 424 | for (sa = s->addrs; sa; sa = sa->next) { |
| 425 | if (sa->host_port == port) { |
| 426 | /* host_addr might be general (0.0.0.0) or specific, we count this as match */ |
| 427 | match = 1; |
| 428 | } |
| 429 | else { |
| 430 | /* uses other port/wildcard */ |
| 431 | return 0; |
| 432 | } |
| 433 | } |
| 434 | return match; |
| 435 | } |
| 436 | |
| 437 | static apr_status_t detect_supported_protocols(md_mod_conf_t *mc, server_rec *s, |
| 438 | apr_pool_t *p, int log_level) |
no outgoing calls
no test coverage detected