summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse/parse.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/parse/parse.rs')
-rw-r--r--openpgp/src/parse/parse.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/parse/parse.rs b/openpgp/src/parse/parse.rs
index 79d09137..ac484e42 100644
--- a/openpgp/src/parse/parse.rs
+++ b/openpgp/src/parse/parse.rs
@@ -1010,7 +1010,7 @@ impl Signature4 {
unhashed_area_len as usize));
let hash_prefix1 = php_try!(php.parse_u8("hash_prefix1"));
let hash_prefix2 = php_try!(php.parse_u8("hash_prefix2"));
- if ! pk_algo.can_sign() {
+ if ! pk_algo.for_signing() {
return php.fail("not a signature algorithm");
}
let mpis = php_try!(