File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ use crate::ssl::SslRef;
39
39
use crate :: stack:: { Stack , StackRef , Stackable } ;
40
40
use crate :: string:: OpensslString ;
41
41
use crate :: util:: { ForeignTypeExt , ForeignTypeRefExt } ;
42
- use crate :: x509:: extension:: AuthorityKeyIdentifier ;
43
42
use crate :: { cvt, cvt_n, cvt_p, cvt_p_const} ;
44
43
use openssl_macros:: corresponds;
45
44
@@ -1869,15 +1868,21 @@ impl X509Crl {
1869
1868
ffi:: d2i_X509_CRL
1870
1869
}
1871
1870
1871
+ #[ cfg( ossl110) ]
1872
1872
const X509_VERSION_3 : i32 = 2 ;
1873
+ #[ cfg( ossl110) ]
1873
1874
const X509_CRL_VERSION_2 : i32 = 1 ;
1874
1875
1876
+ // if not cfg(ossl110) issuer_cert is unused
1877
+ #[ allow( unused_variables) ]
1875
1878
pub fn new ( issuer_cert : & X509 , conf : Option < & ConfRef > ) -> Result < Self , ErrorStack > {
1876
1879
unsafe {
1877
1880
let crl = Self ( cvt_p ( ffi:: X509_CRL_new ( ) ) ?) ;
1878
1881
1879
1882
#[ cfg( ossl110) ]
1880
1883
if issuer_cert. version ( ) >= Self :: X509_VERSION_3 {
1884
+ use crate :: x509:: extension:: AuthorityKeyIdentifier ;
1885
+
1881
1886
#[ cfg( any( ossl110, libressl251, boringssl) ) ]
1882
1887
{
1883
1888
// "if present, MUST be v2" (source: RFC 5280, page 55)
You can’t perform that action at this time.
0 commit comments