mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-10 13:04:23 +01:00
Fix for bug 1223
This commit is contained in:
parent
d766978c0e
commit
64d47185f7
@ -1,5 +1,8 @@
|
||||
2010-05-07 Werner Koch <wk@g10code.com>
|
||||
|
||||
* import.c (chk_self_sigs): Check direct key signatures. Fixes
|
||||
bug#1223.
|
||||
|
||||
* import.c (chk_self_sigs): Re-indent and slighly re-arrange code.
|
||||
Use test macros for the sig class.
|
||||
|
||||
|
13
g10/import.c
13
g10/import.c
@ -1431,6 +1431,19 @@ chk_self_sigs( const char *fname, KBNODE keyblock,
|
||||
unode->flag |= 1; /* Mark that signature checked. */
|
||||
}
|
||||
}
|
||||
else if (IS_KEY_SIG (sig))
|
||||
{
|
||||
rc = check_key_signature (keyblock, n, NULL);
|
||||
if ( rc )
|
||||
{
|
||||
if (opt.verbose)
|
||||
log_info (gpg_err_code (rc) == G10ERR_PUBKEY_ALGO ?
|
||||
_("key %s: unsupported public key algorithm\n"):
|
||||
_("key %s: invalid direct key signature\n"),
|
||||
keystr (keyid));
|
||||
n->flag |= 4;
|
||||
}
|
||||
}
|
||||
else if ( IS_SUBKEY_SIG (sig) )
|
||||
{
|
||||
/* Note that this works based solely on the timestamps like
|
||||
|
Loading…
x
Reference in New Issue
Block a user