Hash :
a2080f65
Author :
Date :
2020-05-26T10:22:37
read-file: add RF_SENSITIVE flag * lib/read-file.h (RF_SENSITIVE): New define. * lib/read-file.c (fread_file, read_file): Take into account of RF_SENSITIVE flag. * modules/read-file (Depends-on): Add explicit_bzero. This adds an alternative behavior of those functions to explicitly clear the internal memory block when it becomes unused. This is useful for reading sensitive information from a file.
Description:
read_file() function: read the contents of a file into a string
Files:
lib/read-file.h
lib/read-file.c
m4/read-file.m4
Depends-on:
explicit_bzero
fopen-gnu
fstat
ftello
malloc-posix
realloc-posix
stdint
sys_stat
configure.ac:
gl_PREREQ_READ_FILE
Makefile.am:
lib_SOURCES += read-file.c
Include:
"read-file.h"
License:
LGPLv2+
Maintainer:
Simon Josefsson