aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/buffer/buffer.h
Commit message (Collapse)AuthorAgeFilesLines
* BUF_strndup: tidyEmilia Kasper2015-09-221-2/+2
| | | | | | | Fix comment, add another overflow check, tidy style Reviewed-by: Matt Caswell <matt@openssl.org> (cherry picked from commit de8883e11befde31d9b6cfbbd1fc017c365e0bbf)
* Make BUF_strndup() read-safe on arbitrary inputsAlessandro Ghedini2015-09-221-0/+6
| | | | | | | | | | | | | | | BUF_strndup was calling strlen through BUF_strlcpy, and ended up reading past the input if the input was not a C string. Make it explicitly part of BUF_strndup's contract to never read more than |siz| input bytes. This augments the standard strndup contract to be safer. The commit also adds a check for siz overflow and some brief documentation for BUF_strndup(). Reviewed-by: Matt Caswell <matt@openssl.org> (cherry picked from commit 110f7b37de9feecfb64950601cc7cec77cf6130b)
* Run util/openssl-format-source -v -c .Matt Caswell2015-01-221-36/+35
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* Implement BUF_strnlen() and use it instead of strlen().Ben Laurie2014-05-211-0/+1
|
* Constification.Ben Laurie2013-10-011-1/+1
|
* size_t-fy crypto/buffer.Andy Polyakov2007-10-091-4/+4
|
* New utility function to reverse a buffer, either by copying or in-place.Dr. Stephen Henson2006-04-101-0/+1
|
* Fix various incorrect error function codes.Bodo Möller2005-04-261-0/+1
| | | | ("perl util/ck_errf.pl */*.c */*/*.c" still reports many more.)
* Make some more API types opaquely available from ossl_typ.h, meaning theGeoff Thorpe2004-05-151-2/+7
| | | | | | | corresponding headers are only required for API functions or structure details. This now includes the bignum types and BUF_MEM. Subsequent commits will remove various dependencies on bn.h and buffer.h and update the makefile dependencies.
* Netware-specific changes,Richard Levitte2003-11-281-0/+3
| | | | | | PR: 780 Submitted by: Verdon Walker <VWalker@novell.com> Reviewed by: Richard Levitte
* Add BUF_strndup() and BUF_memdup(). Not currently used, but I've codeRichard Levitte2003-04-291-0/+4
| | | | that uses them that I'll commit in a few days.
* Remove warnings.Richard Levitte2002-11-141-0/+1
|
* Security fixes brought forward from 0.9.7.Ben Laurie2002-11-131-0/+8
|
* remove redundant ERR_load_... declarationsBodo Möller2001-12-171-2/+0
|
* make updateRichard Levitte2001-11-151-1/+1
| | | | perl util/mkerr.pl -recurse -write -rebuild
* Remove NOPROTO definitions and error code comments.Ulf Möller1999-04-261-12/+0
|
* Complete rewrite of the error code generation script. It now runs as a singleDr. Stephen Henson1999-04-241-1/+5
| | | | | | | script, translates function codes better and doesn't need the K&R function prototypes to work (NB. the K&R prototypes can't be wiped just yet: they are still needed by the DEF generator...). I also ran the script with the -rewrite option to update all the header and source files.
* Massive constification.Ben Laurie1999-04-171-1/+1
|
* Various cleanups and fixed by Marc and Ralf to start the OpenTLS projectRalf S. Engelschall1998-12-221-1/+0
|
* Import of old SSLeay release: SSLeay 0.9.0bRalf S. Engelschall1998-12-211-3/+3
|
* Import of old SSLeay release: SSLeay 0.8.1bRalf S. Engelschall1998-12-211-0/+107