3 * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
6 * Redistribution and use in source and binary forms are permitted only
7 * as authorized by the OpenLDAP Public License. A copy of this
8 * license is available at http://www.OpenLDAP.org/license.html or
9 * in file LICENSE in the top-level directory of the distribution.
15 #include <ldap_cdefs.h>
16 #include <lber_types.h>
19 * Include file for LDAP utility routine
22 /* n octets encode into ceiling(n/3) * 4 bytes */
23 /* Avoid floating point math by through extra padding */
25 #define LUTIL_BASE64_ENCODE_LEN(n) ((n)/3 * 4 + 4)
26 #define LUTIL_BASE64_DECODE_LEN(n) ((n)/4 * 3)
30 /* ISC Base64 Routines */
34 lutil_b64_ntop LDAP_P((
35 unsigned char const *,
41 lutil_b64_pton LDAP_P((
54 lutil_entorpy LDAP_P((
63 const char **methods ));
65 extern const char* lutil_passwd_schemes[];
68 lutil_passwd_scheme LDAP_P((char *scheme));
72 lutil_progname LDAP_P((
79 lutil_pair( LBER_SOCKET_T sd[2] );