mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +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
31
doc/gpg.texi
31
doc/gpg.texi
|
@ -2243,11 +2243,32 @@ Use @var{name} as the key to sign with. Note that this option overrides
|
|||
@item --sender @var{mbox}
|
||||
@opindex sender
|
||||
This option has two purposes. @var{mbox} must either be a complete
|
||||
user id with a proper mail address or just a mail address. When
|
||||
creating a signature this option tells gpg the user id of a key used
|
||||
to make a signature if the key was not directly specified by a user
|
||||
id. When verifying a signature the @var{mbox} is used to restrict the
|
||||
information printed by the TOFU code to matching user ids.
|
||||
user ID containing a proper mail address or just a plain mail address.
|
||||
The option can be given multiple times.
|
||||
|
||||
When creating a signature this option tells gpg the signing key's user
|
||||
id used to make the signature and embeds that user ID into the created
|
||||
signature (using OpenPGP's ``Signer's User ID'' subpacket). If the
|
||||
option is given multiple times a suitable user ID is picked. However,
|
||||
if the signing key was specified directly by using a mail address
|
||||
(i.e. not by using a fingerprint or key ID) this option is used and
|
||||
the mail address is embedded in the created signature.
|
||||
|
||||
When verifying a signature @var{mbox} is used to restrict the
|
||||
information printed by the TOFU code to matching user IDs. If the
|
||||
option is used and the signature contains a ``Signer's User ID''
|
||||
subpacket that information is is also used to restrict the printed
|
||||
information. Note that GnuPG considers only the mail address part of
|
||||
a User ID.
|
||||
|
||||
If this option or the said subpacket is available the TRUST lines as
|
||||
printed by option @option{status-fd} correspond to the corresponding
|
||||
User ID; if no User ID is known the TRUST lines are computed directly
|
||||
on the key and do not give any information about the User ID. In the
|
||||
latter case it his highly recommended to scripts and other frontends
|
||||
to evaluate the VALIDSIG line, retrieve the key and print all User IDs
|
||||
along with their validity (trust) information.
|
||||
|
||||
|
||||
@item --try-secret-key @var{name}
|
||||
@opindex try-secret-key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue