mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: If possible TRUST values now depend on signer's UID or --sender.
* g10/mainproc.c (check_sig_and_print): Add failsafe check for PK. Pass KEYBLOCK down do check_signatures_trust. Protect existsing error ocde in case the signature expired. * g10/pkclist.c (is_in_sender_list): New. (check_signatures_trust): Add args keyblock and pk. Add new uid based checking code. * g10/test-stubs.c, g10/gpgv.c: Adjust stubs. -- GnuPG-bug-id: 4735 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
61bb75d045
commit
5c2080f467
6 changed files with 204 additions and 49 deletions
|
@ -57,10 +57,13 @@ g10_exit( int rc )
|
|||
* We have to override the trustcheck from pkclist.c because
|
||||
* this utility assumes that all keys in the keyring are trustworthy
|
||||
*/
|
||||
int
|
||||
check_signatures_trust (ctrl_t ctrl, PKT_signature *sig)
|
||||
gpg_error_t
|
||||
check_signatures_trust (ctrl_t ctrl, kbnode_t kblock,
|
||||
PKT_public_key *pk, PKT_signature *sig)
|
||||
{
|
||||
(void)ctrl;
|
||||
(void)kblock;
|
||||
(void)pk;
|
||||
(void)sig;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue