aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-07-01 08:56:57 +0000
committerAndre Heinecke <[email protected]>2016-07-01 08:56:57 +0000
commit570bf2a648f14b34c4c45d3890b7300529a82d37 (patch)
tree88dd83af4d7ef565c3fa8e0fb43ae0b6a0c0a7c7
parenttests: Fix trivial memory leaks. (diff)
downloadgpgme-570bf2a648f14b34c4c45d3890b7300529a82d37.tar.gz
gpgme-570bf2a648f14b34c4c45d3890b7300529a82d37.zip
core: Fix identify for armored detached sigs
* src/data-identify.c (basic_detection): Return signature for signature. -- This causes identify to return signature for both binary and ascii armored detached signatures where previously it would have returned signed for armored signatures and signature for binary signatures. GnuPG-Bug-Id: 2314
-rw-r--r--src/data-identify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data-identify.c b/src/data-identify.c
index 1cfccd75..88a472fb 100644
--- a/src/data-identify.c
+++ b/src/data-identify.c
@@ -443,7 +443,7 @@ basic_detection (char *data, size_t datalen)
if (!strncmp (s+11, "PGP ", 4))
{
if (!strncmp (s+15, "SIGNATURE", 9))
- return GPGME_DATA_TYPE_PGP_SIGNED;
+ return GPGME_DATA_TYPE_PGP_SIGNATURE;
if (!strncmp (s+15, "SIGNED MESSAGE", 14))
return GPGME_DATA_TYPE_PGP_SIGNED;
if (!strncmp (s+15, "PUBLIC KEY BLOCK", 16))