summaryrefslogtreecommitdiff
path: root/lib/libcrypto/buffer
AgeCommit message (Collapse)Author
2023-07-28Remove BUF_[a-z]* APITheo Buehler
This are a bunch of strange string handlers with NULL checks that make no real sense except to some devs who like to sprinkle them everywhere. Fortunately, nothing uses these anymore, so they can go. ok jsing
2023-07-08Hide symbols in cms, comp, conf, and bufferBob Beck
ok jsing@
2022-07-12Remove mkerr.pl remnants from LibreSSLKlemens Nanni
This script is not used at all and files are edited by hand instead. Thus remove misleading comments incl. the obsolete script/config. Feedback OK jsing tb
2017-05-02use freezero() instead of memset/explicit_bzero + free. SubstantiallyTheo de Raadt
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
2017-04-09Simplify/clean up BUF_MEM_grow_clean().Joel Sing
ok beck@
2017-04-09With recallocarray() BUF_MEM_grow() is essentially the same asJoel Sing
BUF_MEM_grow_clean() (the only difference is clearing on internal down sizing), so make it a wrapper. ok beck@ deraadt@
2017-04-09Explicitly test for NULL.Joel Sing
ok beck@
2017-03-16Convert BUF_MEM_grow() and BUF_MEM_grow_clean() to recallocarray(),Joel Sing
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@
2017-03-16Use calloc() instead of malloc() followed by manually zeroing fields.Joel Sing
ok beck@ inoguchi@
2017-01-29Send the function codes from the error functions to the bit bucket,Bob Beck
as was done earlier in libssl. Thanks inoguchi@ for noticing libssl had more reacharounds into this. ok jsing@ inoguchi@
2015-06-24Put BUF_memdup() and BUF_reverse() under #ifndef LIBRESSL_INTERNAL.Joel Sing
2014-10-16Get rid of the last remaining BUF_strdup and BUF_strlcpy and friends, useBob Beck
intrinsic functions everywhere, and wrap these functions in an #ifndef LIBRESSL_INTERNAL to make sure we don't bring their use back.
2014-07-13unbreak build this needed to be an and..Bob Beck
ok jsing@
2014-07-13Take out __bounded__ in the include files we use it in when not on OpenBSD.Bob Beck
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@
2014-07-11Only import cryptlib.h in the four source files that actually need it.Joel Sing
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@
2014-07-10Explicitly include <openssl/opensslconf.h> in every file that referencesJoel Sing
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.
2014-07-10Stop including standard headers via cryptlib.h - pull in the headers thatJoel Sing
are needed in the source files that actually require them. ok beck@ miod@
2014-07-09Replace memset(a, 0, ...); free(a); by explicit_bzero(a, ...); free(a); inMiod Vallat
fear a smartass-optimizing compiler decides memset is useless immediately before free(). ok jsing@ deraadt@ tedu@
2014-06-24Unifdef -UNO_SYS_TYPES_HMiod Vallat
2014-06-14Add more bounded attributes to the buffer and md5/sha headers in libsslAnil Madhavapeddy
ok miod@
2014-06-12tags as requested by miod and teduTheo de Raadt
2014-06-01realloc with NULL is same as mallocTheo de Raadt
ok guenther
2014-06-01Commit this before the head-scratching leads to premature baldness:Theo de Raadt
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
2014-04-26More KNF.Joel Sing
2014-04-17remove OPENSSL_realloc_clean usage here - replace with intrinsics to makeBob Beck
it obvious what should happen. ok tedu@
2014-04-17I've replaced everything in this file. ISC liscense it with my copyrightBob Beck
2014-04-17KNF.Joel Sing
2014-04-17Initial KNF.Joel Sing
2014-04-17simply wrap around intrinsics, and knf cleanup.Bob Beck
ok miod@ deraadt@
2014-04-17Change library to use intrinsic memory allocation functions instead ofBob Beck
OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free
2014-04-15we don't use these files for buildingTed Unangst
2014-04-14remove auto-generated dependencies from the old unused build system, soTheo de Raadt
that it is easier to find code pieces. They are getting in the way. ok miod
2014-04-13Merge conflicts; remove MacOS, Netware, OS/2, VMS and Windows build machinery.Miod Vallat
2012-10-13import files that CVS missed; sighDamien Miller
2012-10-13resolve conflictsDamien Miller
2012-04-19cherrypick fix for CVE-2012-2110: libcrypto ASN.1 parsing heap overflowDamien Miller
ok miod@ deraadt@
2010-10-01resolve conflicts, fix local changesDamien Miller
2009-01-09resolve conflictsDamien Miller
2009-01-09import openssl-0.9.8jDamien Miller
2008-09-06resolve conflictsDamien Miller
2006-06-27resolve conflictsDamien Miller
2005-04-29import of openssl-0.9.7g; tested on platforms from alpha to zaurus, ok deraadt@Damien Miller
2003-05-12merge 0.9.7b with local changes; crank majors for libssl/libcryptoMarkus Friedl
2002-09-10merge openssl-0.9.7-beta3, tested on vax by miod@Markus Friedl
2002-09-04execute bourne shell scripts with 'sh' and not with $SHELLMarkus Friedl
2002-05-15OpenSSL 0.9.7 stable 2002 05 08 mergeBob Beck
2001-06-22openssl-engine-0.9.6a mergeBob Beck
2000-12-15openssl-engine-0.9.6 mergeBob Beck
2000-04-15OpenSSL 0.9.5a mergeBob Beck
2000-03-19OpenSSL 0.9.5 mergeBob Beck
*warning* this bumps shared lib minors for libssl and libcrypto from 2.1 to 2.2 if you are using the ssl26 packages for ssh and other things to work you will need to get new ones (see ~beck/libsslsnap/<arch>) on cvs or ~beck/src-patent.tar.gz on cvs