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