summaryrefslogtreecommitdiff
path: root/lib/cert-cred-rawpk.c
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2020-05-25 18:37:51 +0200
committerDaiki Ueno <ueno@gnu.org>2020-05-29 17:24:34 +0200
commit5b4989dc8e292b4a7e66ee3a1d6be7ad3abf6654 (patch)
tree127c803c30f6a086de824b08c7ea31f9415bcdbe /lib/cert-cred-rawpk.c
parent43349cda523f90bc97e43dd86ca1171262a0086c (diff)
downloadgnutls-5b4989dc8e292b4a7e66ee3a1d6be7ad3abf6654.tar.gz
gnulib: update git submodule
This brings in the new fopen-gnu module and the RF_SENSITIVE flag for fread_file and read_file. This also adds the following changes to be consistent with the latest changes in Gnulib: - the callers of fread_file and read_file to be adjusted for the FLAGS argument - "attribute.h" needs to be used extensively Signed-off-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'lib/cert-cred-rawpk.c')
-rw-r--r--lib/cert-cred-rawpk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cert-cred-rawpk.c b/lib/cert-cred-rawpk.c
index cfa65eb318..1d086156ab 100644
--- a/lib/cert-cred-rawpk.c
+++ b/lib/cert-cred-rawpk.c
@@ -292,7 +292,7 @@ int gnutls_certificate_set_rawpk_key_file(gnutls_certificate_credentials_t cred,
} else {
/* Read our raw public-key into memory from file */
- rawpubkey.data = (void*) read_binary_file(rawpkfile, &key_size);
+ rawpubkey.data = (void*) read_file(rawpkfile, RF_BINARY, &key_size);
if (rawpubkey.data == NULL) {
gnutls_privkey_deinit(privkey);