comparison common/strhelp.h @ 239:6b4ad6ccc48e

Change the specification of str_b64_decode so that it matches the way how polarssl handles base64 decoding.
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 28 Mar 2014 14:20:08 +0000
parents 1f44aae4528e
children c596568fa45b
comparison
equal deleted inserted replaced
238:dd417a2ff9cd 239:6b4ad6ccc48e
82 /** @brief decode base64 encoded data 82 /** @brief decode base64 encoded data
83 * 83 *
84 * The memory allocated for dest needs to be free'd by the 84 * The memory allocated for dest needs to be free'd by the
85 * caller. 85 * caller.
86 * 86 *
87 * _Input warning:_
88 * If the input contains invalid base64 characters an error
89 * is returned.
90 *
91 * If the input is invalid base64 but consists of valid
92 * base64 characters _no error_ is returned and dst contains
93 * the valid input up to the error.
94 *
87 * @param [out] dst Pointer to the destination. Needs to be NULL 95 * @param [out] dst Pointer to the destination. Needs to be NULL
88 * @param [out] dst_size Size allocated for the destination. 96 * @param [out] dst_size Size allocated for the destination.
89 * @param [in] src Pointer to the base64 encoded data. 97 * @param [in] src Pointer to the base64 encoded data.
90 * @param [in] src_size Size of the encoded data. 98 * @param [in] src_size Size of the encoded data.
91 * 99 *

http://wald.intevation.org/projects/trustbridge/