diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-05-22 13:06:53 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-05-22 14:39:52 +0200 |
commit | 7d2a8274e9ec03069b426916e91996e6d8072535 (patch) | |
tree | 4758dcef525100c330aecfbc913eed63593e8a9d | |
parent | e82ce9ff5e6f8e1fdca4a3cedd6389d703c9057a (diff) |
openpgp: Add missing conversions from SKESK{4,5} to SKESK.
-rw-r--r-- | openpgp/src/packet/skesk.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/openpgp/src/packet/skesk.rs b/openpgp/src/packet/skesk.rs index 56ce4768..ba5bac71 100644 --- a/openpgp/src/packet/skesk.rs +++ b/openpgp/src/packet/skesk.rs @@ -197,6 +197,12 @@ impl SKESK4 { } } +impl From<SKESK4> for super::SKESK { + fn from(p: SKESK4) -> Self { + super::SKESK::V4(p) + } +} + impl From<SKESK4> for Packet { fn from(s: SKESK4) -> Self { Packet::SKESK(SKESK::V4(s)) @@ -359,6 +365,12 @@ impl SKESK5 { } } +impl From<SKESK5> for super::SKESK { + fn from(p: SKESK5) -> Self { + super::SKESK::V5(p) + } +} + impl From<SKESK5> for Packet { fn from(s: SKESK5) -> Self { Packet::SKESK(SKESK::V5(s)) |