MCPcopy Create free account
hub / github.com/git/git / parse_signed_buffer

Function parse_signed_buffer

gpg-interface.c:702–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700}
701
702size_t parse_signed_buffer(const char *buf, size_t size)
703{
704 size_t len = 0;
705 size_t match = size;
706 while (len < size) {
707 const char *eol;
708
709 if (get_format_by_sig(buf + len))
710 match = len;
711
712 eol = memchr(buf + len, '\n', size - len);
713 len += eol ? (size_t) (eol - (buf + len) + 1) : size - len;
714 }
715 return match;
716}
717
718int parse_signature(const char *buf, size_t size, struct strbuf *payload, struct strbuf *signature)
719{

Callers 8

find_subposFunction · 0.85
convert_tag_objectFunction · 0.85
parse_signatureFunction · 0.85
cmd__delete_gpgsigFunction · 0.85
handle_tagFunction · 0.85
prepare_push_cert_sha1Function · 0.85
queue_commands_from_certFunction · 0.85
handle_tag_signatureFunction · 0.85

Calls 1

get_format_by_sigFunction · 0.85

Tested by 1

cmd__delete_gpgsigFunction · 0.68