1999-09-09 03:06:24 +08:00
|
|
|
/* $OpenLDAP$ */
|
1998-08-09 08:43:13 +08:00
|
|
|
/*
|
|
|
|
* rcpt500.h: includes for rcpt500 (X.500 email query responder)
|
|
|
|
*
|
|
|
|
* 16 June 1992 by Mark C Smith
|
|
|
|
* Copyright (c) 1992 The Regents of The University of Michigan
|
|
|
|
* All Rights Reserved
|
|
|
|
*/
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
#include <ldap_cdefs.h>
|
|
|
|
|
|
|
|
LDAP_BEGIN_DECL
|
|
|
|
|
1998-08-09 08:43:13 +08:00
|
|
|
struct msginfo {
|
|
|
|
char *msg_subject;
|
|
|
|
char *msg_replyto; /* actually could be from From: line */
|
|
|
|
char *msg_date;
|
|
|
|
char *msg_messageid;
|
|
|
|
int msg_command;
|
|
|
|
char *msg_arg;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct command {
|
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
|
|
|
char *cmd_text; /* text for command, e.g. "HELP" */
|
|
|
|
/* pointer to handler function */
|
|
|
|
int (*cmd_handler) LDAP_P((struct msginfo *msgp, char *reply));
|
1998-08-09 08:43:13 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#define MAXSIZE 8096
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* functions
|
|
|
|
*/
|
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
|
|
|
int help_cmd LDAP_P((struct msginfo *msgp, char *reply));
|
|
|
|
int query_cmd LDAP_P((struct msginfo *msgp, char *reply));
|
1998-08-09 08:43:13 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* externs
|
|
|
|
*/
|
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
|
|
|
|
|
|
|
/* cmds.c */
|
1998-08-09 08:43:13 +08:00
|
|
|
extern struct command cmds[];
|
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
|
|
|
/* main.c */
|
|
|
|
extern int dosyslog;
|
|
|
|
#ifdef LDAP_CONNECTIONLESS
|
|
|
|
extern int do_cldap;
|
|
|
|
#endif
|
|
|
|
extern int derefaliases;
|
|
|
|
extern int sizelimit;
|
|
|
|
extern int rdncount;
|
|
|
|
extern int ldapport;
|
|
|
|
extern char *ldaphost;
|
|
|
|
extern char *searchbase;
|
|
|
|
extern char *dapuser;
|
|
|
|
extern char *filterfile;
|
|
|
|
extern char *templatefile;
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
LDAP_END_DECL
|