D:/opendownloadmanager/ODM-1.x/InetFile/cURL_lib/base64.c File Reference

#include "setup.h"
#include <stdlib.h>
#include <string.h>
#include <curl/mprintf.h>
#include "urldata.h"
#include "easyif.h"
#include "base64.h"
#include "memory.h"
#include "memdebug.h"

Go to the source code of this file.

Defines

#define _MPRINTF_REPLACE

Functions

static void decodeQuantum (unsigned char *dest, const char *src)
size_t Curl_base64_decode (const char *src, unsigned char **outptr)
size_t Curl_base64_encode (struct SessionHandle *data, const char *inp, size_t insize, char **outptr)

Variables

static const char table64 []


Define Documentation

#define _MPRINTF_REPLACE

Definition at line 40 of file base64.c.


Function Documentation

size_t Curl_base64_decode ( const char *  src,
unsigned char **  outptr 
)

Definition at line 81 of file base64.c.

References decodeQuantum(), malloc, and NULL.

size_t Curl_base64_encode ( struct SessionHandle data,
const char *  inp,
size_t  insize,
char **  outptr 
)

Definition at line 143 of file base64.c.

References Curl_convert_to_network(), CURLE_OK, free, malloc, NULL, and table64.

Referenced by Curl_ldap(), Curl_output_basic(), and Curl_output_digest().

static void decodeQuantum ( unsigned char *  dest,
const char *  src 
) [static]

Definition at line 55 of file base64.c.

References NULL, and table64.

Referenced by Curl_base64_decode().


Variable Documentation

const char table64[] [static]

Initial value:

  "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"

Definition at line 52 of file base64.c.

Referenced by Curl_base64_encode(), and decodeQuantum().


Generated on Sun May 25 00:20:04 2008 by  doxygen 1.5.6