aboutsummaryrefslogtreecommitdiffstats
path: root/g10/seckey-cert.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/seckey-cert.c')
-rw-r--r--g10/seckey-cert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/seckey-cert.c b/g10/seckey-cert.c
index 8870ac3e3..596b8f595 100644
--- a/g10/seckey-cert.c
+++ b/g10/seckey-cert.c
@@ -49,7 +49,7 @@ do_check( PKT_secret_key *sk, const char *tryagain_text, int *canceled )
CIPHER_HANDLE cipher_hd=NULL;
PKT_secret_key *save_sk;
- if( sk->protect.s2k.mode == 1001 ) {
+ if( sk->protect.s2k.mode == 1001 || sk->protect.s2k.mode == 1002 ) {
log_info(_("secret key parts are not available\n"));
return G10ERR_GENERAL;
}