diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-04-27 15:16:50 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-04-27 18:56:25 +0200 |
commit | 5fce65e4a8273b32c0986d9e805b0128e7478bd2 (patch) | |
tree | 1d839b5701842ad90032ff0b4024297f420b44f7 | |
parent | 0b4688e4a06b3077a6b93d0722f2fbfc1e989420 (diff) |
openpgp: Make match exhaustive.
-rw-r--r-- | openpgp/src/crypto/backend/openssl.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openpgp/src/crypto/backend/openssl.rs b/openpgp/src/crypto/backend/openssl.rs index aa5c9db7..4923fc79 100644 --- a/openpgp/src/crypto/backend/openssl.rs +++ b/openpgp/src/crypto/backend/openssl.rs @@ -30,7 +30,9 @@ impl PublicKeyAlgorithm { RSAEncryptSign | RSAEncrypt | RSASign => true, DSA => true, ECDH | ECDSA | EdDSA => true, - _ => false, + ElGamalEncrypt | ElGamalEncryptSign | + Private(_) | Unknown(_) + => false, } } } |