static char numbuf[20];
const char *result;
- if (node->pkt->pkttype == PKT_USER_ID)
+ if (node->pkt->pkttype == PKT_USER_ID
+ || node->pkt->pkttype == PKT_ATTRIBUTE)
{
if (!strcmp (propname, "uid"))
result = node->pkt->pkt.user_id->name;
else
result = NULL;
}
- else if (node->pkt->pkttype == PKT_SIGNATURE
- || node->pkt->pkttype == PKT_ATTRIBUTE)
+ else if (node->pkt->pkttype == PKT_SIGNATURE)
{
PKT_signature *sig = node->pkt->pkt.signature;
if (node->pkt->pkttype == PKT_PUBLIC_SUBKEY
|| node->pkt->pkttype == PKT_SECRET_SUBKEY)
break; /* ready. */
- if (node->pkt->pkttype == PKT_USER_ID)
+ if (node->pkt->pkttype == PKT_USER_ID
+ || node->pkt->pkttype == PKT_ATTRIBUTE)
active = 1;
if (!active)
continue;
- if (node->pkt->pkttype != PKT_SIGNATURE
- && node->pkt->pkttype != PKT_ATTRIBUTE)
+ if (node->pkt->pkttype != PKT_SIGNATURE)
continue;
sig = node->pkt->pkt.signature;