Go to the source code of this file.
Defines | |
#define | BASE64_h |
Functions | |
unsigned char * | base64_decode (const unsigned char *src, size_t len, size_t *out_len) |
unsigned char * | base64_encode (const unsigned char *src, size_t len, size_t *out_len) |
unsigned char* base64_decode | ( | const unsigned char * | src, | |
size_t | len, | |||
size_t * | out_len | |||
) |
unsigned char* base64_encode | ( | const unsigned char * | src, | |
size_t | len, | |||
size_t * | out_len | |||
) |
base64_encode - Base64 encode : Data to be encoded : Length of the data to be encoded : Pointer to output length variable, or NULL if not used Returns: Allocated buffer of out_len bytes of encoded data, or NULL on failure
Caller is responsible for freeing the returned buffer. Returned buffer is nul terminated to make it easier to use as a C string. The nul terminator is not included in out_len.