aboutsummaryrefslogtreecommitdiffstats
path: root/g10/import.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-04-09 11:19:09 +0000
committerWerner Koch <[email protected]>1998-04-09 11:19:09 +0000
commit3c7368a33d5fe4f7e865e5e320d2d628db4f845b (patch)
tree8fdd05880ed9547ea7166e4b9b93ad336da61d72 /g10/import.c
parenttest release (diff)
downloadgnupg-0-2-15.tar.gz
gnupg-0-2-15.zip
new releaseV0-2-15
Diffstat (limited to 'g10/import.c')
-rw-r--r--g10/import.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/g10/import.c b/g10/import.c
index 8e4a54710..874fa8520 100644
--- a/g10/import.c
+++ b/g10/import.c
@@ -501,8 +501,11 @@ chk_self_sigs( const char *fname, KBNODE keyblock,
}
rc = check_key_signature( keyblock, n, NULL);
if( rc ) {
- log_error("%s: key %08lX, invalid self-signature\n",
- fname, (ulong)keyid[1]);
+ log_error( rc == G10ERR_PUBKEY_ALGO ?
+ "%s: key %08lX, unsupported public key algorithm\n":
+ "%s: key %08lX, invalid self-signature\n",
+ fname, (ulong)keyid[1]);
+
unode->flag |= 2; /* mark as invalid */
}
unode->flag |= 1; /* mark that user-id checked */