]> git.sur5r.net Git - openldap/blob - include/lutil.h
e79dfb2e4cc3f5c69bd6e0cd7f5d66b27cf6a2b2
[openldap] / include / lutil.h
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
4  * All rights reserved.
5  *
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.
10  */
11
12 #ifndef _LUTIL_H
13 #define _LUTIL_H 1
14
15 #include <ldap_cdefs.h>
16 #include <lber_types.h>
17
18 /*
19  * Include file for LDAP utility routine
20  */
21
22 LDAP_BEGIN_DECL
23
24 /* ISC Base64 Routines */
25 /* base64.c */
26
27 LDAP_F( int )
28 lutil_b64_ntop LDAP_P((
29         unsigned char const *,
30         size_t,
31         char *,
32         size_t));
33
34 LDAP_F( int )
35 lutil_b64_pton LDAP_P((
36         char const *,
37         unsigned char *,
38         size_t));
39
40 /* detach.c */
41 LDAP_F( void )
42 lutil_detach LDAP_P((
43         int debug,
44         int do_close));
45
46 /* passwd.c */
47 LDAP_F( int )
48 lutil_passwd LDAP_P((
49         const char *cred,
50         const char *passwd,
51         const char **methods ));
52
53 extern const char* lutil_passwd_schemes[];
54
55 LDAP_F( int )
56 lutil_passwd_scheme LDAP_P((char *scheme));
57
58 /* utils.c */
59 LDAP_F( char* )
60 lutil_progname LDAP_P((
61         const char* name,
62         int argc,
63         char *argv[] ));
64
65 /* sockpair.c */
66 LDAP_F( int )
67 lutil_pair( LBER_SOCKET_T sd[2] );
68
69 LDAP_END_DECL
70
71 #endif /* _LUTIL_H */