summaryrefslogtreecommitdiffstats
path: root/sqv
diff options
context:
space:
mode:
Diffstat (limited to 'sqv')
-rw-r--r--sqv/tests/revoked-key.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/sqv/tests/revoked-key.rs b/sqv/tests/revoked-key.rs
index 652d8f1e..18d65d15 100644
--- a/sqv/tests/revoked-key.rs
+++ b/sqv/tests/revoked-key.rs
@@ -318,7 +318,7 @@ fn create_key() {
let mut b = signature::SignatureBuilder::new(SignatureType::DirectKey)
.set_features(&Features::sequoia()).unwrap()
.set_key_flags(&KeyFlags::default()
- .set_signing(true).set_certification(true)).unwrap()
+ .set_signing().set_certification()).unwrap()
.set_signature_creation_time(t1).unwrap()
.set_preferred_hash_algorithms(vec![HashAlgorithm::SHA512])
.unwrap();
@@ -326,7 +326,7 @@ fn create_key() {
// 1st subkey binding signature valid from t_sk_binding on
b = signature::SignatureBuilder::new(SignatureType::SubkeyBinding)
- .set_key_flags(&KeyFlags::default().set_signing(true)).unwrap()
+ .set_key_flags(&KeyFlags::default().set_signing()).unwrap()
.set_signature_creation_time(t_sk_binding).unwrap()
.set_embedded_signature(
signature::SignatureBuilder::new(SignatureType::PrimaryKeyBinding)
@@ -339,7 +339,7 @@ fn create_key() {
b = signature::SignatureBuilder::new(SignatureType::DirectKey)
.set_features(&Features::sequoia()).unwrap()
.set_key_flags(&KeyFlags::default()
- .set_signing(true).set_certification(true)).unwrap()
+ .set_signing().set_certification()).unwrap()
.set_signature_creation_time(t3).unwrap()
.set_preferred_hash_algorithms(vec![HashAlgorithm::SHA512])
.unwrap();
@@ -347,7 +347,7 @@ fn create_key() {
// 2nd subkey binding signature valid from t3 on
let mut b = signature::SignatureBuilder::new(SignatureType::SubkeyBinding)
- .set_key_flags(&KeyFlags::default().set_signing(true)).unwrap()
+ .set_key_flags(&KeyFlags::default().set_signing()).unwrap()
.set_signature_creation_time(t3).unwrap()
.set_embedded_signature(
signature::SignatureBuilder::new(SignatureType::PrimaryKeyBinding)