diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-11-28 15:27:33 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-11-28 16:26:43 +0100 |
commit | bbbc6da375d6584c7b2bcc74e838fff943f489d4 (patch) | |
tree | 0a965698c96dbc0fc8541c6adc2224935b68bc07 | |
parent | f53c77752ff04c3713c175a76a06723042e681ae (diff) |
Call TPKs Certificates, update identifiers, documentation.
- Fixes #387.
103 files changed, 2685 insertions, 2676 deletions
diff --git a/examples/guide-exploring-openpgp.rs b/examples/guide-exploring-openpgp.rs index cff65378..c4d15bf9 100644 --- a/examples/guide-exploring-openpgp.rs +++ b/examples/guide-exploring-openpgp.rs @@ -4,7 +4,7 @@ extern crate sequoia_openpgp as openpgp; use crate::openpgp::parse::Parse; fn main() { - let tpk = + let cert = "-----BEGIN PGP PUBLIC KEY BLOCK----- mQENBFpxtsABCADZcBa1Q3ZLZnju18o0+t8LoQuIIeyeUQ0H45y6xUqyrD5HSkVM @@ -36,8 +36,8 @@ fn main() { =lAie -----END PGP PUBLIC KEY BLOCK-----"; - // Parse the TPK. - let pile = openpgp::PacketPile::from_bytes(tpk).unwrap(); + // Parse the Cert. + let pile = openpgp::PacketPile::from_bytes(cert).unwrap(); // Iterate over children. for (i, p) in pile.children().enumerate() { @@ -47,12 +47,12 @@ fn main() { // Some space to make the output easier to parse. println!(); - // Parse into TPK. - let tpk = openpgp::TPK::from_packet_pile(pile).unwrap(); - println!("Fingerprint: {}", tpk.fingerprin |