mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
Import ITS#2055 fix from HEAD - LUTIL_BASE64 encode/decode lengths
This commit is contained in:
parent
6098baf4d9
commit
4d87572226
@ -23,10 +23,10 @@
|
||||
LDAP_BEGIN_DECL
|
||||
|
||||
/* n octets encode into ceiling(n/3) * 4 bytes */
|
||||
/* Avoid floating point math by through extra padding */
|
||||
/* Avoid floating point math through extra padding */
|
||||
|
||||
#define LUTIL_BASE64_ENCODE_LEN(n) ((n)/3 * 4 + 4)
|
||||
#define LUTIL_BASE64_DECODE_LEN(n) ((n)/4 * 3)
|
||||
#define LUTIL_BASE64_ENCODE_LEN(n) (((n)+2)/3 * 4)
|
||||
#define LUTIL_BASE64_DECODE_LEN(n) (((n)+3)/4 * 3)
|
||||
|
||||
/* ISC Base64 Routines */
|
||||
/* base64.c */
|
||||
|
Loading…
Reference in New Issue
Block a user