]> git.sur5r.net Git - openldap/blob - libraries/libldap/cache.c
Add more password file support
[openldap] / libraries / libldap / cache.c
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
4  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5  */
6 /*  Portions
7  *  Copyright (c) 1993 The Regents of the University of Michigan.
8  *  All rights reserved.
9  *
10  *  cache.c - just shell functions for the now defunct LDAP caching routines
11  *              to be deleted in the next "full" release
12  */
13
14 #include "portable.h"
15
16 #include <stdio.h>
17
18 #include <ac/stdlib.h>
19
20 #include <ac/socket.h>
21 #include <ac/string.h>
22 #include <ac/time.h>
23
24 #include "ldap-int.h"
25
26 int
27 ldap_enable_cache( LDAP *ld, long timeout, ber_len_t maxmem )
28 {
29         static int called = 0;
30         assert( ld != NULL );
31         assert( LDAP_VALID( ld ) );
32
33         if (!(called++)) {
34                 fprintf( stderr, "ldap_enable_cache: routine is obsoleted.\n");
35         }
36
37         return -1;
38 }
39
40 void
41 ldap_disable_cache( LDAP *ld )
42 {
43 }
44
45 void
46 ldap_set_cache_options( LDAP *ld, unsigned long opts )
47 {
48 }
49         
50 void
51 ldap_destroy_cache( LDAP *ld )
52 {
53 }
54
55 void
56 ldap_flush_cache( LDAP *ld )
57 {
58 }
59
60 void
61 ldap_uncache_request( LDAP *ld, int msgid )
62 {
63 }
64
65 void
66 ldap_uncache_entry( LDAP *ld, LDAP_CONST char *dn )
67 {
68 }
69
70 void
71 ldap_add_request_to_cache( LDAP *ld, ber_tag_t msgtype, BerElement *request )
72 {
73 }
74
75 void
76 ldap_add_result_to_cache( LDAP *ld, LDAPMessage *result )
77 {
78 }
79
80 int
81 ldap_check_cache( LDAP *ld, ber_tag_t msgtype, BerElement *request )
82 {
83         return( -1 );
84 }
85