jabberd2  2.3.3
Functions | Variables
base64.c File Reference
#include "util.h"

Go to the source code of this file.

Functions

int apr_base64_decode_len (const char *bufcoded, int buflen)
 
int apr_base64_decode_binary (unsigned char *bufplain, const char *bufcoded, int buflen)
 
int apr_base64_decode (char *bufplain, const char *bufcoded, int buflen)
 
int apr_base64_encode_len (int len)
 
int apr_base64_encode_binary (char *encoded, const unsigned char *string, int len)
 
int apr_base64_encode (char *encoded, const char *string, int len)
 
char * b64_encode (char *buf, int len)
 
char * b64_decode (char *buf)
 

Variables

static const unsigned char pr2six [256]
 
static const char basis_64 []
 

Function Documentation

int apr_base64_decode_len ( const char *  bufcoded,
int  buflen 
)

Definition at line 47 of file base64.c.

References pr2six.

Referenced by b64_decode().

int apr_base64_decode_binary ( unsigned char *  bufplain,
const char *  bufcoded,
int  buflen 
)

Definition at line 73 of file base64.c.

References pr2six.

Referenced by apr_base64_decode().

int apr_base64_decode ( char *  bufplain,
const char *  bufcoded,
int  buflen 
)

Definition at line 64 of file base64.c.

References apr_base64_decode_binary().

Referenced by b64_decode().

int apr_base64_encode_len ( int  len)

Definition at line 121 of file base64.c.

Referenced by b64_encode().

int apr_base64_encode_binary ( char *  encoded,
const unsigned char *  string,
int  len 
)

Definition at line 133 of file base64.c.

References basis_64.

Referenced by apr_base64_encode().

int apr_base64_encode ( char *  encoded,
const char *  string,
int  len 
)

Definition at line 128 of file base64.c.

References apr_base64_encode_binary().

Referenced by b64_encode().

char* b64_encode ( char *  buf,
int  len 
)

Definition at line 167 of file base64.c.

References apr_base64_encode(), and apr_base64_encode_len().

char* b64_decode ( char *  buf)

Definition at line 182 of file base64.c.

References apr_base64_decode(), and apr_base64_decode_len().

Variable Documentation

const unsigned char pr2six[256]
static

Definition at line 26 of file base64.c.

Referenced by apr_base64_decode_binary(), and apr_base64_decode_len().

const char basis_64[]
static
Initial value:
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"

Definition at line 118 of file base64.c.

Referenced by apr_base64_encode_binary().