[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnutls_global_set_mem_functions and GNUTLS_E_MEMORY_ERROR
From: |
Dmitry Antipov |
Subject: |
gnutls_global_set_mem_functions and GNUTLS_E_MEMORY_ERROR |
Date: |
Mon, 22 Dec 2014 19:30:57 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 |
Hello,
1) Why gnutls_global_set_mem_functions is obsolete?
2) What if an application tends to handle memory-related errors by using it's
own
malloc/realloc/free wrappers instead of checking for GNUTLS_E_MEMORY_ERROR?
3) Is it legal to write:
gnutls_malloc = my_malloc;
gnutls_realloc = my_realloc;
gnutls_calloc = my_calloc;
gnutls_free = my_free;
gnutls_strdup = my_strdup;
in attempt to be compatible with gnutls < 3.3.0?
Thanks in advance,
Dmitry
- gnutls_global_set_mem_functions and GNUTLS_E_MEMORY_ERROR,
Dmitry Antipov <=