Blame doc/functions/gnutls_load_file

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@deftypefun {int} {gnutls_load_file} (const char * @var{filename}, gnutls_datum_t * @var{data})
Packit Service 4684c1
@var{filename}: the name of the file to load
Packit Service 4684c1
Packit Service 4684c1
@var{data}: Where the file will be stored
Packit Service 4684c1
Packit Service 4684c1
This function will load a file into a datum. The data are
Packit Service 4684c1
zero terminated but the terminating null is not included in length.
Packit Service 4684c1
The returned data are allocated using @code{gnutls_malloc()} .
Packit Service 4684c1
Packit Service 4684c1
Note that this function is not designed for reading sensitive materials,
Packit Service 4684c1
such as private keys, on practical applications. When the reading fails
Packit Service 4684c1
in the middle, the partially loaded content might remain on memory.
Packit Service 4684c1
Packit Service 4684c1
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise
Packit Service 4684c1
an error code is returned.
Packit Service 4684c1
Packit Service 4684c1
Since 3.1.0
Packit Service 4684c1
@end deftypefun