diff options
author | Max Heller <hellerm@deshaw.com> | 2020-11-16 10:56:37 -0500 |
---|---|---|
committer | mxheller <max.a.heller@gmail.com> | 2020-11-17 21:30:03 -0500 |
commit | e8b7b4a8112aa9d5061de3ba2a6dd0cec400d179 (patch) | |
tree | ed1d32f6eb3ab7632b27461bda9ece3a4364f4fa /openssl/src/x509 | |
parent | 8b460ab646219d2c7f904f6f8c08678a848e7d44 (diff) | |
download | rust-openssl-e8b7b4a8112aa9d5061de3ba2a6dd0cec400d179.zip |
appropriately version gate X509_V_FLAGs
Diffstat (limited to 'openssl/src/x509')
-rw-r--r-- | openssl/src/x509/verify.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openssl/src/x509/verify.rs b/openssl/src/x509/verify.rs index 355d33a8..afbe12c8 100644 --- a/openssl/src/x509/verify.rs +++ b/openssl/src/x509/verify.rs @@ -41,12 +41,19 @@ bitflags! { const X509_V_FLAG_EXTENDED_CRL_SUPPORT = ffi::X509_V_FLAG_EXTENDED_CRL_SUPPORT; const X509_V_FLAG_USE_DELTAS = ffi::X509_V_FLAG_USE_DELTAS; const X509_V_FLAG_CHECK_SS_SIGNATURE = ffi::X509_V_FLAG_CHECK_SS_SIGNATURE; + #[cfg(ossl102)] const X509_V_FLAG_TRUSTED_FIRST = ffi::X509_V_FLAG_TRUSTED_FIRST; + #[cfg(ossl102)] const X509_V_FLAG_SUITEB_128_LOS_ONLY = ffi::X509_V_FLAG_SUITEB_128_LOS_ONLY; + #[cfg(ossl102)] const X509_V_FLAG_SUITEB_192_LOS = ffi::X509_V_FLAG_SUITEB_128_LOS; + #[cfg(ossl102)] const X509_V_FLAG_SUITEB_128_LOS = ffi::X509_V_FLAG_SUITEB_192_LOS; + #[cfg(ossl102)] const X509_V_FLAG_PARTIAL_CHAIN = ffi::X509_V_FLAG_PARTIAL_CHAIN; + #[cfg(ossl110)] const X509_V_FLAG_NO_ALT_CHAINS = ffi::X509_V_FLAG_NO_ALT_CHAINS; + #[cfg(ossl110)] const X509_V_FLAG_NO_CHECK_TIME = ffi::X509_V_FLAG_NO_CHECK_TIME; } } |