summaryrefslogtreecommitdiff
path: root/lib/verify-tofu.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-12-06 09:46:41 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-02-06 15:44:44 +0100
commitd75d9bdee6e65cb005c59b02ecac996affb61d62 (patch)
tree39c365c5bd22520f292acdb4dddf9cfe7cec2b56 /lib/verify-tofu.c
parent77bfb0cf1db4eade1b86ceadee9018fdfa1f0820 (diff)
downloadgnutls-d75d9bdee6e65cb005c59b02ecac996affb61d62.tar.gz
nettle base64_encode_raw: use cast to avoid warnings
Nettle switched prototypes for base64_encode_raw() as follows: -base64_encode_raw(uint8_t *dst, size_t length, const uint8_t *src); +base64_encode_raw(char *dst, size_t length, const uint8_t *src); That means we need to cast fist param to void if we want to avoid warnings on different platforms. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/verify-tofu.c')
-rw-r--r--lib/verify-tofu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/verify-tofu.c b/lib/verify-tofu.c
index 942d692650..310778629b 100644
--- a/lib/verify-tofu.c
+++ b/lib/verify-tofu.c
@@ -370,7 +370,7 @@ static int raw_pubkey_to_base64(const gnutls_datum_t * raw,
if (b64->data == NULL)
return gnutls_assert_val(GNUTLS_E_MEMORY_ERROR);
- base64_encode_raw(b64->data, raw->size, raw->data);
+ base64_encode_raw((void*)b64->data, raw->size, raw->data);
b64->size = size;
return 0;