From 12b661166c1eb5d2f09d50b4581b18d36eec94b1 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 19 Mar 2007 14:35:04 +0000 Subject: Changes to let the key listing use estream to help systems without funopen. --- common/estream.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'common/estream.h') diff --git a/common/estream.h b/common/estream.h index 123a65a97..aede40868 100644 --- a/common/estream.h +++ b/common/estream.h @@ -172,6 +172,13 @@ int es_read (estream_t ES__RESTRICT stream, int es_write (estream_t ES__RESTRICT stream, const void *ES__RESTRICT buffer, size_t bytes_to_write, size_t *ES__RESTRICT bytes_written); +int es_write_sanitized (estream_t ES__RESTRICT stream, + const void *ES__RESTRICT buffer, size_t length, + const char *delimiters, + size_t *ES__RESTRICT bytes_written); +int es_write_hexstring (estream_t ES__RESTRICT stream, + const void *ES__RESTRICT buffer, size_t length, + int reserved, size_t *ES__RESTRICT bytes_written); size_t es_fread (void *ES__RESTRICT ptr, size_t size, size_t nitems, estream_t ES__RESTRICT stream); @@ -203,5 +210,15 @@ estream_t es_tmpfile (void); void es_opaque_set (estream_t ES__RESTRICT stream, void *ES__RESTRICT opaque); void *es_opaque_get (estream_t stream); + + +#ifdef GNUPG_MAJOR_VERSION +int es_write_sanitized_utf8_buffer (estream_t stream, + const void *buffer, size_t length, + const char *delimiters, + size_t *bytes_written); +#endif /*GNUPG_MAJOR_VERSION*/ + + #endif /*ESTREAM_H*/ -- cgit v1.2.3