client-c  0.8.1
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.

Copyright 2014-2016 CyberVision, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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.