diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-12-06 09:46:41 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-02-06 15:44:44 +0100 |
commit | d75d9bdee6e65cb005c59b02ecac996affb61d62 (patch) | |
tree | 39c365c5bd22520f292acdb4dddf9cfe7cec2b56 /lib/x509_b64.c | |
parent | 77bfb0cf1db4eade1b86ceadee9018fdfa1f0820 (diff) | |
download | gnutls-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/x509_b64.c')
-rw-r--r-- | lib/x509_b64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/x509_b64.c b/lib/x509_b64.c index 218f98a3ce..9a1037405b 100644 --- a/lib/x509_b64.c +++ b/lib/x509_b64.c @@ -102,7 +102,7 @@ _gnutls_fbase64_encode(const char *msg, const uint8_t * data, if (sizeof(tmpres) < size) return gnutls_assert_val(GNUTLS_E_BASE64_ENCODING_ERROR); - base64_encode_raw(tmpres, tmp, &data[i]); + base64_encode_raw((void*)tmpres, tmp, &data[i]); INCR(bytes, size + 1, max); ptr = &result->data[pos]; @@ -282,7 +282,7 @@ _gnutls_base64_decode(const uint8_t * data, size_t data_size, } ret = base64_decode_update(&ctx, &size, result->data, - pdata.size, pdata.data); + pdata.size, (void*)pdata.data); if (ret == 0 || size == 0) { gnutls_assert(); ret = GNUTLS_E_BASE64_DECODING_ERROR; |