[MINOR] add encode/decode function for 30-bit integers from/to base64
authorWilly Tarreau <w@1wt.eu>
Thu, 7 Oct 2010 17:27:29 +0000 (19:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 30 Oct 2010 17:04:33 +0000 (19:04 +0200)
commitc01062beadca35d065088d397bbad1afd01c4b7e
treed6079aba5e990aa5bc9b74edd2a43c4868a948a3
parentf1348310e8205f49e65eb84e3c344188ff38232f
[MINOR] add encode/decode function for 30-bit integers from/to base64

These functions only require 5 chars to encode 30 bits, and don't expect
any padding. They will be used to encode dates in cookies.
(cherry picked from commit a7e2b5fc4612994c7b13bcb103a4a2c3ecd6438a)
include/common/base64.h
src/base64.c