Mercurial > trustbridge
diff 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 |
line wrap: on
line diff
--- a/common/strhelp.h Fri Mar 28 14:18:53 2014 +0000 +++ b/common/strhelp.h Fri Mar 28 14:20:08 2014 +0000 @@ -84,6 +84,14 @@ * The memory allocated for dest needs to be free'd by the * caller. * + * _Input warning:_ + * If the input contains invalid base64 characters an error + * is returned. + * + * If the input is invalid base64 but consists of valid + * base64 characters _no error_ is returned and dst contains + * the valid input up to the error. + * * @param [out] dst Pointer to the destination. Needs to be NULL * @param [out] dst_size Size allocated for the destination. * @param [in] src Pointer to the base64 encoded data.