diff options
author | Fabian Stelzer <fs@gigacodes.de> | 2021-12-09 11:52:47 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-10 00:38:04 +0300 |
commit | dd3aa418aa109ff3697290ba89b626c3a4b36883 (patch) | |
tree | 9332fef12df65b22a6ffd51c6c1f18a0fb506746 /tag.c | |
parent | 4bbf3780ff2c485b1d0781d58b26e01f75dffcc1 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |