mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-21 14:00:51 +03:00
committed by
Kamil Dudka
parent
7934c9ce2a
commit
1fc7c8571e
11
src/misc.c
11
src/misc.c
@@ -235,17 +235,6 @@ void _libssh2_store_str(unsigned char **buf, const char *str, size_t len)
|
|||||||
|
|
||||||
/* Base64 Conversion */
|
/* Base64 Conversion */
|
||||||
|
|
||||||
static const char base64_table[] =
|
|
||||||
{
|
|
||||||
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
|
|
||||||
'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
|
|
||||||
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
|
|
||||||
'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
|
|
||||||
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/', '\0'
|
|
||||||
};
|
|
||||||
|
|
||||||
static const char base64_pad = '=';
|
|
||||||
|
|
||||||
static const short base64_reverse_table[256] = {
|
static const short base64_reverse_table[256] = {
|
||||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||||
|
|||||||
Reference in New Issue
Block a user