summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-06-05 14:44:59 +0200
committerWerner Koch <wk@gnupg.org>2020-06-05 14:46:56 +0200
commit728ead8ebd426307c6b3f1e3794b3a7ab585eebd (patch)
treec0fcdc3c3a3e7316572e9aa7beec56b3dad95d6c
parent0cc040e82f9943792a58e73dbc97e20d312858fb (diff)
downloadgpgme-728ead8ebd426307c6b3f1e3794b3a7ab585eebd.tar.gz
core: Fix setting of the chain_model signature result.
* src/verify.c (parse_trust): Fix detection of "chain" keyword. -- Fixes-commit: da6f3dc0c53f11f7432b3c258702db07d6c37f9a from 2007 shortly after introducing this. I doubt that this info has ever been used (it is for qualified signatures, which are only supported using the legacy German RegTP rules for them which were soon overturned by the commercial CAs). Signed-off-by: Werner Koch <wk@gnupg.org>
-rw-r--r--src/verify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/verify.c b/src/verify.c
index 8aa9d281..81b2ff92 100644
--- a/src/verify.c
+++ b/src/verify.c
@@ -663,7 +663,7 @@ parse_trust (gpgme_signature_t sig, gpgme_status_code_t code, char *args)
{
while (*args == ' ')
args++;
- if (!strncmp (args, "chain", 2) && (args[2] == ' ' || !args[2]))
+ if (!strncmp (args, "chain", 5) && (args[5] == ' ' || !args[5]))
sig->chain_model = 1;
}
}