* verify.c (parse_trust): If no reason is provided, set
SIG->validity_reason to 0.
(calc_sig_summary): Set GPGME_SIGSUM_CRL_TOO_OLD if appropriate.
+2004-10-03 Marcus Brinkmann <marcus@g10code.de>
+
+ * verify.c (parse_trust): If no reason is provided, set
+ SIG->validity_reason to 0.
+ (calc_sig_summary): Set GPGME_SIGSUM_CRL_TOO_OLD if appropriate.
+
2004-10-22 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (map_assuan_error): Return 0 if ERR is 0.
}
else if (gpg_err_code (sig->status) == GPG_ERR_BAD_SIGNATURE)
sum |= GPGME_SIGSUM_RED;
-
+
+ if (sig->validity == GPGME_VALIDITY_UNKNOWN)
+ {
+ if (gpg_err_code (sig->validity_reason) == GPG_ERR_CRL_TOO_OLD)
+ sum |= GPGME_SIGSUM_CRL_TOO_OLD;
+ }
+
/* FIXME: handle the case when key and message are expired. */
switch (gpg_err_code (sig->status))
{
if (*args)
sig->validity_reason = _gpgme_map_gnupg_error (args);
+ else
+ sig->validity_reason = 0;
return 0;
}