-void send_ldap_result LDAP_P(( Connection *conn, Operation *op, int err, char *matched,
- char *text ));
-void send_ldap_search_result LDAP_P(( Connection *conn, Operation *op, int err,
- char *matched, char *text, int nentries ));
-void close_connection LDAP_P(( Connection *conn, int opconnid, int opid ));
+struct berval **get_entry_referrals LDAP_P((
+ Backend *be, Connection *conn, Operation *op,
+ Entry *e ));
+
+void send_ldap_result LDAP_P((
+ Connection *conn, Operation *op,
+ int err, char *matched, char *text,
+ struct berval **refs,
+ LDAPControl **ctrls ));
+
+void send_ldap_disconnect LDAP_P((
+ Connection *conn, Operation *op,
+ int err, char *text ));
+
+void send_search_result LDAP_P((
+ Connection *conn, Operation *op,
+ int err, char *matched, char *text,
+ struct berval **refs,
+ LDAPControl **ctrls,
+ int nentries ));
+
+int send_search_reference LDAP_P((
+ Backend *be, Connection *conn, Operation *op,
+ Entry *e, struct berval **refs, int scope,
+ LDAPControl **ctrls,
+ struct berval ***v2refs ));
+
+int send_search_entry LDAP_P((
+ Backend *be, Connection *conn, Operation *op,
+ Entry *e, char **attrs, int attrsonly,
+ LDAPControl **ctrls ));
+
+int str2result LDAP_P(( char *s,
+ int *code, char **matched, char **info ));
+
+/*
+ * sasl.c
+ */
+extern char **supportedSASLMechanisms;
+
+int sasl_init(void);
+int sasl_destroy(void);