wpa_supplicant / hostapd
2.5
|
Base64 encoding/decoding (RFC1341) More...
Functions | |
unsigned char * | base64_encode (const unsigned char *src, size_t len, size_t *out_len) |
Base64 encode. More... | |
unsigned char * | base64_decode (const unsigned char *src, size_t len, size_t *out_len) |
Base64 decode. More... | |
Base64 encoding/decoding (RFC1341)
unsigned char* base64_decode | ( | const unsigned char * | src, |
size_t | len, | ||
size_t * | out_len | ||
) |
Base64 decode.
src | Data to be decoded |
len | Length of the data to be decoded |
out_len | Pointer to output length variable |
Caller is responsible for freeing the returned buffer.
unsigned char* base64_encode | ( | const unsigned char * | src, |
size_t | len, | ||
size_t * | out_len | ||
) |
Base64 encode.
src | Data to be encoded |
len | Length of the data to be encoded |
out_len | Pointer to output length variable, or NULL if not used |
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.