commit: ignore additional signatures when parsing signed commits
authorbrian m. carlson <redacted>
Mon, 18 Jan 2021 23:49:11 +0000 (23:49 +0000)
committerJunio C Hamano <redacted>
Tue, 19 Jan 2021 01:38:20 +0000 (17:38 -0800)
commit1fb5cf0da657ef046c4eb4d0de6f2defb2fb09c6
tree345b28b8ed678c73cc97d7438707b05d6f327ea5
parent83dff3eb2ed9cd750ec89f3dc5bab44b16119743
commit: ignore additional signatures when parsing signed commits

When we create a commit with multiple signatures, neither of these
signatures includes the other.  Consequently, when we produce the
payload which has been signed so we can verify the commit, we must strip
off any other signatures, or the payload will differ from what was
signed.  Do so, and in preparation for verifying with multiple
algorithms, pass the algorithm we want to verify into
parse_signed_commit.

Signed-off-by: brian m. carlson <redacted>
Signed-off-by: Junio C Hamano <redacted>
commit.c
commit.h
log-tree.c
t/t7510-signed-commit.sh
git clone https://git.99rst.org/PROJECT