summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert/lazysigs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/cert/lazysigs.rs')
-rw-r--r--openpgp/src/cert/lazysigs.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/openpgp/src/cert/lazysigs.rs b/openpgp/src/cert/lazysigs.rs
index 95ae30b0..1e2a2a47 100644
--- a/openpgp/src/cert/lazysigs.rs
+++ b/openpgp/src/cert/lazysigs.rs
@@ -208,6 +208,12 @@ impl LazySignatures {
self.sigs.into_iter()
}
+ /// Like [`Vec::as_slice`], but gives out **potentially
+ /// unverified** signatures.
+ pub fn as_slice_unverified(&self) -> &[Signature] {
+ self.sigs.as_slice()
+ }
+
/// Like [`Vec::iter`], but only gives out verified signatures.
///
/// If this is a subkey binding, `subkey` must be the bundle's