interpreting values from gpgme_get_sig_ulong_attr
Marshall Rose
mrose+internet.gnu.gpg.devel at dbc.mtview.ca.us
Mon Sep 16 08:12:01 CEST 2002
environment:
gpg = 1.0.7
gpgme = 0.3.11 (from cvs)
i use gpgme_op_verify to verify a detached signature. the call succeeds
and the the r_status parameter is updated to GPGME_SIG_STAT_GOOD.
i then enter a loop to determine how many signatures there were by doing this:
for (idx = 0;
(fpr = gpgme_get_sig_status (..., idx, NULL, NULL)) != NULL;
idx++) {
}
inside the loop i call gpgme_get_sig_ulong_attr on
GPGME_ATTR_VALIDITY - comes back as 0
GPGME_ATTR_CREATED - comes back as a valid date (secs since epoch)
GPGME_ATTR_EXPIRES - comes back as 0
GPGME_ATTR_SIG_STATUS - comes back as GPGME_SIG_STAT_GOOD
GPGME_ATTR_SIG_SUMMARY - comes back as 0
of the three that come back as zero, i think the validity/summary are
wrong, but maybe i just misunderstand.
the reason i think they should be non-zero is because i've assigned a
trust of 5 to the key that did the signing, so i think that, at the very
least it should be
validity = GPGME_VALIDITY_FULL
summary = GPGME_SIGSUM_VALID | GPGME_SIGSUM_GREEN
so, what am i missing here...
thanks,
/mtr
More information about the Gnupg-devel
mailing list