b64.c File Reference


Detailed Description

HTTP embedded server library Copyright (C) 2006-2007 Olivier Singla http://mihl.sourceforge.net/.

Definition in file b64.c.

Include dependency graph for b64.c:

Go to the source code of this file.

Defines

#define _GNU_SOURCE
 I used the sources available from this location: http://base64.sourceforge.net/b64.c The author is: Bob Trower (08/04/01).

Functions

static void encodeblock (uint8_t in[3], uint8_t out[4], int len)
 Utility function for Content-Transfer-Encoding standard described in RFC1113.
void mihl_base64_encode (char const *bin, size_t size, char *bout, size_t maxlen)
 Base64 encode function.
static void decodeblock (uint8_t in[4], uint8_t out[3])
 Utility function for Content-Transfer-Encoding standard described in RFC1113 decode 4 '6-bit' characters into 3 8-bit binary bytes.
void mihl_base64_decode (char const *bin, size_t size, char *bout, size_t maxlen)
 Base64 decode function.


Define Documentation

#define _GNU_SOURCE

I used the sources available from this location: http://base64.sourceforge.net/b64.c The author is: Bob Trower (08/04/01).

Definition at line 17 of file b64.c.


Function Documentation

static void encodeblock ( uint8_t  in[3],
uint8_t  out[4],
int  len 
) [static]

Utility function for Content-Transfer-Encoding standard described in RFC1113.

Parameters:
[in] in input buffer
[out] out output buffer
length of the block

Definition at line 50 of file b64.c.

Referenced by mihl_base64_encode().

Here is the caller graph for this function:

void mihl_base64_encode ( char const *  bin,
size_t  size,
char *  bout,
size_t  maxlen 
)

Base64 encode function.

Parameters:
[in] bin Input buffer: string to encode
size Number of bytes in the input string
[out] Buffer to store the Base64 encoded output string
maxlen Max length for the encoded output string

Definition at line 67 of file b64.c.

References encodeblock().

Here is the call graph for this function:

static void decodeblock ( uint8_t  in[4],
uint8_t  out[3] 
) [static]

Utility function for Content-Transfer-Encoding standard described in RFC1113 decode 4 '6-bit' characters into 3 8-bit binary bytes.

Parameters:
[in] in input buffer
[out] out output buffer
length of the block

Definition at line 98 of file b64.c.

Referenced by mihl_base64_decode().

Here is the caller graph for this function:

void mihl_base64_decode ( char const *  bin,
size_t  size,
char *  bout,
size_t  maxlen 
)

Base64 decode function.

Parameters:
[in] bin Base64 encoded input string
size Number of bytes in the encoded input string
[out] Buffer to store the decoded output string
maxlen Max length for the decoded output string

Definition at line 112 of file b64.c.

References decodeblock().

Here is the call graph for this function:


Generated on Mon May 26 18:06:07 2008 for milh-example_2 by  doxygen 1.5.6