diff options
author | Daiki Ueno <ueno@gnu.org> | 2020-05-25 15:33:49 +0200 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2020-05-30 11:10:12 +0200 |
commit | 1976600876a3f0724b52c61d96998560dc4c0acb (patch) | |
tree | b210698ae0df0a068e428f019fed841aa6beae50 /lib | |
parent | a807044bd00658d36a2d507dbe3744280a0a9cf9 (diff) | |
download | gnutls-1976600876a3f0724b52c61d96998560dc4c0acb.tar.gz |
gnutls_load_file: document limitation regarding partial failure
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/file.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/file.c b/lib/file.c index 03aa265c38..ed044ff842 100644 --- a/lib/file.c +++ b/lib/file.c @@ -46,6 +46,10 @@ int _gnutls_file_exists(const char *file) * zero terminated but the terminating null is not included in length. * The returned data are allocated using gnutls_malloc(). * + * Note that this function is not designed for reading sensitive materials, + * such as private keys, on practical applications. When the reading fails + * in the middle, the partially loaded content might remain on memory. + * * Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise * an error code is returned. * |