- 16 12月, 2000 1 次提交
-
-
由 Bodo Möller 提交于
-
- 14 12月, 2000 1 次提交
-
-
由 Richard Levitte 提交于
functions need to be constified, and therefore meant a number of easy changes a little everywhere. Now, if someone could explain to me why OBJ_dup() cheats...
-
- 09 12月, 2000 1 次提交
-
-
由 Geoff Thorpe 提交于
DECLARE/IMPLEMENT macros now exist to create type (and prototype) safe wrapper functions that avoid the use of function pointer casting yet retain type-safety for type-specific callbacks. However, most of the usage within OpenSSL itself doesn't really require the extra function because the hash and compare callbacks are internal functions declared only for use by the hash table. So this change catches all those cases and reimplements the functions using the base-level LHASH prototypes and does per-variable casting inside those functions to convert to the appropriate item type. The exception so far is in ssl_lib.c where the hash and compare callbacks are not static - they're exposed in ssl.h so their prototypes should not be changed. In this last case, the IMPLEMENT_LHASH_*** macros have been left intact.
-
- 04 12月, 2000 1 次提交
-
-
由 Geoff Thorpe 提交于
cases of function pointer casting in lh_new() calls - and leave only the lh_doall and lh_doall_arg cases to be finished.
-
- 02 12月, 2000 1 次提交
-
-
由 Geoff Thorpe 提交于
casts) used in the lhash code are about as horrible and evil as they can be. For starters, the callback prototypes contain empty parameter lists. Yuck. This first change defines clearer prototypes - including "typedef"'d function pointer types to use as "hash" and "compare" callbacks, as well as the callbacks passed to the lh_doall and lh_doall_arg iteration functions. Now at least more explicit (and clear) casting is required in all of the dependant code - and that should be included in this commit. The next step will be to hunt down and obliterate some of the function pointer casting being used when it's not necessary - a particularly evil variant exists in the implementation of lh_doall.
-
- 29 11月, 2000 1 次提交
-
-
由 Ulf Möller 提交于
-
- 13 11月, 2000 1 次提交
-
-
由 Richard Levitte 提交于
LEVITTE_DEBUG to LEVITTE_DEBUG_MEM.
-
- 02 6月, 2000 1 次提交
-
-
由 Richard Levitte 提交于
like Malloc, Realloc and especially Free conflict with already existing names on some operating systems or other packages. That is reason enough to change the names of the OpenSSL memory allocation macros to something that has a better chance of being unique, like prepending them with OPENSSL_. This change includes all the name changes needed throughout all C files.
-
- 02 5月, 2000 1 次提交
-
-
由 Richard Levitte 提交于
"Jan Mikkelsen" <janm@transactionsite.com> correctly states that the OpenSSL header files have #include's and extern "C"'s in an incorrect order. Thusly fixed. Also, make the memory debugging routines defined and declared with prototypes, and use void* instead of char* for memory blobs. And last of all, redo the ugly callback construct for elegance and better definition (with prototypes).
-
- 18 3月, 2000 1 次提交
-
-
由 Bodo Möller 提交于
-
- 11 2月, 2000 1 次提交
-
-
由 Ralf S. Engelschall 提交于
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline''.
-
- 31 1月, 2000 1 次提交
-
-
由 Ulf Möller 提交于
eliminate some of the -Wcast-qual warnings (debug-ben-strict target)
-
- 23 1月, 2000 1 次提交
-
-
由 Ulf Möller 提交于
-
- 18 1月, 2000 1 次提交
-
-
由 Richard Levitte 提交于
non-function pointers to function pointers and vice versa. The current solution is to have unions that describe the conversion we want to do, and gives us the ability to extract the type of data we want. The current solution is a quick fix, and can probably be made in a more general or elegant way.
-
- 15 1月, 2000 2 次提交
-
-
由 Richard Levitte 提交于
-
由 Bodo Möller 提交于
-
- 18 12月, 1999 5 次提交
-
-
由 Bodo Möller 提交于
CRYPTO_add_info => CRYPTO_push_info CRYPTO_remove_info => CRYPTO_pop_info in the hope that these names are more descriptive; and "make update".
-
由 Bodo Möller 提交于
-
由 Bodo Möller 提交于
(and that malloc can be called with an int argument). - Use proper prototypes (with argument list) for various function pointers, avoid casts (however there are still many such cases left in these files). - Avoid collissions in app_info_cmp if sizeof int != sizeof long. - Use CRYPTO_LOCK_MALLOC in mem_dbg.c.
-
由 Richard Levitte 提交于
- Moved the handling of compile-time defaults from crypto.h to mem_dbg.c, since it doesn't make sense for the library users to try to affect this without recompiling libcrypto. - Made sure V_CRYPTO_MDEBUG_TIME and V_CRYPTO_MDEBUG_THREAD had clear and constant definitions. - Aesthetic correction.
-
由 Richard Levitte 提交于
-
- 17 12月, 1999 1 次提交
-
-
由 Richard Levitte 提交于
With this change, the following is provided and present at all times (meaning CRYPTO_MDEBUG is no longer required to get this functionality): - hooks to provide your own allocation and deallocation routines. They have to have the same interface as malloc(), realloc() and free(). They are registered by calling CRYPTO_set_mem_functions() with the function pointers. - hooks to provide your own memory debugging routines. The have to have the same interface as as the CRYPTO_dbg_*() routines. They are registered by calling CRYPTO_set_mem_debug_functions() with the function pointers. I moved everything that was already built into OpenSSL and did memory debugging to a separate file (mem_dbg.c), to make it clear what is what. With this, the relevance of the CRYPTO_MDEBUG has changed. The only thing in crypto/crypto.h that it affects is the definition of the MemCheck_start and MemCheck_stop macros.
-
- 13 11月, 1999 2 次提交
-
-
由 Richard Levitte 提交于
The info removal code was overcomplicated, and error-prone (references being wrongly decreased). Fixed.
-
由 Bodo Möller 提交于
-
- 12 11月, 1999 2 次提交
-
-
由 Richard Levitte 提交于
-
由 Richard Levitte 提交于
1. Added code to the memory leak detecting code to give the user the possibility to add information, thereby forming a traceback. 2. Make the memory leak detecting code multithread-safe. The idea is that we're actually dealing with two separate critical sections, one containing the hash tables with the information, the other containing the current memory checking mode. Those should not be handled with the same lock, especially since their handling overlap. Hence, the added second lock.
-
- 19 7月, 1999 3 次提交
-
-
由 Bodo Möller 提交于
-
由 Bodo Möller 提交于
and make it the default for some debugging configurations.
-
由 Bodo Möller 提交于
This is much more helpful than the counter when doing tests with the library interactively.
-
- 10 7月, 1999 1 次提交
-
-
由 Bodo Möller 提交于
-
- 11 6月, 1999 1 次提交
-
-
由 Bodo Möller 提交于
-
- 08 6月, 1999 1 次提交
-
-
由 Bodo Möller 提交于
a pain to read when using 4-space tabs.
-
- 24 4月, 1999 1 次提交
-
-
由 Bodo Möller 提交于
Submitted by: Reviewed by: PR:
-
- 20 4月, 1999 1 次提交
-
-
由 Ulf Möller 提交于
-
- 18 4月, 1999 1 次提交
-
-
由 Ben Laurie 提交于
-
- 10 4月, 1999 1 次提交
-
-
由 Ben Laurie 提交于
-
- 28 2月, 1999 1 次提交
-
-
由 Ben Laurie 提交于
-
- 21 12月, 1998 3 次提交
-
-
由 Ralf S. Engelschall 提交于
-
由 Ralf S. Engelschall 提交于
-
由 Ralf S. Engelschall 提交于
-