diff options
Diffstat (limited to 'openpgp/src/cert/builder.rs')
-rw-r--r-- | openpgp/src/cert/builder.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openpgp/src/cert/builder.rs b/openpgp/src/cert/builder.rs index eee275eb..0ceb0579 100644 --- a/openpgp/src/cert/builder.rs +++ b/openpgp/src/cert/builder.rs @@ -1649,7 +1649,9 @@ mod tests { fn all_ciphersuites() { use self::CipherSuite::*; - for cs in vec![Cv25519, RSA3k, P256, P384, P521, RSA2k, RSA4k] { + for cs in vec![Cv25519, RSA3k, P256, P384, P521, RSA2k, RSA4k] + .into_iter().filter(|cs| cs.is_supported().is_ok()) + { assert!(CertBuilder::new() .set_cipher_suite(cs) .generate().is_ok()); |