Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | use freezero() instead of memset/explicit_bzero + free. Substantially | deraadt | 2017-05-02 | 1 | -5/+2 |
| | | | | | | | | | | reduces conditional logic (-218, +82). MOD_EXP_CTIME_MIN_CACHE_LINE_WIDTH cache alignment calculation bn/bn_exp.c wasn'tt quite right. Two other tricky bits with ASN1_STRING_FLAG_NDEF and BN_FLG_STATIC_DATA where the condition cannot be collapsed completely. Passes regress. ok beck | ||||
* | Simplify/clean up BUF_MEM_grow_clean(). | jsing | 2017-04-09 | 1 | -17/+16 |
| | | | | ok beck@ | ||||
* | With recallocarray() BUF_MEM_grow() is essentially the same as | jsing | 2017-04-09 | 1 | -28/+2 |
| | | | | | | | BUF_MEM_grow_clean() (the only difference is clearing on internal down sizing), so make it a wrapper. ok beck@ deraadt@ | ||||
* | Explicitly test for NULL. | jsing | 2017-04-09 | 1 | -4/+4 |
| | | | | ok beck@ | ||||
* | Convert BUF_MEM_grow() and BUF_MEM_grow_clean() to recallocarray(), | jsing | 2017-03-16 | 1 | -13/+3 |
| | | | | | | | | | | ensuring that the buffer contents are zeroed on allocation and not leaked when resizing. It is worth noting that BUF_MEM_grow_clean() already did this manually by avoiding realloc(). ok beck@ inoguchi@ | ||||
* | Use calloc() instead of malloc() followed by manually zeroing fields. | jsing | 2017-03-16 | 1 | -6/+3 |
| | | | | ok beck@ inoguchi@ | ||||
* | Send the function codes from the error functions to the bit bucket, | beck | 2017-01-29 | 3 | -17/+12 |
| | | | | | | as was done earlier in libssl. Thanks inoguchi@ for noticing libssl had more reacharounds into this. ok jsing@ inoguchi@ | ||||
* | Put BUF_memdup() and BUF_reverse() under #ifndef LIBRESSL_INTERNAL. | jsing | 2015-06-24 | 1 | -3/+2 |
| | |||||
* | Get rid of the last remaining BUF_strdup and BUF_strlcpy and friends, use | beck | 2014-10-16 | 1 | -2/+5 |
| | | | | | intrinsic functions everywhere, and wrap these functions in an #ifndef LIBRESSL_INTERNAL to make sure we don't bring their use back. | ||||
* | unbreak build this needed to be an and.. | beck | 2014-07-13 | 1 | -2/+2 |
| | | | | ok jsing@ | ||||
* | Take out __bounded__ in the include files we use it in when not on OpenBSD. | beck | 2014-07-13 | 1 | -1/+4 |
| | | | | | | | while we can take it out in portable at compile time, it is still a problem when we install this header file on a system that doesn't support __bounded__ if this is unguarded. ok miod@ bcook@ | ||||
* | Only import cryptlib.h in the four source files that actually need it. | jsing | 2014-07-11 | 2 | -4/+6 |
| | | | | | | | | Remove the openssl public includes from cryptlib.h and add a small number of includes into the source files that actually need them. While here, also sort/group/tidy the includes. ok beck@ miod@ | ||||
* | Explicitly include <openssl/opensslconf.h> in every file that references | jsing | 2014-07-10 | 1 | -1/+4 |
| | | | | | | | | | an OPENSSL_NO_* define. This avoids relying on something else pulling it in for us, plus it fixes several cases where the #ifndef OPENSSL_NO_XYZ is never going to do anything, since OPENSSL_NO_XYZ will never defined, due to the fact that opensslconf.h has not been included. This also includes some miscellaneous sorting/tidying of headers. | ||||
* | Stop including standard headers via cryptlib.h - pull in the headers that | jsing | 2014-07-10 | 1 | -1/+3 |
| | | | | | | are needed in the source files that actually require them. ok beck@ miod@ | ||||
* | Replace memset(a, 0, ...); free(a); by explicit_bzero(a, ...); free(a); in | miod | 2014-07-09 | 1 | -2/+2 |
| | | | | | | | fear a smartass-optimizing compiler decides memset is useless immediately before free(). ok jsing@ deraadt@ tedu@ | ||||
* | Unifdef -UNO_SYS_TYPES_H | miod | 2014-06-24 | 1 | -4/+1 |
| | |||||
* | Add more bounded attributes to the buffer and md5/sha headers in libssl | avsm | 2014-06-14 | 1 | -3/+5 |
| | | | | ok miod@ | ||||
* | tags as requested by miod and tedu | deraadt | 2014-06-12 | 3 | -3/+3 |
| | |||||
* | realloc with NULL is same as malloc | deraadt | 2014-06-01 | 1 | -4/+1 |
| | | | | ok guenther | ||||
* | Commit this before the head-scratching leads to premature baldness: | deraadt | 2014-06-01 | 1 | -1/+1 |
| | | | | | | | | | | | | | memset(a->data, 0, (unsigned int)a->max); but the decl is: size_t max; size_t could be larger than int, especially in some of the systems OpenSSL purports to support. How do _intentionally truncating_ casts like enter into a codebase? Lack of understanding of C, at a minimum. Generally the objects are small, but this code is _intentionally unready_ for large objects. ok miod | ||||
* | More KNF. | jsing | 2014-04-26 | 2 | -6/+10 |
| | |||||
* | remove OPENSSL_realloc_clean usage here - replace with intrinsics to make | beck | 2014-04-17 | 1 | -4/+7 |
| | | | | | it obvious what should happen. ok tedu@ | ||||
* | I've replaced everything in this file. ISC liscense it with my copyright | beck | 2014-04-17 | 1 | -54/+13 |
| | |||||
* | KNF. | jsing | 2014-04-17 | 1 | -3/+3 |
| | |||||
* | Initial KNF. | jsing | 2014-04-17 | 3 | -139/+122 |
| | |||||
* | simply wrap around intrinsics, and knf cleanup. | beck | 2014-04-17 | 1 | -57/+54 |
| | | | | ok miod@ deraadt@ | ||||
* | Change library to use intrinsic memory allocation functions instead of | beck | 2014-04-17 | 2 | -8/+8 |
| | | | | | | | | OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free | ||||
* | we don't use these files for building | tedu | 2014-04-15 | 1 | -75/+0 |
| | |||||
* | remove auto-generated dependencies from the old unused build system, so | deraadt | 2014-04-14 | 1 | -22/+0 |
| | | | | | that it is easier to find code pieces. They are getting in the way. ok miod | ||||
* | Merge conflicts; remove MacOS, Netware, OS/2, VMS and Windows build machinery. | miod | 2014-04-13 | 2 | -3/+3 |
| | |||||
* | import files that CVS missed; sigh | djm | 2012-10-13 | 1 | -0/+119 |
| | |||||
* | resolve conflicts | djm | 2012-10-13 | 1 | -59/+1 |
| | |||||
* | This commit was generated by cvs2git to track changes on a CVS vendor | djm | 2012-10-13 | 1 | -2/+9 |
|\ | | | | | branch. | ||||
| * | import OpenSSL-1.0.1c | djm | 2012-10-13 | 1 | -2/+9 |
| | | |||||
* | | cherrypick fix for CVE-2012-2110: libcrypto ASN.1 parsing heap overflow | djm | 2012-04-19 | 1 | -0/+17 |
| | | | | | | | | ok miod@ deraadt@ | ||||
* | | resolve conflicts, fix local changes | djm | 2010-10-01 | 5 | -219/+91 |
| | | |||||
* | | This commit was generated by cvs2git to track changes on a CVS vendor | djm | 2010-10-01 | 1 | -10/+3 |
|\| | | | | | branch. | ||||
| * | import OpenSSL-1.0.0a | djm | 2010-10-01 | 1 | -10/+3 |
| | | |||||
* | | resolve conflicts | djm | 2009-01-09 | 1 | -58/+0 |
| | | |||||
* | | This commit was generated by cvs2git to track changes on a CVS vendor | djm | 2009-01-09 | 1 | -0/+116 |
|\ \ | | | | | | | branch. | ||||
| * | | import openssl-0.9.8j | djm | 2009-01-09 | 2 | -58/+116 |
| | | | |||||
| * | | import of OpenSSL 0.9.8h | djm | 2008-09-06 | 3 | -14/+46 |
| | | | |||||
| * | | import of openssl-0.9.7j | djm | 2006-06-27 | 1 | -6/+10 |
| | | | |||||
| * | | import 0.9.7b (without idea and rc5) | markus | 2003-05-11 | 2 | -0/+66 |
| | | | |||||
| * | | import openssl-0.9.7-beta1 | markus | 2002-09-05 | 3 | -95/+92 |
| | | | |||||
* | | | This commit was generated by cvs2git to track changes on a CVS vendor | djm | 2009-01-09 | 1 | -3/+10 |
|\ \ \ | | |/ | |/| | branch. | ||||
| * | | import openssl-0.9.8j | djm | 2009-01-09 | 1 | -3/+10 |
| | | | |||||
* | | | resolve conflicts | djm | 2008-09-06 | 3 | -14/+46 |
| | | | |||||
* | | | This commit was generated by cvs2git to track changes on a CVS vendor | djm | 2008-09-06 | 1 | -10/+8 |
|\| | | | | | | | | branch. | ||||
| * | | import of OpenSSL 0.9.8h | djm | 2008-09-06 | 1 | -10/+8 |
| | | |