summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert.rs
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2022-12-23 15:26:40 +0100
committerNeal H. Walfield <neal@pep.foundation>2023-01-06 15:00:23 +0100
commitcb0adbb4baa4a397d7763608cc08cd26782b3eb6 (patch)
tree520709ff2ed3e94e68071eb39c32f4621ca5dca5 /openpgp/src/cert.rs
parent36e0d368773017cafedb430042b29a633b081136 (diff)
openpgp: Split certificates without parsing the packets.
- Add `RawCertParser`, which splits keyrings into individual certificates, similar to `CertParser`, but without invoking the heavy machinery of the `CertParser`. - `RawCertParser` uses the OpenPGP framing information to identify the packets, and it makes sure that the packets form a valid TPK or TSK as per Sections 11.1 and 11.2 of RFC 4880, respectively.
Diffstat (limited to 'openpgp/src/cert.rs')
-rw-r--r--openpgp/src/cert.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/openpgp/src/cert.rs b/openpgp/src/cert.rs
index 135d7d90..70f5e3b5 100644
--- a/openpgp/src/cert.rs
+++ b/openpgp/src/cert.rs
@@ -183,6 +183,7 @@ mod builder;
mod bindings;
pub mod bundle;
mod parser;
+pub mod raw;
mod revoke;
pub use self::builder::{CertBuilder, CipherSuite, KeyBuilder, SubkeyBuilder};