uint32_t fragment_size; //!< Maximum record fragment, or record size.
bool check_crl; //!< Check certificate revocation lists.
- bool use_deltas; //!< Enable support for delta CRLs.
bool allow_expired_crl; //!< Don't error out if CRL is expired.
char const *check_cert_cn; //!< Verify cert CN matches the expansion of this string.
{ FR_CONF_OFFSET("disable_single_dh_use", FR_TYPE_BOOL, fr_tls_conf_t, disable_single_dh_use) },
{ FR_CONF_OFFSET("check_crl", FR_TYPE_BOOL, fr_tls_conf_t, check_crl), .dflt = "no" },
-#ifdef X509_V_FLAG_USE_DELTAS
- { FR_CONF_OFFSET("use_deltas", FR_TYPE_BOOL, fr_tls_conf_t, use_deltas), .dflt = "no" },
-#endif
#ifdef X509_V_FLAG_CRL_CHECK_ALL
{ FR_CONF_DEPRECATED("check_all_crl", FR_TYPE_BOOL, fr_tls_conf_t, NULL) },
#endif
}
X509_STORE_set_flags(cert_vpstore, X509_V_FLAG_CRL_CHECK | X509_V_FLAG_CRL_CHECK_ALL);
#ifdef X509_V_FLAG_USE_DELTAS
- if (conf->use_deltas) {
- X509_STORE_set_flags(cert_vpstore, X509_V_FLAG_USE_DELTAS);
- }
+ /*
+ * If set, delta CRLs (if present) are used to
+ * determine certificate status. If not set
+ * deltas are ignored.
+ *
+ * So it's safe to always set this flag.
+ */
+ X509_STORE_set_flags(cert_vpstore, X509_V_FLAG_USE_DELTAS);
#endif
}
#endif