Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

wbxml_base64.c File Reference

Base64 encoding/decoding functions. More...

#include <string.h>
#include "wbxml.h"

Include dependency graph for wbxml_base64.c:

Include dependency graph

Go to the source code of this file.

Functions

unsigned char * wbxml_base64_encode (const unsigned char *buffer, int len)
int wbxml_base64_decode (const unsigned char *buffer, unsigned char **result)

Variables

const unsigned char pr2six [256]
const char basis_64 [] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"


Detailed Description

Base64 encoding/decoding functions.

Author:
Aymerick Jéhanne <libwbxml@jehanne.org>
Date:
01/11/03

Note:
Code adapted from APR library (http://apr.apache.org/)

Definition in file wbxml_base64.c.


Function Documentation

int wbxml_base64_decode const unsigned char *    buffer,
unsigned char **    result
 

Definition at line 113 of file wbxml_base64.c.

References NULL, pr2six, WB_LONG, WB_UTINY, and wbxml_malloc().

unsigned char* wbxml_base64_encode const unsigned char *    buffer,
int    len
 

Definition at line 71 of file wbxml_base64.c.

References basis_64, NULL, WB_LONG, WB_UTINY, and wbxml_malloc().


Variable Documentation

const char basis_64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" [static]
 

Base64 table

Definition at line 63 of file wbxml_base64.c.

Referenced by wbxml_base64_encode().

const unsigned char pr2six[256] [static]
 

Initial value:

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

Definition at line 41 of file wbxml_base64.c.

Referenced by wbxml_base64_decode().


Generated on Mon Nov 24 20:09:44 2003 for WBXML Library by doxygen1.3-rc1