summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize/cert.rs
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2020-12-22 11:46:49 +0100
committerNeal H. Walfield <neal@pep.foundation>2020-12-22 11:46:49 +0100
commitee516f806ac4211a626e14c283d4fa032003b3e9 (patch)
tree5c7871d585e8a753d6ca8d2ddb6fe91d6ac29673 /openpgp/src/serialize/cert.rs
parent9ce78de0d4df8df681cf97d07ac030595d070f15 (diff)
openpgp: Implement TSK::armored.
- `Cert::armored` conveniently wraps a `Cert` with ASCII armor and adds nice comments. - Provide the same mechanism for `TSK`s.
Diffstat (limited to 'openpgp/src/serialize/cert.rs')
-rw-r--r--openpgp/src/serialize/cert.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/serialize/cert.rs b/openpgp/src/serialize/cert.rs
index 1f6268fa..73d9a07f 100644
--- a/openpgp/src/serialize/cert.rs
+++ b/openpgp/src/serialize/cert.rs
@@ -319,7 +319,7 @@ impl Cert {
/// # Ok(()) }
/// ```
pub struct TSK<'a> {
- cert: &'a Cert,
+ pub(crate) cert: &'a Cert,
filter: Option<Box<dyn Fn(&'a key::UnspecifiedSecret) -> bool + 'a>>,
emit_stubs: bool,
}