| 1189 | } |
| 1190 | |
| 1191 | int parse_signed_commit(const struct commit *commit, |
| 1192 | struct strbuf *payload, struct strbuf *signature, |
| 1193 | const struct git_hash_algo *algop) |
| 1194 | { |
| 1195 | unsigned long size; |
| 1196 | const char *buffer = repo_get_commit_buffer(the_repository, commit, |
| 1197 | &size); |
| 1198 | int ret = parse_buffer_signed_by_header(buffer, size, payload, signature, algop); |
| 1199 | |
| 1200 | repo_unuse_commit_buffer(the_repository, commit, buffer); |
| 1201 | return ret; |
| 1202 | } |
| 1203 | |
| 1204 | int parse_buffer_signed_by_header(const char *buffer, |
| 1205 | unsigned long size, |
no test coverage detected