]> git.sur5r.net Git - openldap/blob - servers/slapd/tools/mimic.c
a3a7d603090e793b38d15b9310adff232f71308d
[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_extended(
44     Connection  *conn,
45     Operation   *op,
46     ber_int_t   err,
47     const char  *matched,
48     const char  *text,
49     char        *rspoid,
50         struct berval *rspdata,
51         LDAPControl **ctrls
52 )
53 {
54         assert(0);
55 }
56
57 void
58 send_ldap_sasl(
59     Connection  *conn,
60     Operation   *op,
61     ber_int_t   err,
62     const char  *matched,
63     const char  *text,
64         LDAPControl **ctrls,
65         struct berval *cred
66 )
67 {
68         assert(0);
69 }
70
71 void
72 send_ldap_result(
73         Connection  *conn, 
74         Operation   *op,
75         ber_int_t     err,
76         const char    *matched,
77         const char    *text,
78         struct berval **refs,
79         LDAPControl **ctrls
80 )        
81 {
82         assert(0);
83 }
84
85 void
86 send_search_result(
87         Connection  *conn, 
88         Operation   *op,
89         ber_int_t     err,
90         const char    *matched,
91         const char    *text,
92         struct berval **refs,
93         LDAPControl **ctrls,
94         int             nentries
95 )        
96 {
97         assert(0);
98 }
99
100 int
101 send_search_entry(
102         Backend *be,
103         Connection  *conn, 
104         Operation   *op,
105         Entry   *e,
106         char    **attrs,
107         int             attrsonly,
108         LDAPControl **ctrls
109 )        
110 {
111         assert(0);
112         return -1;
113 }
114
115 int send_search_reference(
116         Backend *be,
117         Connection  *conn, 
118         Operation   *op,
119         Entry   *e,
120         struct berval **refs,
121         int scope,
122         LDAPControl **ctrls,
123         struct berval ***v2refs
124 )
125 {
126         assert(0);
127         return -1;
128 }
129
130 struct berval **get_entry_referrals(
131         Backend *be, Connection *conn, Operation *op, Entry *e )
132 {
133         assert(0);
134         return NULL;
135 }
136
137 int sasl_init(void) {
138         return 0;
139 }
140
141 int sasl_destroy(void) {
142         return 0;
143 }