]> git.sur5r.net Git - openldap/blob - servers/slapd/tools/mimic.c
Add OpenLDAP RCSid to *.[ch] in clients, libraries, and servers.
[openldap] / servers / slapd / tools / mimic.c
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
4  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5  */
6 /*
7  * Mimic unused interfaces of slapd...
8  * needed for linking.
9  */
10 #include "portable.h"
11
12 #include <stdio.h>
13
14 #include "../slap.h"
15
16 #ifdef WIN32
17 time_t starttime;
18 #endif
19
20 /* bogus ../results.c */
21 int str2result(
22         char* s,
23         int *code, 
24         char **matched,
25         char **info )
26 {
27         assert(0);
28     return 0;
29 }
30
31 void
32 send_ldap_disconnect(
33     Connection  *conn,
34     Operation   *op,
35     ber_int_t   err,
36     const char  *text
37 )
38 {
39         assert(0);
40 }
41
42 void
43 send_ldap_result(
44         Connection  *conn, 
45         Operation   *op,
46         int     err,
47         const char    *matched,
48         const char    *text,
49         struct berval **refs,
50         LDAPControl **ctrls
51 )        
52 {
53         assert(0);
54 }
55
56 void
57 send_search_result(
58         Connection  *conn, 
59         Operation   *op,
60         int     err,
61         const char    *matched,
62         const char    *text,
63         struct berval **refs,
64         LDAPControl **ctrls,
65         int             nentries
66 )        
67 {
68         assert(0);
69 }
70
71 int
72 send_search_entry(
73         Backend *be,
74         Connection  *conn, 
75         Operation   *op,
76         Entry   *e,
77         char    **attrs,
78         int             attrsonly,
79         LDAPControl **ctrls
80 )        
81 {
82         assert(0);
83         return -1;
84 }
85
86 int send_search_reference(
87         Backend *be,
88         Connection  *conn, 
89         Operation   *op,
90         Entry   *e,
91         struct berval **refs,
92         int scope,
93         LDAPControl **ctrls,
94         struct berval ***v2refs
95 )
96 {
97         assert(0);
98         return -1;
99 }
100
101 struct berval **get_entry_referrals(
102         Backend *be, Connection *conn, Operation *op, Entry *e )
103 {
104         assert(0);
105         return NULL;
106 }
107
108 int sasl_init(void) {
109         return 0;
110 }
111
112 int sasl_destroy(void) {
113         return 0;
114 }