]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Add cache shell functions
authorKurt Zeilenga <kurt@openldap.org>
Sun, 30 Mar 2003 16:47:09 +0000 (16:47 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 30 Mar 2003 16:47:09 +0000 (16:47 +0000)
libraries/libldap/Makefile.in
libraries/libldap/cache.c [new file with mode: 0644]
libraries/libldap/libldap.dsp
libraries/libldap_r/Makefile.in
libraries/libldap_r/libldap_r.dsp

index 2039056b1d9ac5532cdcd1be3a3074415b51c391..e143424d9639b5ad750845d0959fcf088d7167fa 100644 (file)
@@ -11,7 +11,7 @@ PROGRAMS = apitest dntest ftest ltest
 SRCS   = bind.c open.c result.c error.c compare.c search.c \
        controls.c messages.c references.c extended.c cyrus.c \
        modify.c add.c modrdn.c delete.c abandon.c \
-       sasl.c sbind.c kbind.c unbind.c cancel.c  \
+       sasl.c sbind.c kbind.c unbind.c cancel.c cache.c \
        filter.c free.c sort.c passwd.c whoami.c \
        getdn.c getentry.c getattr.c getvalues.c addentry.c \
        request.c os-ip.c url.c sortctrl.c vlvctrl.c \
@@ -20,7 +20,7 @@ SRCS  = bind.c open.c result.c error.c compare.c search.c \
 OBJS   = bind.lo open.lo result.lo error.lo compare.lo search.lo \
        controls.lo messages.lo references.lo extended.lo cyrus.lo \
        modify.lo add.lo modrdn.lo delete.lo abandon.lo \
-       sasl.lo sbind.lo kbind.lo unbind.lo cancel.lo \
+       sasl.lo sbind.lo kbind.lo unbind.lo cancel.lo cache.lo \
        filter.lo free.lo sort.lo passwd.lo whoami.lo \
        getdn.lo getentry.lo getattr.lo getvalues.lo addentry.lo \
        request.lo os-ip.lo url.lo sortctrl.lo vlvctrl.lo \
diff --git a/libraries/libldap/cache.c b/libraries/libldap/cache.c
new file mode 100644 (file)
index 0000000..61bf998
--- /dev/null
@@ -0,0 +1,85 @@
+/* $OpenLDAP$ */
+/*
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
+/*  Portions
+ *  Copyright (c) 1993 The Regents of the University of Michigan.
+ *  All rights reserved.
+ *
+ *  cache.c - just shell functions for the now defunct LDAP caching routines
+ *             to be deleted in the next "full" release
+ */
+
+#include "portable.h"
+
+#include <stdio.h>
+
+#include <ac/stdlib.h>
+
+#include <ac/socket.h>
+#include <ac/string.h>
+#include <ac/time.h>
+
+#include "ldap-int.h"
+
+int
+ldap_enable_cache( LDAP *ld, long timeout, ber_len_t maxmem )
+{
+       static int called = 0;
+       assert( ld != NULL );
+       assert( LDAP_VALID( ld ) );
+
+       if (!(called++)) {
+               fprintf( stderr, "ldap_enable_cache: function is obsoleted."
+       }
+
+       return -1;
+}
+
+void
+ldap_disable_cache( LDAP *ld )
+{
+}
+
+void
+ldap_set_cache_options( LDAP *ld, unsigned long opts )
+{
+}
+       
+void
+ldap_destroy_cache( LDAP *ld )
+{
+}
+
+void
+ldap_flush_cache( LDAP *ld )
+{
+}
+
+void
+ldap_uncache_request( LDAP *ld, int msgid )
+{
+}
+
+void
+ldap_uncache_entry( LDAP *ld, LDAP_CONST char *dn )
+{
+}
+
+void
+ldap_add_request_to_cache( LDAP *ld, ber_tag_t msgtype, BerElement *request )
+{
+}
+
+void
+ldap_add_result_to_cache( LDAP *ld, LDAPMessage *result )
+{
+}
+
+int
+ldap_check_cache( LDAP *ld, ber_tag_t msgtype, BerElement *request )
+{
+       return( -1 );
+}
+
index 3a69efbe7fcfd14457b4dcd419a0c717a025eec7..c457cd9c1c9baa6ac9d23dfbeec41abc874e43bf 100644 (file)
@@ -143,6 +143,10 @@ SOURCE=.\bind.c
 # End Source File
 # Begin Source File
 
+SOURCE=.\cache.c
+# End Source File
+# Begin Source File
+
 SOURCE=.\cancel.c
 # End Source File
 # Begin Source File
index 0e5c8b20b2c304166aff8406bc209e831ab547a3..cb3eb2f8532a89a3c0cefe9d81a36e0430a6ae91 100644 (file)
@@ -13,7 +13,7 @@ XXSRCS    = apitest.c test.c \
        bind.c open.c result.c error.c compare.c search.c \
        controls.c messages.c references.c extended.c cyrus.c \
        modify.c add.c modrdn.c delete.c abandon.c \
-       sasl.c sbind.c kbind.c unbind.c cancel.c \
+       sasl.c sbind.c kbind.c unbind.c cancel.c cache.c \
        filter.c free.c sort.c passwd.c whoami.c \
        getdn.c getentry.c getattr.c getvalues.c addentry.c \
        request.c os-ip.c url.c sortctrl.c vlvctrl.c \
@@ -28,7 +28,7 @@ OBJS  = threads.lo rdwr.lo tpool.lo  \
        bind.lo open.lo result.lo error.lo compare.lo search.lo \
        controls.lo messages.lo references.lo extended.lo cyrus.lo \
        modify.lo add.lo modrdn.lo delete.lo abandon.lo \
-       sasl.lo sbind.lo kbind.lo unbind.lo cancel.lo \
+       sasl.lo sbind.lo kbind.lo unbind.lo cancel.lo cache.lo \
        filter.lo free.lo sort.lo passwd.lo whoami.lo \
        getdn.lo getentry.lo getattr.lo getvalues.lo addentry.lo \
        request.lo os-ip.lo url.lo sortctrl.lo vlvctrl.lo \
index 365140f5d25327ba66976295c248206380d6b202..b7bc62f84e27d4ee240d738d8637cfb5f462fe9f 100644 (file)
@@ -144,6 +144,14 @@ SOURCE=..\libldap\bind.c
 # End Source File
 # Begin Source File
 
+SOURCE=..\libldap\cache.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\libldap\cancel.c
+# End Source File
+# Begin Source File
+
 SOURCE=..\libldap\charray.c
 # End Source File
 # Begin Source File