aboutsummaryrefslogtreecommitdiffstats
path: root/src/verify.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-05-19 12:26:22 +0000
committerWerner Koch <[email protected]>2016-05-19 15:02:13 +0000
commit5aa8e588e166abeef2e3d677ab6830f2d7af1b5d (patch)
tree8b36aa4af0212bee4a1bf6ac88d9bf2621f15b17 /src/verify.c
parentpython: Improve progress callbacks. (diff)
downloadgpgme-5aa8e588e166abeef2e3d677ab6830f2d7af1b5d.tar.gz
gpgme-5aa8e588e166abeef2e3d677ab6830f2d7af1b5d.zip
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 <[email protected]>
Diffstat (limited to 'src/verify.c')
-rw-r--r--src/verify.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/verify.c b/src/verify.c
index 75914e22..4781d995 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);
}