Skip to content

Commit f738016

Browse files
committed
boringssl compatibility
1 parent 62a449c commit f738016

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

openssl/src/x509/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1865,7 +1865,7 @@ impl X509Crl {
18651865
))?;
18661866

18671867
cfg_if!(
1868-
if #[cfg(any(ossl110, libressl270))] {
1868+
if #[cfg(any(ossl110, libressl270, boringssl))] {
18691869
cvt(ffi::X509_CRL_set1_lastUpdate(crl.as_ptr(), Asn1Time::now()?.as_ptr())).map(|_| ())?
18701870
} else {
18711871
cvt(ffi::X509_CRL_set_lastUpdate(crl.as_ptr(), Asn1Time::now()?.as_ptr())).map(|_| ())?
@@ -1880,7 +1880,7 @@ impl X509Crl {
18801880
pub fn set_last_update(&mut self, seconds_from_now: Option<i32>) -> Result<(), ErrorStack> {
18811881
let time = Asn1Time::seconds_from_now(seconds_from_now.unwrap_or(0) as c_long)?;
18821882
cfg_if!(
1883-
if #[cfg(any(ossl110, libressl270))] {
1883+
if #[cfg(any(ossl110, libressl270, boringssl))] {
18841884
unsafe {
18851885
cvt(ffi::X509_CRL_set1_lastUpdate(self.as_ptr(), time.as_ptr())).map(|_| ())?
18861886
};
@@ -1897,7 +1897,7 @@ impl X509Crl {
18971897
// Note: u32 seconds is more than enough for this;
18981898
pub fn set_next_update_from_now(&mut self, seconds_from_now: u32) -> Result<(), ErrorStack> {
18991899
cfg_if!(
1900-
if #[cfg(any(ossl110, libressl270))] {
1900+
if #[cfg(any(ossl110, libressl270, boringssl))] {
19011901
unsafe {
19021902
cvt(ffi::X509_CRL_set1_nextUpdate(
19031903
self.as_ptr(),

0 commit comments

Comments
 (0)