summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize/cert.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-01-08 14:11:12 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-01-08 14:11:12 +0100
commit42448c0a3d6a678e96b1c1c9e2a09a74eb727bc2 (patch)
treed5f888edc9dbf63cf67b457dde6d4d0b9a24df74 /openpgp/src/serialize/cert.rs
parentcd9b09a8d41d01f3661a4f1d2ddf7f850c15ef53 (diff)
openpgp: Remove creation time argument from *::bind.
- This can already be achieved by customizing the signature builder, and by default the signature builder uses the current time.
Diffstat (limited to 'openpgp/src/serialize/cert.rs')
-rw-r--r--openpgp/src/serialize/cert.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/openpgp/src/serialize/cert.rs b/openpgp/src/serialize/cert.rs
index cad18c63..aac5e6f5 100644
--- a/openpgp/src/serialize/cert.rs
+++ b/openpgp/src/serialize/cert.rs
@@ -739,8 +739,7 @@ mod test {
.set_key_flags(
&KeyFlags::default().set_transport_encryption(true))
.unwrap()
- .set_exportable_certification(false).unwrap(),
- None).unwrap();
+ .set_exportable_certification(false).unwrap()).unwrap();
let uid = UserID::from("foo");
let uid_binding = uid.bind(
@@ -748,8 +747,7 @@ mod test {
signature::Builder::from(
cert.primary_key_signature(None).unwrap().clone())
.set_type(SignatureType::PositiveCertification)
- .set_exportable_certification(false).unwrap(),
- None).unwrap();
+ .set_exportable_certification(false).unwrap()).unwrap();
let ua = UserAttribute::new(&[
Subpacket::Unknown(2, b"foo".to_vec().into_boxed_slice()),
@@ -759,8 +757,7 @@ mod test {
signature::Builder::from(
cert.primary_key_signature(None).unwrap().clone())
.set_type(SignatureType::PositiveCertification)
- .set_exportable_certification(false).unwrap(),
- None).unwrap();
+ .set_exportable_certification(false).unwrap()).unwrap();
let cert = cert.merge_packets(vec![
Packet::SecretSubkey(key), key_binding.into(),