mirror of
https://github.com/rofl0r/proxychains-ng
synced 2025-01-08 22:22:52 +08:00
put base64 variable to the place it gets used
This commit is contained in:
parent
068e088a8b
commit
0f1bc719fd
@ -114,8 +114,6 @@ void pc_stringfromipv4(unsigned char *ip_buf_4_bytes, char *outbuf_16_bytes) {
|
|||||||
o[-1] = 0;
|
o[-1] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
||||||
|
|
||||||
static int poll_retry(struct pollfd *fds, nfds_t nfsd, int timeout) {
|
static int poll_retry(struct pollfd *fds, nfds_t nfsd, int timeout) {
|
||||||
int ret;
|
int ret;
|
||||||
int time_remain = timeout;
|
int time_remain = timeout;
|
||||||
@ -140,8 +138,8 @@ static int poll_retry(struct pollfd *fds, nfds_t nfsd, int timeout) {
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void encode_base_64(char *src, char *dest, int max_len) {
|
static void encode_base_64(char *src, char *dest, int max_len) {
|
||||||
|
static const char base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||||
int n, l, i;
|
int n, l, i;
|
||||||
l = strlen(src);
|
l = strlen(src);
|
||||||
max_len = (max_len - 1) / 4;
|
max_len = (max_len - 1) / 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user