summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/lhash (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove lhash_local.h.jsing2024-07-142-94/+24
| | | | | | | | | lhash_local.h was previously needed since conf/conf_api.c and objects/obj_dat.c were fiddling with lhash internals when deleting via a callback. Since we no longer need to do that, inline the structs in lhash.c and remove the header. ok tb@
* Remove lhash statistics.jsing2024-06-302-30/+2
| | | | | | These are not exactly useful and we previously stopped exposing them. ok tb@
* Remove the less-than-useful change log.jsing2024-06-221-39/+1
| | | | ok tb@
* Reorder functions and drop static function prototypes.jsing2024-05-071-123/+119
| | | | No functional change.
* Fix function wrapping.jsing2024-05-061-2/+3
|
* Guard call to contract() from doall_util_fn().jsing2024-05-061-2/+4
| | | | | | | | | | | | It is not safe to unconditionally call contract() - when called repeatedly it will shrink the bucket array to zero and then attempt to access that allocation on the next call. Use the same guard that is used in lh_delete(). Issue found when investigating haproxy crashes reported by wizard-it on GitHub. ok tb@
* Make LHASH_OF() and STACK_OF() use opaque structstb2024-03-023-45/+119
| | | | | | | | | | | | | This removes internals of these two special snowflakes and will allow further simplifications. Unfortunately, there are some pieces of software that actually use LHASH_OF() (looking at you, pound, Ruby, and openssl(1)), so we get to keep exposing this garbage, at least for now. Expose lh_error() as a symbol to replace a macro reaching into _LHASH. lh_down_load() is no longer available. _LHASH and _STACK are now opaque, LHASH_NODE becomes internal-only. from jsing
* Remove lh statstb2024-03-022-280/+1
| | | | | | | This could have been removed in an earlier bump. Now it's time for it to say goodbye. ok jsing
* Make it safe to delete entries from an lhash doall callback.jsing2024-01-241-2/+15
| | | | | | | | | | | | | | | | | | Currently, the callback cannot safely delete entries as it could lead to contraction of the hash table, which in turn could lead to doall skipping entries (and that typically leads to memory leaks). The recommended workaround is to reach in and fiddle with the hash table internals in order to prevent contraction, call the doall function and then restore the internals that were changed. Rather than just improving our documentation, actually make it safe to delete entries from an lhash doall callback by pausing contractions prior to starting the callback loop, then restoring the down load factor and triggering contraction once completed. This means that callers no longer need access to change hash table internals in order to achieve this same behaviour. ok tb@
* Hide symbols in lhash, pem, and rc2beck2023-07-072-2/+20
| | | | ok jsing@
* Stop the eyebleed in here and just use callocbeck2019-05-121-31/+8
|
* Use more homogeneous types and avoid a possible right shift by 32 inmiod2016-11-081-17/+11
| | | | | | lh_strhash(). ok guenther@
* Only import cryptlib.h in the four source files that actually need it.jsing2014-07-111-5/+1
| | | | | | | | 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 referencesjsing2014-07-102-2/+8
| | | | | | | | | 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.
* remove unused, private version strings except SSL_version_strbcook2014-07-091-3/+1
| | | | | | Also remove unused des_ver.h, which exports some of these strings, but is not installed. ok miod@ tedu@
* tags as requested by miod and teduderaadt2014-06-123-3/+3
|
* Remove various test stubs. The good ones have been moved by jsingderaadt2014-06-071-88/+0
| | | | | | and others to the regress framework. These remaining ones just muddle us up when re-reading code repeatedly. ok jsing
* malloc() result does not need a cast.deraadt2014-06-071-1/+1
| | | | ok miod
* I do not have time to describe how bad the realloc() uses in here, nowderaadt2014-05-291-4/+2
| | | | | | | being relaced by reallocarray(). you will have to look at the diff. there can be no explanations for the extra casts. as beck says, "Don't go towards the light theo!" ok beck tedu
* ok, next pass after review: when possible, put the reallocarray argumentsderaadt2014-05-291-1/+1
| | | | in the "size_t nmemb, size_t size"
* convert 53 malloc(a*b) to reallocarray(NULL, a, b). that is 53deraadt2014-05-291-1/+1
| | | | | | | | | potential integer overflows easily changed into an allocation return of NULL, with errno nicely set if need be. checks for an allocations returning NULL are commonplace, or if the object is dereferenced (quite normal) will result in a nice fault which can be detected & repaired properly. ok tedu
* Everything sane has stdio, and FILE *. we don't need ifdefs for this.beck2014-05-292-6/+0
| | | | ok to firebomb from tedu@
* Almost nothing actually needs to include <openssl/e_os2.h>, however byjsing2014-05-241-1/+2
| | | | | | | including it they get <openssl/opensslconf.h>. So instead of pulling in <openssl/e_os2.h>, just pull in <openssl/opensslconf.h>. "go ahead" miod@
* Remove meat which either duplicates code found in apps/, or is only of valuemiod2014-04-221-17/+0
| | | | for 20th century historians, and can be put in the Attic.
* KNF.jsing2014-04-204-398/+393
|
* Change library to use intrinsic memory allocation functions instead ofbeck2014-04-172-11/+11
| | | | | | | | OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free
* we don't use these files for buildingtedu2014-04-151-75/+0
|
* remove auto-generated dependencies from the old unused build system, soderaadt2014-04-141-13/+0
| | | | | that it is easier to find code pieces. They are getting in the way. ok miod
* resolve conflicts, fix local changesdjm2010-10-014-162/+115
|
* This commit was generated by cvs2git to track changes on a CVS vendordjm2010-10-011-1/+1
|\ | | | | branch.
| * import OpenSSL-1.0.0adjm2010-10-011-1/+1
| |
* | This commit was generated by cvs2git to track changes on a CVS vendordjm2009-01-091-1/+1
|\| | | | | branch.
| * import openssl-0.9.8jdjm2009-01-091-1/+1
| |
* | resolve conflictsdjm2008-09-062-18/+19
| |
* | This commit was generated by cvs2git to track changes on a CVS vendordjm2008-09-061-10/+7
|\| | | | | branch.
| * import of OpenSSL 0.9.8hdjm2008-09-061-10/+7
| |
* | This commit was generated by cvs2git to track changes on a CVS vendordjm2006-06-271-1/+1
|\| | | | | branch.
| * import of openssl-0.9.7jdjm2006-06-271-1/+1
| |
* | This commit was generated by cvs2git to track changes on a CVS vendordjm2005-04-291-0/+91
|\| | | | | branch.
| * import of openssl-0.9.7g; tested on platforms from alpha to zaurus, ok deraadt@djm2005-04-291-0/+91
| |
| * import openssl-0.9.7-beta1markus2002-09-052-4/+3
| |
* | merge 0.9.7b with local changes; crank majors for libssl/libcryptomarkus2003-05-122-72/+31
| |
* | Trivial sprintf() -> snprintf() changes. ok deraadt@ho2003-04-051-24/+39
| |
* | merge openssl-0.9.7-beta3, tested on vax by miod@markus2002-09-101-1/+1
| |
* | execute bourne shell scripts with 'sh' and not with $SHELLmarkus2002-09-041-1/+1
| |
* | OpenSSL 0.9.7 stable 2002 05 08 mergebeck2002-05-155-68/+127
| |
* | openssl-engine-0.9.6a mergebeck2001-06-221-1/+2
| |
* | openssl-engine-0.9.6 mergebeck2000-12-155-21/+30
| |
* | OpenSSL 0.9.5a mergebeck2000-04-152-16/+6
| |
* | OpenSSL 0.9.5 mergebeck2000-03-193-32/+29
| | | | | | | | | | | | *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