[crypto,base64] fix sign warnings

This commit is contained in:
akallabeth 2024-07-22 14:41:58 +02:00
parent 325fb16301
commit 7d2afe4f5a
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
1 changed files with 4 additions and 4 deletions

View File

@ -23,8 +23,8 @@
#include <freerdp/crypto/crypto.h>
static const char enc_base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
static const char enc_base64url[] =
static const BYTE enc_base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
static const BYTE enc_base64url[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
static const signed char dec_base64url[] = {
@ -302,7 +302,7 @@ static const signed char dec_base64[] = {
-1, /* 127 177 7F 01111111 DEL &#127; Delete */
};
static INLINE char* base64_encode_ex(const char* WINPR_RESTRICT alphabet,
static INLINE char* base64_encode_ex(const BYTE* WINPR_RESTRICT alphabet,
const BYTE* WINPR_RESTRICT data, size_t length, BOOL pad,
BOOL crLf, size_t lineSize)
{
@ -391,7 +391,7 @@ static INLINE char* base64_encode_ex(const char* WINPR_RESTRICT alphabet,
return ret;
}
static INLINE char* base64_encode(const signed char* WINPR_RESTRICT alphabet,
static INLINE char* base64_encode(const BYTE* WINPR_RESTRICT alphabet,
const BYTE* WINPR_RESTRICT data, size_t length, BOOL pad)
{
return base64_encode_ex(alphabet, data, length, pad, FALSE, 64);