mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Merge pull request #492 from JacobBarthelmeh/staticmemory
set heap hint for ctx
This commit is contained in:
@@ -712,6 +712,7 @@ int wolfSSL_CTX_load_static_memory(WOLFSSL_CTX** ctx, wolfSSL_method_func method
|
|||||||
idx += sizeof(WOLFSSL_HEAP_HINT);
|
idx += sizeof(WOLFSSL_HEAP_HINT);
|
||||||
XMEMSET(hint, 0, sizeof(WOLFSSL_HEAP_HINT));
|
XMEMSET(hint, 0, sizeof(WOLFSSL_HEAP_HINT));
|
||||||
hint->memory = heap;
|
hint->memory = heap;
|
||||||
|
(*ctx)->heap = (void*)hint;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
#ifdef WOLFSSL_HEAP_TEST
|
#ifdef WOLFSSL_HEAP_TEST
|
||||||
|
Reference in New Issue
Block a user