<feed xmlns='http://www.w3.org/2005/Atom'>
<title>libgpg-error/src/estream-printf.h, branch gniibe/t5912</title>
<subtitle>Error codes used by GnuPG et al.</subtitle>
<id>http://git.bktus.com/gpgfrontend/libgpg-error/atom?h=gniibe%2Ft5912</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/libgpg-error/atom?h=gniibe%2Ft5912'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/'/>
<updated>2018-11-26T19:22:24Z</updated>
<entry>
<title>core: New functions gpgrt_fprintf_sf anf gpgrt_fprintf_sf_unlocked.</title>
<updated>2018-11-26T19:22:24Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2018-11-26T19:22:24Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=bd8668c120ac0f725edb092b2c4ca49ffdb78ed2'/>
<id>urn:sha1:bd8668c120ac0f725edb092b2c4ca49ffdb78ed2</id>
<content type='text'>
* src/gpg-error.h.in (gpgrt_string_filter_t): New type.
(gpgrt_fprintf_sf, gpgrt_fprintf_sf_unlocked): New.
* src/gpg-error.vers, src/gpg-error.def.in: Add them.
* src/visibility.c (gpgrt_fprintf_sf): New.
(gpgrt_fprintf_sf_unlocked): New.
* src/estream-printf.c (pr_string): Add and use args sf, sfvalue and
string_no.
(do_format): Add args sf and sfvalue.  Keep a string format counter.
(_gpgrt_estream_format): Add args sf and sfvalue.  Change all callers
to provide NULL for them.
* src/estream.c (_gpgrt_vfprintf_unlocked, _gpgrt_vfprintf): Add sf
and sfvalue and adjust all callers.
(do_print_stream): Ditto.

* tests/t-printf.c (stream_to_string): New.
(struct sfstate_s): New.
(string_filter): New.
(check_fprintf_sf): New.
(main): Call new test.
--

The actual reason to implement these functions is to enhance the
internal logging function with a filter to sanitized strings so that
control values or other things can be quoted.

Signed-off-by: Werner Koch &lt;wk@gnupg.org&gt;
</content>
</entry>
<entry>
<title>Convert http links to https where possible in the source.</title>
<updated>2016-02-08T18:34:00Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2016-02-08T16:06:37Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=c58e487cbdd392c5ed80eef1abb2177970d19c4a'/>
<id>urn:sha1:c58e487cbdd392c5ed80eef1abb2177970d19c4a</id>
<content type='text'>
--
 * use https for bug reporting
 * in comments and docs, use https to refer to:
    - www.gnu.org
    - creativecommons.org
    - translationproject.org
    - mail.gnome.org
    - www.perl.org
    - www.ctan.org
    - www.cl.cam.ac.uk
    - www.ntg.nl
    - cygwin.com
    - www.ethnologue.com
</content>
</entry>
<entry>
<title>Finish inclusion of estream into the API.</title>
<updated>2014-08-25T14:37:46Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2014-08-23T07:51:41Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=e5304d2c8aaaf1682707caa5694316640a18de57'/>
<id>urn:sha1:e5304d2c8aaaf1682707caa5694316640a18de57</id>
<content type='text'>
</content>
</entry>
<entry>
<title>First set of changes to include estream into the API.</title>
<updated>2014-08-25T14:37:46Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2014-08-22T13:12:57Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=6714d41af5b3f4d447eb0caea0ede38b753397f8'/>
<id>urn:sha1:6714d41af5b3f4d447eb0caea0ede38b753397f8</id>
<content type='text'>
* configure.ac (AH_BOTTOM): Define GPGRT_ENABLE_ES_MACROS.
* src/gpg-error.h.in: include stdio.h.  Include most of the estream
functions and rename structures and types.
* src/estream.h: Rewrite. Include only gpg-error.h and local
prototypes.
* src/estream.c: Rename types and macros.
* src/estream-printf.c (_gpgrt_estream_snprintf): Prefix public
functions with _gpgrt_.
</content>
</entry>
<entry>
<title>Add estream code from GnuPG.</title>
<updated>2014-08-25T14:37:45Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2014-08-21T17:37:37Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=2b74237d19e44f7173bb052677f0ec35e6ff51b0'/>
<id>urn:sha1:2b74237d19e44f7173bb052677f0ec35e6ff51b0</id>
<content type='text'>
* src/estream-printf.c, src/estream-printf.h: New.
* src/estream.c, src/estream.h: New.
* m4/estream.m4: New.
* src/Makefile.am (libgpg_error_la_SOURCES): Add new files.
* configure.ac (AH_BOTTOM): Define estream prefix.
&lt;gcc&gt;: Add useful gcc warning options.
(estream_INIT): Call.
--

This is the base line patch to move the estream code from GnuPG to
libgpg-error.  The code has been taken from the GnuPG repository at
commit cb680c5ea540738692a5c74951802b0fdc658e85.

Signed-off-by: Werner Koch &lt;wk@gnupg.org&gt;
</content>
</entry>
</feed>
