File tree 1 file changed +4
-1
lines changed
1 file changed +4
-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,7 +1868,9 @@ 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
1875
1876
pub fn new ( issuer_cert : & X509 , conf : Option < & ConfRef > ) -> Result < Self , ErrorStack > {
@@ -1878,6 +1879,8 @@ impl X509Crl {
1878
1879
1879
1880
#[ cfg( ossl110) ]
1880
1881
if issuer_cert. version ( ) >= Self :: X509_VERSION_3 {
1882
+ use crate :: x509:: extension:: AuthorityKeyIdentifier ;
1883
+
1881
1884
#[ cfg( any( ossl110, libressl251, boringssl) ) ]
1882
1885
{
1883
1886
// "if present, MUST be v2" (source: RFC 5280, page 55)
You can’t perform that action at this time.
0 commit comments