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