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:
Neal H. Walfield 2016-09-05 16:44:09 +02:00
parent 0b99d1fd2a
commit 9082bde01c
1 changed files with 8 additions and 0 deletions

View File

@ -1040,6 +1040,14 @@ tdb_get_validity_core (ctrl_t ctrl,
else
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 (user_id->is_revoked || user_id->is_expired)
{