Change the printing mahine used by BIO_printf() and friends so it can
authorRichard Levitte <levitte@openssl.org>
Thu, 7 Sep 2000 05:50:14 +0000 (05:50 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 7 Sep 2000 05:50:14 +0000 (05:50 +0000)
commit827dbcb150a464585fe9274c1ad04d34ee51a131
tree49867da1b02499279589493d52a3704c0a3df2b6
parent47770c4dfb886843df54a4c1d68beebbcbbeecf6
Change the printing mahine used by BIO_printf() and friends so it can
handle an externally provided "static" buffer as well a a dynamic
buffer.  The "static" buffer is filled first, but if overflowed, the
dynamic buffer is used instead, being allocated somewhere i the heap.

This combines the benefits of putting the output in a preallocated
buffer (on the stack, for example) and in a buffer that grows
somewhere in the heap.
crypto/bio/b_print.c