| 52 some bugs */ |
52 some bugs */ |
| 53 /* TODO: It may be necessary to wrap this allocators for GnuTLS. |
53 /* TODO: It may be necessary to wrap this allocators for GnuTLS. |
| 54 If there are strange bugs, perhaps look here (yes, I am a |
54 If there are strange bugs, perhaps look here (yes, I am a |
| 55 hypocrite) */ |
55 hypocrite) */ |
| 56 gnutls_global_set_mem_functions( |
56 gnutls_global_set_mem_functions( |
| 57 (gnutls_alloc_function) g_malloc0, /* malloc */ |
57 (gnutls_alloc_function) g_malloc, /* malloc */ |
| 58 (gnutls_alloc_function) g_malloc0, /* secure malloc */ |
58 (gnutls_alloc_function) g_malloc, /* secure malloc */ |
| 59 NULL, /* mem_is_secure */ |
59 NULL, /* mem_is_secure */ |
| 60 (gnutls_realloc_function) g_realloc, /* realloc */ |
60 (gnutls_realloc_function) g_realloc, /* realloc */ |
| 61 (gnutls_free_function) g_free /* free */ |
61 (gnutls_free_function) g_free /* free */ |
| 62 ); |
62 ); |
| 63 |
63 |