summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2021-04-21 12:49:13 +0200
committerJustus Winter <justus@sequoia-pgp.org>2021-04-26 13:14:15 +0200
commit710f2c60a9a00a5a4c3199f25d387fe82aa21aa0 (patch)
tree3a6694d7890161b9e85d2fdba04e3309249e485f /openpgp/src/cert.rs
parent522e5811c2aa0dc741807cc42d5a3eac2bf63413 (diff)
openpgp: Expose low-level functions for attestation key signatures.
- See #335.
Diffstat (limited to 'openpgp/src/cert.rs')
-rw-r--r--openpgp/src/cert.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/cert.rs b/openpgp/src/cert.rs
index 6339f311..12348ecf 100644
--- a/openpgp/src/cert.rs
+++ b/openpgp/src/cert.rs
@@ -1806,7 +1806,7 @@ impl Cert {
}
},
- crate::types::SignatureType__AttestedKey => {
+ crate::types::SignatureType::AttestationKey => {
for binding in self.userids.iter_mut() {
check_one!(format!("userid \"{}\"",
String::from_utf8_lossy(
@@ -6051,7 +6051,7 @@ Pu1xwz57O4zo1VYf6TqHJzVC3OMvMUM2hhdecMUe5x6GorNaj6g=
bob.primary_key().key().hash(&mut h);
bob.userids().next().unwrap().userid().hash(&mut h);
- let attestation = SignatureBuilder::new(SignatureType__AttestedKey)
+ let attestation = SignatureBuilder::new(SignatureType::AttestationKey)
.set_attested_certifications(vec![digest])?
.sign_hash(&mut bob_signer, h)?;