diff options
author | Werner Koch <[email protected]> | 2006-10-02 11:54:35 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2006-10-02 11:54:35 +0000 |
commit | 4b48bcacc9a242365e85ca788c4c966d8aeb1c10 (patch) | |
tree | 21e803ec571bbe4d9288e014a16ccafe0ac45056 /common/iobuf.h | |
parent | 2006-10-02 Marcus Brinkmann <[email protected]> (diff) | |
download | gnupg-4b48bcacc9a242365e85ca788c4c966d8aeb1c10.tar.gz gnupg-4b48bcacc9a242365e85ca788c4c966d8aeb1c10.zip |
Fix for bug 537
Diffstat (limited to 'common/iobuf.h')
-rw-r--r-- | common/iobuf.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/common/iobuf.h b/common/iobuf.h index 55c0b3b6d..fa11f3905 100644 --- a/common/iobuf.h +++ b/common/iobuf.h @@ -47,8 +47,6 @@ struct iobuf_struct off_t nbytes; /* Used together with nlimit. */ off_t ntotal; /* Total bytes read (position of stream). */ int nofast; /* Used by the iobuf_get (). */ - /* bit 0 (LSB): slow path because of limit. */ - /* bit 1: slow path because of unread. */ void *directfp; struct { @@ -63,24 +61,16 @@ struct iobuf_struct int error; int (*filter) (void *opaque, int control, iobuf_t chain, byte * buf, size_t * len); - void *filter_ov; /* value for opaque */ + void *filter_ov; /* Value for opaque */ int filter_ov_owner; char *real_fname; - iobuf_t chain; /* next iobuf used for i/o if any + iobuf_t chain; /* Next iobuf used for i/o if any (passed to filter) */ int no, subno; const char *desc; - void *opaque; /* can be used to hold any information + void *opaque; /* Can be used to hold any information this value is copied to all instances */ - struct - { - size_t size; /* allocated size */ - size_t start; /* number of invalid bytes at the - begin of the buffer */ - size_t len; /* currently filled to this size */ - byte *buf; - } unget; }; #ifndef EXTERN_UNLESS_MAIN_MODULE @@ -137,7 +127,6 @@ int iobuf_writestr (iobuf_t a, const char *buf); void iobuf_flush_temp (iobuf_t temp); int iobuf_write_temp (iobuf_t a, iobuf_t temp); size_t iobuf_temp_to_buffer (iobuf_t a, byte * buffer, size_t buflen); -void iobuf_unget_and_close_temp (iobuf_t a, iobuf_t temp); off_t iobuf_get_filelength (iobuf_t a, int *overflow); #define IOBUF_FILELENGTH_LIMIT 0xffffffff |