diff options
author | Bodo Möller <bodo@openssl.org> | 2011-12-02 16:25:03 +0400 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2011-12-02 16:25:03 +0400 |
commit | 390c579568c3a9e1c53cfd0fdc9845eca2487ccb (patch) | |
tree | 5ae6754895de7951b2d308750ea6e8b06b08b8d0 /crypto/bio/bio.h | |
parent | 07981709667191ae61595a6f40530ccc4e41386f (diff) |
Fix BIO_f_buffer().
Submitted by: Adam Langley
Reviewed by: Bodo Moeller
Diffstat (limited to 'crypto/bio/bio.h')
-rw-r--r-- | crypto/bio/bio.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/bio/bio.h b/crypto/bio/bio.h index 152802fbdf..ab47abcf14 100644 --- a/crypto/bio/bio.h +++ b/crypto/bio/bio.h @@ -306,6 +306,15 @@ DECLARE_STACK_OF(BIO) typedef struct bio_f_buffer_ctx_struct { + /* Buffers are setup like this: + * + * <---------------------- size -----------------------> + * +---------------------------------------------------+ + * | consumed | remaining | free space | + * +---------------------------------------------------+ + * <-- off --><------- len -------> + */ + /* BIO *bio; */ /* this is now in the BIO struct */ int ibuf_size; /* how big is the input buffer */ int obuf_size; /* how big is the output buffer */ |