| 1485 | } |
| 1486 | |
| 1487 | int md_config_geti(const md_srv_conf_t *sc, md_config_var_t var) |
| 1488 | { |
| 1489 | switch (var) { |
| 1490 | case MD_CONFIG_DRIVE_MODE: |
| 1491 | return (sc->renew_mode != DEF_VAL)? sc->renew_mode : defconf.renew_mode; |
| 1492 | case MD_CONFIG_TRANSITIVE: |
| 1493 | return (sc->transitive != DEF_VAL)? sc->transitive : defconf.transitive; |
| 1494 | case MD_CONFIG_REQUIRE_HTTPS: |
| 1495 | return (sc->require_https != MD_REQUIRE_UNSET)? sc->require_https : defconf.require_https; |
| 1496 | case MD_CONFIG_MUST_STAPLE: |
| 1497 | return (sc->must_staple != DEF_VAL)? sc->must_staple : defconf.must_staple; |
| 1498 | case MD_CONFIG_STAPLING: |
| 1499 | return (sc->stapling != DEF_VAL)? sc->stapling : defconf.stapling; |
| 1500 | case MD_CONFIG_STAPLE_OTHERS: |
| 1501 | return (sc->staple_others != DEF_VAL)? sc->staple_others : defconf.staple_others; |
| 1502 | case MD_CONFIG_CA_PROFILE_MANDATORY: |
| 1503 | return (sc->profile_mandatory != DEF_VAL)? sc->profile_mandatory : defconf.profile_mandatory; |
| 1504 | case MD_CONFIG_ARI_RENEWALS: |
| 1505 | return (sc->ari_renewals != DEF_VAL)? sc->ari_renewals : defconf.ari_renewals; |
| 1506 | default: |
| 1507 | return 0; |
| 1508 | } |
| 1509 | } |
| 1510 | |
| 1511 | void md_config_get_timespan(md_timeslice_t **pspan, const md_srv_conf_t *sc, md_config_var_t var) |
| 1512 | { |
no outgoing calls
no test coverage detected