Dror,
I've made a change that allows for the kind of functionality you
requested. It will be available in tonights snapshot, or if you want
to rsync it immediately...
The requirements for you will be to add the following code to your
application (and remove the CRYPTO_set_mem_debug_functions() call and
corresponding callbacks):
#define OPENSSL_BLOCKTYPE 0 /* I've no idea what this should be, you
be the judge */
static void *my_ex_malloc(size_t num, const char *file, int line)
{ return _malloc_dbg(num,OPENSSL_BLOCKTYPE,file,line); }
static void *my_ex_realloc(void *addr, size_t num, const char *file, int line)
{ return _realloc_dbg(addr,num,OPENSSL_BLOCKTYPE,file,line); }
static void my_ex_free(void *addr)
{ _free_dbg(addr,OPENSSL_BLOCKTYPE); }
/* ... */
/* Do this early, before any allocation will occur! */
CRYPTO_set_mem_ex_functions(my_ex_malloc,my_ex_realloc,my_ex_free);
That should give you what you want.
--
Richard Levitte \ Spannvägen 38, II \ [EMAIL PROTECTED]
Chairman@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47
Redakteur@Stacken \ SWEDEN \ or +46-709-50 36 10
Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/
Software Engineer, Celo Communications: http://www.celocom.com/
Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]