@@ -1876,6 +1876,7 @@ impl X509Crl {
1876
1876
unsafe {
1877
1877
let crl = Self ( cvt_p ( ffi:: X509_CRL_new ( ) ) ?) ;
1878
1878
1879
+ #[ cfg( ossl110) ]
1879
1880
if issuer_cert. version ( ) >= Self :: X509_VERSION_3 {
1880
1881
#[ cfg( any( ossl110, libressl251, boringssl) ) ]
1881
1882
{
@@ -1926,6 +1927,9 @@ impl X509Crl {
1926
1927
}
1927
1928
}
1928
1929
1930
+ /// Note that `0` return value stands for version 1, `1` for version 2.
1931
+ #[ cfg( ossl110) ]
1932
+ #[ corresponds( X509_CRL_get_version ) ]
1929
1933
pub fn version ( & self ) -> i32 {
1930
1934
unsafe { ffi:: X509_CRL_get_version ( self . as_ptr ( ) ) as i32 }
1931
1935
}
@@ -2021,6 +2025,7 @@ impl X509Crl {
2021
2025
/// This is an internal function, therefore the caller is expected to ensure not to call this with a CRLv1
2022
2026
/// Set the crl_number extension's value.
2023
2027
/// If the extension is not present, it will be added.
2028
+ #[ cfg( ossl110) ]
2024
2029
fn set_crl_number ( & mut self , value : & BigNum ) -> Result < ( ) , ErrorStack > {
2025
2030
debug_assert_eq ! ( self . version( ) , Self :: X509_CRL_VERSION_2 ) ;
2026
2031
unsafe {
@@ -2040,6 +2045,7 @@ impl X509Crl {
2040
2045
/// Increment the crl number (or try to add the extension if not present)
2041
2046
///
2042
2047
/// Returns the new crl number, unless self is a crlv1, which does not support extensions
2048
+ #[ cfg( ossl110) ]
2043
2049
pub fn increment_crl_number ( & mut self ) -> Result < Option < BigNum > , ErrorStack > {
2044
2050
if self . version ( ) == Self :: X509_CRL_VERSION_2 {
2045
2051
let new_crl_number = if let Some ( mut n) = self . read_crl_number ( ) ? {
0 commit comments