[Pkg-gnupg-commit] [gpgme] 118/412: api: Remove arbitrary restriction from gpgme_op_verify.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 22 21:26:29 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gpgme.

commit 5aa8e588e166abeef2e3d677ab6830f2d7af1b5d
Author: Werner Koch <wk at gnupg.org>
Date:   Thu May 19 14:26:22 2016 +0200

    api: Remove arbitrary restriction from gpgme_op_verify.
    
    * src/verify.c (verify_start): Do not return GPG_ERR_INV_VALUES when
    when SIGNED_TEXT is not given.
    --
    
    The original idea behind this restriction probably was that it is
    useless to verify a non-detached signatures without also returning the
    signed text.  However, it is sometimes useful to just check the
    signature, for example to see who signed it.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 src/verify.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/verify.c b/src/verify.c
index 75914e2..4781d99 100644
--- a/src/verify.c
+++ b/src/verify.c
@@ -861,8 +861,6 @@ verify_start (gpgme_ctx_t ctx, int synchronous, gpgme_data_t sig,
 
   if (!sig)
     return gpg_error (GPG_ERR_NO_DATA);
-  if (!signed_text && !plaintext)
-    return gpg_error (GPG_ERR_INV_VALUE);
 
   return _gpgme_engine_op_verify (ctx->engine, sig, signed_text, plaintext);
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list