File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ pub mod store;
51
51
mod tests;
52
52
53
53
bitflags:: bitflags! {
54
+ #[ cfg( ossl110) ]
54
55
/// KeyUsage bitset
55
56
///
56
57
/// Refer to KeyUsage extension for details and meaning of every flag
@@ -686,6 +687,7 @@ impl X509Ref {
686
687
}
687
688
}
688
689
690
+ #[ cfg( ossl110) ]
689
691
/// Retrieves set of basic key usage flags within certificate
690
692
#[ corresponds( X509_get_key_usage ) ]
691
693
pub fn key_usage ( & self ) -> X509KeyUsage {
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ use crate::x509::store::X509Lookup;
18
18
use crate :: x509:: store:: X509StoreBuilder ;
19
19
#[ cfg( any( ossl102, boringssl, libressl261) ) ]
20
20
use crate :: x509:: verify:: { X509VerifyFlags , X509VerifyParam } ;
21
- use crate :: x509:: X509KeyUsage ;
22
21
#[ cfg( any( ossl102, boringssl) ) ]
23
22
use crate :: x509:: X509PurposeId ;
24
23
#[ cfg( any( ossl102, boringssl, libressl261) ) ]
@@ -1194,8 +1193,11 @@ fn test_store_all_certificates() {
1194
1193
assert_eq ! ( store. all_certificates( ) . len( ) , 1 ) ;
1195
1194
}
1196
1195
1196
+ #[ cfg( ossl110) ]
1197
1197
#[ test]
1198
1198
fn should_get_x509_key_usage ( ) {
1199
+ use crate :: x509:: X509KeyUsage ;
1200
+
1199
1201
let pkey = pkey ( ) ;
1200
1202
1201
1203
let mut name = X509Name :: builder ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments