<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/gpg-interface.c, branch v1.7.9.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.7.9.2</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.7.9.2'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2012-01-05T21:02:26Z</updated>
<entry>
<title>verify_signed_buffer: fix stale comment</title>
<updated>2012-01-05T21:02:26Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-01-04T20:43:02Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=e3f55e07076f88ec01a49dcfb7c2ac56658145a4'/>
<id>urn:sha1:e3f55e07076f88ec01a49dcfb7c2ac56658145a4</id>
<content type='text'>
The function used to take an integer flag to specify where the output
should go, but these days we supply a strbuf to receive it.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gpg-interface: allow use of a custom GPG binary</title>
<updated>2011-11-29T20:30:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-11-29T20:29:48Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=0c5e70f041bfda8b3899d13694a9093b41fafa19'/>
<id>urn:sha1:0c5e70f041bfda8b3899d13694a9093b41fafa19</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Split GPG interface into its own helper library</title>
<updated>2011-11-05T04:40:25Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-09-08T04:19:47Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=2f47eae2a1337bd0cb50dbc936df6433f460bb4a'/>
<id>urn:sha1:2f47eae2a1337bd0cb50dbc936df6433f460bb4a</id>
<content type='text'>
This mostly moves existing code from builtin/tag.c (for signing)
and builtin/verify-tag.c (for verifying) to a new gpg-interface.c
file to provide a more generic library interface.

 - sign_buffer() takes a payload strbuf, a signature strbuf, and a signing
   key, runs "gpg" to produce a detached signature for the payload, and
   appends it to the signature strbuf. The contents of a signed tag that
   concatenates the payload and the detached signature can be produced by
   giving the same strbuf as payload and signature strbuf.

 - verify_signed_buffer() takes a payload and a detached signature as
   &lt;ptr, len&gt; pairs, and runs "gpg --verify" to see if the payload matches
   the signature. It can optionally capture the output from GPG to allow
   the callers to pretty-print it in a way more suitable for their
   contexts.

"verify-tag" (aka "tag -v") used to save the whole tag contents as if it
is a detached signature, and fed gpg the payload part of the tag. It
relied on gpg to fail when the given tag is not signed but just is
annotated.  The updated run_gpg_verify() function detects the lack of
detached signature in the input, and errors out without bothering "gpg".

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
