aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/bio
Commit message (Collapse)AuthorAgeFilesLines
* Use standard unsigned integer typesAndreas Steffen2016-03-244-55/+55
|
* Ensure buffer in bio_writer_t is properly increasedTobias Brunner2013-06-111-49/+29
| | | | | | | The previous code was problematic if bufsize/increase was smaller than 8 and an u_int64_t was written when the buffer was too small. Also, for large chunks and small bufsizes realloc() was called several times instead of just once.
* Add a bio_reader_t constructor variant freeing passed data during destructionMartin Willi2013-01-152-1/+32
|
* Don't use bio_writer_t.skip() to write length field when appending more dataMartin Willi2013-01-111-2/+5
| | | | | If the writer reallocates its buffer, the length pointer might not be valid anymore, or even worse, point to an arbitrary allocation.
* Moved debug.[ch] to utils folderTobias Brunner2012-10-241-1/+1
|
* Added a method to bio_writer_t that allows to skip a number of bytesTobias Brunner2012-08-082-0/+24
| | | | | A chunk pointing to the skipped bytes is returned, allowing users of bio_writer_t to write/copy data to the skipped bytes themselves.
* Added a method to bio_writer_t that allows to extract the internal bufferTobias Brunner2012-08-082-0/+29
|
* Added methods to bio_reader_t to read data from end of bufferTobias Brunner2012-08-082-24/+204
|
* extended bio_reader and bio_writer to handle u_int64_tAndreas Steffen2011-11-284-0/+42
|
* renamed tls_reader|writer to bio_* and moved to libstrongswanAndreas Steffen2011-05-314-125/+125
|
* fixed typeAndreas Steffen2011-05-314-0/+704