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
24 /* n octets encode into ceiling(n/3) * 4 bytes */
25 /* Avoid floating point math by through extra padding */
27 #define LUTIL_BASE64_ENCODE_LEN(n) ((n)/3 * 4 + 4)
28 #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_entropy LDAP_P((
61 const char *passwd, /* stored password */
62 const char *cred, /* user supplied value */
63 const char **methods ));
66 lutil_passwd_generate LDAP_P((
68 const char *method ));
70 LIBLUTIL_F (const char *) lutil_passwd_schemes[];
73 lutil_passwd_scheme LDAP_P((char *scheme));
77 lutil_progname LDAP_P((
84 lutil_pair( LBER_SOCKET_T sd[2] );