ELinks 0.18.0
base64.h File Reference
This graph shows which files directly or indirectly include this file:

Functions

unsigned char * base64_encode (unsigned char *)
unsigned char * base64_decode (const unsigned char *)
unsigned char * base64_encode_bin (unsigned char *, int, int *)
unsigned char * base64_decode_bin (const unsigned char *, int, int *)
 Decode a Base64 string.

Function Documentation

◆ base64_decode()

unsigned char * base64_decode ( const unsigned char * in)

◆ base64_decode_bin()

unsigned char * base64_decode_bin ( const unsigned char * in,
int inlen,
int * outlen )

Decode a Base64 string.

Parameters
inInput Base64 string
inlenLength of in, in bytes
[out]outlenLength of decoded string
Returns
the string decoded (must be freed by the caller) or NULL if an error occurred (syntax error or out of memory)

◆ base64_encode()

unsigned char * base64_encode ( unsigned char * in)

◆ base64_encode_bin()

unsigned char * base64_encode_bin ( unsigned char * in,
int inlen,
int * outlen )