summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert/key_amalgamation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/cert/key_amalgamation.rs')
-rw-r--r--openpgp/src/cert/key_amalgamation.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/openpgp/src/cert/key_amalgamation.rs b/openpgp/src/cert/key_amalgamation.rs
index 546b4506..6f221ab9 100644
--- a/openpgp/src/cert/key_amalgamation.rs
+++ b/openpgp/src/cert/key_amalgamation.rs
@@ -648,6 +648,11 @@ impl<'a, P, R, R2> ValidKeyAmalgamation<'a, P, R, R2>
}
}
+ /// Returns the wrapped `KeyAmalgamation`.
+ pub fn into_key_amalgamation(self) -> KeyAmalgamation<'a, P, R, R2> {
+ self.ka
+ }
+
// NOTE: If you add a method to ValidKeyAmalgamation that takes
// ownership of self, then don't forget to write a forwarder for
// it for ValidPrimaryKeyAmalgamation.