From 768ce01f4462fb78be8ab959047d84e5107c2b68 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sun, 18 May 2003 13:59:53 +0000 Subject: [PATCH] 2003-05-18 Marcus Brinkmann * verify.c (_gpgme_verify_status_handler): Return GPGME_No_Data for NODATA status without signatures. --- trunk/gpgme/ChangeLog | 5 +++++ trunk/gpgme/verify.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index a874048..3154b3a 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,8 @@ +2003-05-18 Marcus Brinkmann + + * verify.c (_gpgme_verify_status_handler): Return GPGME_No_Data + for NODATA status without signatures. + 2003-05-05 Marcus Brinkmann * key.c (_gpgme_key_append_name): Use decoded string to parse user id. diff --git a/trunk/gpgme/verify.c b/trunk/gpgme/verify.c index e94232c..946f66e 100644 --- a/trunk/gpgme/verify.c +++ b/trunk/gpgme/verify.c @@ -467,6 +467,11 @@ _gpgme_verify_status_handler (void *priv, GpgmeStatusCode code, char *args) return sig ? parse_valid_sig (sig, args) : GPGME_General_Error; case GPGME_STATUS_NODATA: + if (!sig) + return GPGME_No_Data; + sig->status = GPGME_No_Data; + break; + case GPGME_STATUS_UNEXPECTED: if (!sig) return GPGME_General_Error; -- 2.26.2