Improve base64 encoding/decoding, add URL-safe variant.
authorGuus Sliepen <guus@tinc-vpn.org>
Tue, 28 May 2013 11:39:15 +0000 (13:39 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Tue, 28 May 2013 11:39:15 +0000 (13:39 +0200)
commitc3d357af6c73d538f7cbcaca293ebbca666d3a82
treea9dba14e5eed20ffd15908706d1416238a23bb78
parentad93dc3a4b89799e8d5c1154e1dacc5b9a31c83b
Improve base64 encoding/decoding, add URL-safe variant.

b64decode() now returns length 0 when an invalid character was encountered.
src/protocol_key.c
src/utils.c
src/utils.h