Fixed slapd one-level search with subordinates
Fixed libldap DNS SRV buffer size bug
Fixed liblber write bugs (ITS#1983)
- Fixed liblutil b64 decode len bug (ITS#2055)
+ Fixed liblutil b64 length bugs (ITS#2055)
Added slapadd lastmod attribute support
Added ldap tools passfile (-y) support (ITS#2031)
Added ldapmodify LDIFv1 control: support (ITS#2060)
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_ENCODE_LEN(n) (((n)+2)/3 * 4)
#define LUTIL_BASE64_DECODE_LEN(n) (((n)+3)/4 * 3)
/* ISC Base64 Routines */