diff options
author | Werner Koch <[email protected]> | 2007-03-19 14:35:04 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2007-03-19 14:35:04 +0000 |
commit | 12b661166c1eb5d2f09d50b4581b18d36eec94b1 (patch) | |
tree | 79179be0c079bbd30d4c89690128fd668c54a553 /common/estream.h | |
parent | From STABLE-BRANCH-1-4 (diff) | |
download | gnupg-12b661166c1eb5d2f09d50b4581b18d36eec94b1.tar.gz gnupg-12b661166c1eb5d2f09d50b4581b18d36eec94b1.zip |
Changes to let the key listing use estream to help systems without
funopen.
Diffstat (limited to 'common/estream.h')
-rw-r--r-- | common/estream.h | 17 |
1 files changed, 17 insertions, 0 deletions
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*/ |