1999-08-31 09:17:01 +08:00
|
|
|
/* $OpenLDAP$ */
|
1998-12-29 03:51:35 +08:00
|
|
|
/*
|
1999-07-29 04:31:41 +08:00
|
|
|
* Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms are permitted only
|
|
|
|
* as authorized by the OpenLDAP Public License. A copy of this
|
|
|
|
* license is available at http://www.OpenLDAP.org/license.html or
|
|
|
|
* in file LICENSE in the top-level directory of the distribution.
|
1998-12-29 03:51:35 +08:00
|
|
|
*/
|
|
|
|
|
1998-09-03 05:31:35 +08:00
|
|
|
#ifndef _LUTIL_H
|
|
|
|
#define _LUTIL_H 1
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
#include <ldap_cdefs.h>
|
1999-08-31 13:18:06 +08:00
|
|
|
#include <lber_types.h>
|
|
|
|
|
1998-09-03 05:31:35 +08:00
|
|
|
/*
|
|
|
|
* Include file for LDAP utility routine
|
|
|
|
*/
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
LDAP_BEGIN_DECL
|
|
|
|
|
Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking. Retyped a number of functions, usually
to return void. Fixed a number of printf format errors.
API changes (in ldap/include):
Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.
A number of `extern' declarations are left (some added by protoize), to
be cleaned away later. Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-16 06:40:11 +08:00
|
|
|
/* ISC Base64 Routines */
|
|
|
|
/* base64.c */
|
1999-05-19 09:12:33 +08:00
|
|
|
|
|
|
|
LDAP_F( int )
|
|
|
|
lutil_b64_ntop LDAP_P((
|
|
|
|
unsigned char const *,
|
|
|
|
size_t,
|
|
|
|
char *,
|
|
|
|
size_t));
|
|
|
|
|
|
|
|
LDAP_F( int )
|
|
|
|
lutil_b64_pton LDAP_P((
|
|
|
|
char const *,
|
|
|
|
unsigned char *,
|
|
|
|
size_t));
|
|
|
|
|
Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking. Retyped a number of functions, usually
to return void. Fixed a number of printf format errors.
API changes (in ldap/include):
Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.
A number of `extern' declarations are left (some added by protoize), to
be cleaned away later. Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-16 06:40:11 +08:00
|
|
|
/* detach.c */
|
1999-05-19 09:12:33 +08:00
|
|
|
LDAP_F( void )
|
|
|
|
lutil_detach LDAP_P((
|
|
|
|
int debug,
|
|
|
|
int do_close));
|
|
|
|
|
Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking. Retyped a number of functions, usually
to return void. Fixed a number of printf format errors.
API changes (in ldap/include):
Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.
A number of `extern' declarations are left (some added by protoize), to
be cleaned away later. Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-16 06:40:11 +08:00
|
|
|
/* passwd.c */
|
1999-05-19 09:12:33 +08:00
|
|
|
LDAP_F( int )
|
|
|
|
lutil_passwd LDAP_P((
|
|
|
|
const char *cred,
|
1999-06-30 06:24:53 +08:00
|
|
|
const char *passwd,
|
|
|
|
const char **methods ));
|
Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking. Retyped a number of functions, usually
to return void. Fixed a number of printf format errors.
API changes (in ldap/include):
Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.
A number of `extern' declarations are left (some added by protoize), to
be cleaned away later. Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-16 06:40:11 +08:00
|
|
|
|
1999-08-18 03:00:59 +08:00
|
|
|
/* utils.c */
|
|
|
|
LDAP_F( char* )
|
|
|
|
lutil_progname LDAP_P((
|
|
|
|
const char* name,
|
|
|
|
int argc,
|
|
|
|
char *argv[] ));
|
|
|
|
|
1999-08-31 13:18:06 +08:00
|
|
|
/* sockpair.c */
|
|
|
|
LDAP_F( int )
|
|
|
|
lutil_pair( LBER_SOCKET_T sd[2] );
|
1999-08-18 03:00:59 +08:00
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
LDAP_END_DECL
|
1998-09-03 05:31:35 +08:00
|
|
|
|
|
|
|
#endif /* _LUTIL_H */
|