summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/one_pass_sig.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/packet/one_pass_sig.rs')
-rw-r--r--openpgp/src/packet/one_pass_sig.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/openpgp/src/packet/one_pass_sig.rs b/openpgp/src/packet/one_pass_sig.rs
index d3ff5fa8..dc40cf64 100644
--- a/openpgp/src/packet/one_pass_sig.rs
+++ b/openpgp/src/packet/one_pass_sig.rs
@@ -166,6 +166,12 @@ impl<'a> std::convert::TryFrom<&'a Signature> for OnePassSig3 {
}
}
+impl Arbitrary for super::OnePassSig {
+ fn arbitrary<G: Gen>(g: &mut G) -> Self {
+ OnePassSig3::arbitrary(g).into()
+ }
+}
+
impl Arbitrary for OnePassSig3 {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
let mut ops = OnePassSig3::new(SignatureType::arbitrary(g));