mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
base64-helper: use casts to avoid warnings with various nettle3 versions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
@@ -30,7 +30,7 @@ void oc_base64_encode (const char *restrict in, size_t inlen,
|
||||
snprintf(out, outlen, "(too long data)");
|
||||
return;
|
||||
}
|
||||
base64_encode_raw((uint8_t*)out, inlen, (uint8_t*)in);
|
||||
base64_encode_raw((void*)out, inlen, (uint8_t*)in);
|
||||
out[raw] = 0;
|
||||
return;
|
||||
}
|
||||
@@ -52,7 +52,7 @@ oc_base64_decode(const uint8_t *src, unsigned src_length,
|
||||
*dst_length = len;
|
||||
}
|
||||
#else
|
||||
ret = base64_decode_update(&ctx, dst_length, dst, src_length, src);
|
||||
ret = base64_decode_update(&ctx, dst_length, dst, src_length, (void*)src);
|
||||
#endif
|
||||
|
||||
if (ret == 0)
|
||||
|
||||
Reference in New Issue
Block a user