Hi,
I'm trying to substitute the use of malloc for
OPENSSL_malloc and kmem_free for OPENSSL_free.
Unfortunately I'm not sure if I'm doing this the right way:
crypto/mem.c:
static void *(*malloc_locked_func)(size_t) = kmem_alloc;
static void (*free_locked_func)(void *) = kmem_free;
static void *(*malloc_func)(size_t) = kmem_alloc;
/* realloc is defined beyond */
static void (*free_func)(void *) = kmem_free;
void kmem_realloc (void *blah, size_t size){
void *new_mem = kmem_alloc(size, KM_NOSLEEP);
memcpy (new_mem, blah, sizeof(blah));
kmem_free(blah, size);
}
with these modifications I can compile the stuff, but
when I start it (in a kernel module (bios extracted))
it crashes my box.
Any suggestions?
Thanks
Thomas
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]