| 1821 | #define MD_OID_MUST_STAPLE_LNAME "TLS Feature" |
| 1822 | |
| 1823 | int md_cert_must_staple(const md_cert_t *cert) |
| 1824 | { |
| 1825 | /* In case we do not get the NID for it, we treat this as not set. */ |
| 1826 | int nid = MD_GET_NID(MUST_STAPLE); |
| 1827 | return ((NID_undef != nid)) && X509_get_ext_by_NID(cert->x509, nid, -1) >= 0; |
| 1828 | } |
| 1829 | |
| 1830 | static apr_status_t add_must_staple(STACK_OF(X509_EXTENSION) *exts, const char *name, apr_pool_t *p) |
| 1831 | { |