client-c  0.7.0
kaa_base64.h File Reference
#include "../kaa_error.h"
+ Include dependency graph for kaa_base64.h:

Go to the source code of this file.

Functions

kaa_error_t kaa_base64_decode (const char *encoded_data, size_t encoded_data_length, char *decoded_data, size_t *decoded_data_length)
 Decode base64 encoded data. More...
 

Function Documentation

kaa_error_t kaa_base64_decode ( const char *  encoded_data,
size_t  encoded_data_length,
char *  decoded_data,
size_t *  decoded_data_length 
)

Decode base64 encoded data.

Parameters
[in]encoded_dataPointer to encoded data buffer
[in]encoded_data_lengthSize of encoded data buffer
[out]decoded_dataPointer to output decoded data buffer
[in,out]decoded_data_lengthSize of output buffer on [in] and size of decoded data on [out] base64_decode() checks that buffer for decoded data have enough length length ration is 3:4 (decoded/encoded)
Returns
Error code.