mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-20 14:37:08 +01:00
g10: Don't add user attributes to the TOFU DB.
* g10/trustdb.c (tdb_get_validity_core): Skip user attributes. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
parent
0b99d1fd2a
commit
9082bde01c
@ -1040,6 +1040,14 @@ tdb_get_validity_core (ctrl_t ctrl,
|
|||||||
else
|
else
|
||||||
user_id = n->pkt->pkt.user_id;
|
user_id = n->pkt->pkt.user_id;
|
||||||
|
|
||||||
|
if (user_id->attrib_data)
|
||||||
|
{
|
||||||
|
/* Skip user attributes. */
|
||||||
|
if (uid)
|
||||||
|
break;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
/* If the user id is revoked or expired, then skip it. */
|
/* If the user id is revoked or expired, then skip it. */
|
||||||
if (user_id->is_revoked || user_id->is_expired)
|
if (user_id->is_revoked || user_id->is_expired)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user