summaryrefslogtreecommitdiffstats
path: root/openpgp/src/types
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-04-02 12:05:08 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-04-02 12:05:08 +0200
commit6c22533ea379d11dedb6e7ea035a3daa0f538cf1 (patch)
treea9032f6c9085a16f896d9f2ae07eb873dd9abe1e /openpgp/src/types
parente3ade0d188b575c44a7c7f6e4675ed8ab2da7584 (diff)
openpgp: Rename PublicKeyAlgorithm::can_encrypt to for_encryption.
- Fixes #463.
Diffstat (limited to 'openpgp/src/types')
-rw-r--r--openpgp/src/types/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/types/mod.rs b/openpgp/src/types/mod.rs
index 0e7dff89..a2b38f65 100644
--- a/openpgp/src/types/mod.rs
+++ b/openpgp/src/types/mod.rs
@@ -92,7 +92,7 @@ impl PublicKeyAlgorithm {
}
/// Returns true if the algorithm can encrypt data.
- pub fn can_encrypt(&self) -> bool {
+ pub fn for_encryption(&self) -> bool {
use self::PublicKeyAlgorithm::*;
#[allow(deprecated)]
match &self {