aboutsummaryrefslogtreecommitdiffstats
path: root/g10/seckey-cert.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2009-08-06 20:12:00 +0000
committerWerner Koch <[email protected]>2009-08-06 20:12:00 +0000
commit019601191a250f5ec95ca871aa281ae836a1a34e (patch)
tree2d948f3e1fa834f262519853f5556bfe48f37209 /g10/seckey-cert.c
parentEnable readline support in --card-edit. (diff)
downloadgnupg-019601191a250f5ec95ca871aa281ae836a1a34e.tar.gz
gnupg-019601191a250f5ec95ca871aa281ae836a1a34e.zip
Improved detection of bad/invalid signer keys.
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 821673541..1398b181b 100644
--- a/g10/seckey-cert.c
+++ b/g10/seckey-cert.c
@@ -53,7 +53,7 @@ do_check( PKT_secret_key *sk, const char *tryagain_text, int mode,
if( sk->protect.s2k.mode == 1001 ) {
log_info(_("secret key parts are not available\n"));
- return G10ERR_GENERAL;
+ return G10ERR_UNU_SECKEY;
}
if( sk->protect.algo == CIPHER_ALGO_NONE )
BUG();