1gnutls_global_set_mem_functions(3)  gnutls  gnutls_global_set_mem_functions(3)
2
3
4

NAME

6       gnutls_global_set_mem_functions - API function
7

SYNOPSIS

9       #include <gnutls/compat.h>
10
11       void  gnutls_global_set_mem_functions(gnutls_alloc_function alloc_func,
12       gnutls_alloc_function   secure_alloc_func,    gnutls_is_secure_function
13       is_secure_func, gnutls_realloc_function realloc_func, gnutls_free_func‐
14       tion free_func);
15

ARGUMENTS

17       gnutls_alloc_function alloc_func
18                   it's the default memory allocation function. Like malloc().
19
20       gnutls_alloc_function secure_alloc_func
21                   This is the memory allocation function that  will  be  used
22                   for sensitive data.
23
24       gnutls_is_secure_function is_secure_func
25                   a  function  that  returns  0  if  the  memory given is not
26                   secure. May be NULL.
27
28       gnutls_realloc_function realloc_func
29                   A realloc function
30
31       gnutls_free_function free_func
32                   The function that frees allocated data. Must accept a  NULL
33                   pointer.
34

DEPRECATED

36       since  3.3.0  it  is  no longer possible to replace the internally used
37       memory allocation functions
38
39       This is the function where you  set  the  memory  allocation  functions
40       gnutls  is  going  to  use.  By default the libc's allocation functions
41       (malloc(), free()), are used by gnutls, to allocate both sensitive  and
42       not  sensitive data.  This function is provided to set the memory allo‐
43       cation functions to something other than the defaults
44
45       This function must be called  before  gnutls_global_init()  is  called.
46       This function is not thread safe.
47

REPORTING BUGS

49       Report bugs to <bugs@gnutls.org>.
50       Home page: https://www.gnutls.org
51
52
54       Copyright © 2001-2019 Free Software Foundation, Inc., and others.
55       Copying  and  distribution  of this file, with or without modification,
56       are permitted in any medium  without  royalty  provided  the  copyright
57       notice and this notice are preserved.
58

SEE ALSO

60       The  full  documentation  for gnutls is maintained as a Texinfo manual.
61       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
62       visit
63
64       https://www.gnutls.org/manual/
65
66gnutls                              3.6.11  gnutls_global_set_mem_functions(3)
Impressum