From: Guus Sliepen Date: Tue, 12 Jul 2011 20:54:49 +0000 (+0200) Subject: Make hexadecimal and base64 routines behave the same. X-Git-Tag: release-1.1pre2~15 X-Git-Url: https://www.tinc-vpn.org/git/browse?a=commitdiff_plain;h=06b8271ed5d56c9bd3de459d95907d0ef4f0ea3c;hp=06b8271ed5d56c9bd3de459d95907d0ef4f0ea3c;p=tinc Make hexadecimal and base64 routines behave the same. The length parameter for the encoding functions is the length of the binary input, and for the decoding functions it is the maximum size of the binary output. The return value is always the length of the resulting output, excluding the terminating NULL character for the encoding routines. All functions can encode and decode in-place. The encoding functions will always write a terminating NULL character, and the decoding functions will stop at a NULL character. ---