Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tag.c
diff options
context:
space:
mode:
authorFabian Stelzer <fs@gigacodes.de>2021-12-09 11:52:47 +0300
committerJunio C Hamano <gitster@pobox.com>2021-12-10 00:38:04 +0300
commitdd3aa418aa109ff3697290ba89b626c3a4b36883 (patch)
tree9332fef12df65b22a6ffd51c6c1f18a0fb506746 /tag.c
parent4bbf3780ff2c485b1d0781d58b26e01f75dffcc1 (diff)
ssh signing: make verify-tag consider key lifetime
Set the payload_type for check_signature() when calling verify-tag. Implements the same tests as for verify-commit. Signed-off-by: Fabian Stelzer <fs@gigacodes.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tag.c')
-rw-r--r--tag.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tag.c b/tag.c
index 62fb09f5a5..dfbcd7fcc2 100644
--- a/tag.c
+++ b/tag.c
@@ -25,6 +25,7 @@ static int run_gpg_verify(const char *buf, unsigned long size, unsigned flags)
return error("no signature found");
}
+ sigc.payload_type = SIGNATURE_PAYLOAD_TAG;
sigc.payload = strbuf_detach(&payload, &sigc.payload_len);
ret = check_signature(&sigc, signature.buf, signature.len);