Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Georg Weisert committed Mar 3, 2024
1 parent a53177e commit 6e38a04
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openssl/src/x509/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ use crate::ssl::SslRef;
use crate::stack::{Stack, StackRef, Stackable};
use crate::string::OpensslString;
use crate::util::{ForeignTypeExt, ForeignTypeRefExt};
use crate::x509::extension::AuthorityKeyIdentifier;
use crate::{cvt, cvt_n, cvt_p, cvt_p_const};
use openssl_macros::corresponds;

Expand Down Expand Up @@ -1869,7 +1868,9 @@ impl X509Crl {
ffi::d2i_X509_CRL
}

#[cfg(ossl110)]
const X509_VERSION_3: i32 = 2;
#[cfg(ossl110)]
const X509_CRL_VERSION_2: i32 = 1;

pub fn new(issuer_cert: &X509, conf: Option<&ConfRef>) -> Result<Self, ErrorStack> {
Expand All @@ -1878,6 +1879,8 @@ impl X509Crl {

#[cfg(ossl110)]
if issuer_cert.version() >= Self::X509_VERSION_3 {
use crate::x509::extension::AuthorityKeyIdentifier;

#[cfg(any(ossl110, libressl251, boringssl))]
{
// "if present, MUST be v2" (source: RFC 5280, page 55)
Expand Down

0 comments on commit 6e38a04

Please sign in to comment.