summaryrefslogtreecommitdiffstats
path: root/openpgp
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-06-25 11:25:23 +0200
committerJustus Winter <justus@sequoia-pgp.org>2018-06-25 11:50:06 +0200
commit0bf1721ae721dfc439a88c3c3e22b697a3606643 (patch)
tree90e6a8c6d52533b7e46340608a9c9f160236bb4b /openpgp
parenta7ef3e7c543aca585de373b5cfb9c6e8a46f75f3 (diff)
openpgp: Drop the alias for Kind::SecretKey.
- Having an alias in the enum seems not worth the trouble, e.g. it complicates equality.
Diffstat (limited to 'openpgp')
-rw-r--r--openpgp/src/armor.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/openpgp/src/armor.rs b/openpgp/src/armor.rs
index c6252d7e..aaf8ea9d 100644
--- a/openpgp/src/armor.rs
+++ b/openpgp/src/armor.rs
@@ -57,8 +57,6 @@ pub enum Kind {
/// A transferable public key.
PublicKey,
/// A transferable secret key.
- PrivateKey,
- /// Alias for PrivateKey.
SecretKey,
/// A detached signature.
Signature,
@@ -89,7 +87,6 @@ impl Kind {
match self {
&Kind::Message => "MESSAGE",
&Kind::PublicKey => "PUBLIC KEY BLOCK",
- &Kind::PrivateKey => "PRIVATE KEY BLOCK",
&Kind::SecretKey => "PRIVATE KEY BLOCK",
&Kind::Signature => "SIGNATURE",
&Kind::File => "ARMORED FILE",