Skip to content

Commit 4cf194c

Browse files
committed
Enable it for boringssl
1 parent f860249 commit 4cf194c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

openssl/src/x509/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub mod store;
5050
#[cfg(test)]
5151
mod tests;
5252

53-
#[cfg(ossl110)]
53+
#[cfg(any(ossl110, boringssl))]
5454
bitflags::bitflags! {
5555
/// KeyUsage bitset
5656
///
@@ -687,7 +687,7 @@ impl X509Ref {
687687
}
688688
}
689689

690-
#[cfg(ossl110)]
690+
#[cfg(any(ossl110, boringssl))]
691691
/// Retrieves set of basic key usage flags within certificate
692692
#[corresponds(X509_get_key_usage)]
693693
pub fn key_usage(&self) -> X509KeyUsage {

openssl/src/x509/tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@ fn test_store_all_certificates() {
11931193
assert_eq!(store.all_certificates().len(), 1);
11941194
}
11951195

1196-
#[cfg(ossl110)]
1196+
#[cfg(any(ossl110, boringssl))]
11971197
#[test]
11981198
fn should_get_x509_key_usage() {
11991199
use crate::x509::X509KeyUsage;
@@ -1256,7 +1256,7 @@ fn should_get_x509_key_usage() {
12561256
assert!(!usage.contains(X509KeyUsage::DECIPHER_ONLY));
12571257
}
12581258

1259-
#[cfg(ossl110)]
1259+
#[cfg(any(ossl110, boringssl))]
12601260
#[test]
12611261
fn should_get_x509_key_usage_when_no_set() {
12621262
use crate::x509::X509KeyUsage;

0 commit comments

Comments
 (0)