Question: how to get information from pgpDig?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,
I want to get information from rpmPubkey such as
creation/expiry time, algorithm and other from pgpSubType.

There are functions to get pgpDigParams and pgpDig but I don't
understand how to read data from them


auto vv = headerGetAsString(h, RPMTAG_DESCRIPTION);
uint8_t *pkt = NULL;
size_t pktlen = 0;
if (pgpParsePkts(vv, &pkt, &pktlen) == PGPARMOR_PUBKEY) {
rpmPubkey pubkey = rpmPubkeyNew(pkt, pktlen);
pgpDigParams digParams = rpmPubkeyPgpDigParams(pubkey);
    pgpDig dig = rpmPubkeyDig(pubkey);
    //?
}

Thanks,
Evgeniy
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list



[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux