Would someone please verify in implement the following change
crypto/crypto.h as follows so that C++ code can call
"CRYPTO_malloc_debug_init"? (Without the change, the SUN C++ compiler (and
presumably others, too) throws an error about the types of each of the
arguments to "CRYPTO_set_mem_debug_functions":
Original Line #242, crypto.h:
/* Set standard debugging functions (not done by default
* unless CRYPTO_MDEBUG is defined) */
#define CRYPTO_malloc_debug_init() do {\
CRYPTO_set_mem_debug_functions(\
(void (*)())CRYPTO_dbg_malloc,\
(void (*)())CRYPTO_dbg_realloc,\
(void (*)())CRYPTO_dbg_free,\
(void (*)())CRYPTO_dbg_set_options,\
(long (*)())CRYPTO_dbg_get_options);\
} while(0)
Proposed change: Cut out the old lines, move them to line #367 (just after
the prototype for "long CRYPTO_dbg_get_options(void);") and remove the type
casts:
/* Set standard debugging functions (not done by default
* unless CRYPTO_MDEBUG is defined) */
#define CRYPTO_malloc_debug_init() do {\
CRYPTO_set_mem_debug_functions(\
CRYPTO_dbg_malloc,\
CRYPTO_dbg_realloc,\
CRYPTO_dbg_free,\
CRYPTO_dbg_set_options,\
CRYPTO_dbg_get_options);\
} while(0)
Thanks again,
Bill Rebey
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]