File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ pub mod store;
50
50
#[ cfg( test) ]
51
51
mod tests;
52
52
53
- #[ cfg( ossl110) ]
53
+ #[ cfg( any ( ossl110, boringssl ) ) ]
54
54
bitflags:: bitflags! {
55
55
/// KeyUsage bitset
56
56
///
@@ -687,7 +687,7 @@ impl X509Ref {
687
687
}
688
688
}
689
689
690
- #[ cfg( ossl110) ]
690
+ #[ cfg( any ( ossl110, boringssl ) ) ]
691
691
/// Retrieves set of basic key usage flags within certificate
692
692
#[ corresponds( X509_get_key_usage ) ]
693
693
pub fn key_usage ( & self ) -> X509KeyUsage {
Original file line number Diff line number Diff line change @@ -1193,7 +1193,7 @@ fn test_store_all_certificates() {
1193
1193
assert_eq ! ( store. all_certificates( ) . len( ) , 1 ) ;
1194
1194
}
1195
1195
1196
- #[ cfg( ossl110) ]
1196
+ #[ cfg( any ( ossl110, boringssl ) ) ]
1197
1197
#[ test]
1198
1198
fn should_get_x509_key_usage ( ) {
1199
1199
use crate :: x509:: X509KeyUsage ;
@@ -1256,7 +1256,7 @@ fn should_get_x509_key_usage() {
1256
1256
assert ! ( !usage. contains( X509KeyUsage :: DECIPHER_ONLY ) ) ;
1257
1257
}
1258
1258
1259
- #[ cfg( ossl110) ]
1259
+ #[ cfg( any ( ossl110, boringssl ) ) ]
1260
1260
#[ test]
1261
1261
fn should_get_x509_key_usage_when_no_set ( ) {
1262
1262
use crate :: x509:: X509KeyUsage ;
You can’t perform that action at this time.
0 commit comments