Fix QUIC compilation and FIPS features
Fix a build issue due to lack of trait constraints. Pass FIPS feature flag through and test it
This commit is contained in:
parent
b1188e2ef1
commit
03b48134ca
4 changed files with 15 additions and 4 deletions
|
|
@ -40,6 +40,18 @@ async fn test_tls13_crypto() {
|
|||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "fips", feature = "fips-only"))]
|
||||
fn is_fips_enabled() {
|
||||
assert!(boring::fips::enabled());
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(not(any(feature = "fips", feature = "fips-only")))]
|
||||
fn is_fips_disabled() {
|
||||
assert!(!boring::fips::enabled());
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn test_tls12_ec_crypto() {
|
||||
let pki = TestPki::new(&rcgen::PKCS_ECDSA_P256_SHA256);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue