base64.c File Reference

#include "services.h"

Go to the source code of this file.

Functions

int b64_decode (char *src, char *target, size_t targsize)
int b64_encode (char *src, size_t srclength, char *target, size_t targsize)
long base64dec (char *b64)
long base64dects (char *ts)
char * base64enc (long i)
int decode_ip (char *buf)
char * encode_ip (unsigned char *ip)

Variables

char base64_to_int6_map []
char int6_to_base64_map []


Function Documentation

int b64_decode ( char *  src,
char *  target,
size_t  targsize 
)

Definition at line 165 of file base64.c.

Referenced by decode_ip().

int b64_encode ( char *  src,
size_t  srclength,
char *  target,
size_t  targsize 
)

Definition at line 106 of file base64.c.

Referenced by encode_ip().

long base64dec ( char *  b64  ) 

Definition at line 30 of file base64.c.

Referenced by base64dects().

long base64dects ( char *  ts  ) 

Definition at line 394 of file base64.c.

References Anope_Free, base64dec(), and myStrGetToken().

Referenced by do_sjoin(), and do_topic().

char* base64enc ( long  i  ) 

Definition at line 23 of file base64.c.

Referenced by unreal_cmd_join().

int decode_ip ( char *  buf  ) 

Definition at line 304 of file base64.c.

References b64_decode().

Referenced by anope_event_nick().

char* encode_ip ( unsigned char *  ip  ) 

Definition at line 283 of file base64.c.

References b64_encode(), and str_signed().


Variable Documentation

char base64_to_int6_map[]

Initial value:

 {
    -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,
    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -1, -1, -1, -1, -1, -1,
    -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
    25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1,
    -1, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50,
    51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, -1, 63, -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, -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, -1, -1
}

Definition at line 333 of file base64.c.

char int6_to_base64_map[]

Initial value:

 {
    '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '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',
    '{', '}'
}

Definition at line 322 of file base64.c.


Generated on Sun Dec 30 09:26:55 2007 for Anope by  doxygen 1.5.1-20070107