aboutsummaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
Diffstat (limited to 'g10')
-rw-r--r--g10/ChangeLog4
-rw-r--r--g10/getkey.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 7d96cadcd..9f7ee8763 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,7 @@
+Mon Feb 22 20:04:00 CET 1999 Werner Koch <[email protected]>
+
+ * getkey.c (lookup_sk): Return G10ERR_NO_SECKEY and not x_PUBKEY.
+
Fri Feb 19 15:49:15 CET 1999 Werner Koch <[email protected]>
* pkclist.c (select_algo_from_prefs): retrieve LID if not there.
diff --git a/g10/getkey.c b/g10/getkey.c
index cd9d8ff83..01ffe0111 100644
--- a/g10/getkey.c
+++ b/g10/getkey.c
@@ -1753,7 +1753,7 @@ lookup_sk( GETKEY_CTX ctx, PKT_secret_key *sk, KBNODE *ret_keyblock )
}
}
else if( rc == -1 )
- rc = G10ERR_NO_PUBKEY;
+ rc = G10ERR_NO_SECKEY;
release_kbnode( ctx->keyblock );
ctx->keyblock = NULL;