1gnutls_load_file(3)                 gnutls                 gnutls_load_file(3)
2
3
4

NAME

6       gnutls_load_file - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int gnutls_load_file(const char * filename, gnutls_datum_t * data);
12

ARGUMENTS

14       const char * filename
15                   the name of the file to load
16
17       gnutls_datum_t * data
18                   Where the file will be stored
19

DESCRIPTION

21       This  function  will load a file into a datum. The data are zero termi‐
22       nated but the terminating null is not included in length.  The returned
23       data are allocated using gnutls_malloc().
24
25       Note  that  this function is not designed for reading sensitive materi‐
26       als, such as private keys, on practical applications. When the  reading
27       fails  in the middle, the partially loaded content might remain on mem‐
28       ory.
29

RETURNS

31       On success, GNUTLS_E_SUCCESS (0) is returned, otherwise an  error  code
32       is returned.
33
34       Since 3.1.0
35

REPORTING BUGS

37       Report bugs to <bugs@gnutls.org>.
38       Home page: https://www.gnutls.org
39
40
42       Copyright © 2001- Free Software Foundation, Inc., and others.
43       Copying  and  distribution  of this file, with or without modification,
44       are permitted in any medium without royalty provided the copyright  no‐
45       tice and this notice are preserved.
46

SEE ALSO

48       The  full  documentation  for gnutls is maintained as a Texinfo manual.
49       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
50       visit
51
52       https://www.gnutls.org/manual/
53
54gnutls                               3.7.8                 gnutls_load_file(3)
Impressum