]> git.sur5r.net Git - openldap/commitdiff
Add skeleton ldap_extended_operation routines.
authorKurt Zeilenga <kurt@openldap.org>
Mon, 31 May 1999 21:19:07 +0000 (21:19 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 31 May 1999 21:19:07 +0000 (21:19 +0000)
libraries/libldap/Makefile.in
libraries/libldap/extended.c [new file with mode: 0644]
libraries/libldap_r/Makefile.in

index 5c5cd30ca046532dcd7b8c218cda7005e7247198..3b03eb3f31e6286f2994cba4e95077771bdc94e4 100644 (file)
@@ -9,7 +9,7 @@ XLIBRARY = ../libldap.a
 PROGRAMS = apitest ltest ttest
 
 SRCS   = bind.c open.c result.c error.c compare.c search.c \
-       controls.c messages.c references.c \
+       controls.c messages.c references.c extended.c \
        modify.c add.c modrdn.c delete.c abandon.c ufn.c cache.c \
        getfilter.c sbind.c kbind.c unbind.c friendly.c cldap.c \
        free.c disptmpl.c srchpref.c dsparse.c tmplout.c sort.c \
@@ -17,7 +17,7 @@ SRCS  = bind.c open.c result.c error.c compare.c search.c \
        request.c getdxbyname.c os-ip.c url.c charset.c \
        init.c options.c print.c string.c util-int.c schema.c
 OBJS   = bind.lo open.lo result.lo error.lo compare.lo search.lo \
-       controls.lo messages.lo references.lo \
+       controls.lo messages.lo references.lo extended.lo \
        modify.lo add.lo modrdn.lo delete.lo abandon.lo ufn.lo cache.lo \
        getfilter.lo sbind.lo kbind.lo unbind.lo friendly.lo cldap.lo \
        free.lo disptmpl.lo srchpref.lo dsparse.lo tmplout.lo sort.lo \
diff --git a/libraries/libldap/extended.c b/libraries/libldap/extended.c
new file mode 100644 (file)
index 0000000..d9b221c
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
+
+#include "portable.h"
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <ac/socket.h>
+#include <ac/string.h>
+#include <ac/time.h>
+
+#include "ldap-int.h"
+
+int
+ldap_extended_operation(
+       LDAP                    *ld,
+       LDAP_CONST char *exoid,
+       struct berval   *exdata,
+       LDAPControl             **sctrls,
+       LDAPControl             **cctrls,
+       int                             *msgidp )
+{
+       Debug( LDAP_DEBUG_TRACE, "ldap_extended_operation\n", 0, 0, 0 );
+       return LDAP_NOT_SUPPORTED;
+}
+
+int
+ldap_extended_operation_s(
+       LDAP                    *ld,
+       LDAP_CONST char *exoid,
+       struct berval   *exdata,
+       LDAPControl             **sctrls,
+       LDAPControl             **cctrls,
+       char                    **retoidp,
+       struct berval   **retdatap )
+{
+       Debug( LDAP_DEBUG_TRACE, "ldap_extended_operation_s\n", 0, 0, 0 );
+       return LDAP_NOT_SUPPORTED;
+}
+
index 8f365570388848238816731ca5a102cb1d945b18..a070a8219a7d971a39d93478d33efa4920ba2720 100644 (file)
@@ -7,7 +7,7 @@ XLIBRARY = ../libldap_r.a
 PROGRAMS = apitest ltest ttest
 
 XXDIR = $(srcdir)/../libldap
-XXSRCS = apitest.c test.c tmpltest.c \
+XXSRCS = apitest.c test.c tmpltest.c extended.c \
        bind.c controls.c open.c result.c error.c compare.c search.c \
        modify.c add.c modrdn.c delete.c abandon.c ufn.c cache.c \
        getfilter.c sbind.c kbind.c unbind.c friendly.c cldap.c \
@@ -17,7 +17,8 @@ XXSRCS        = apitest.c test.c tmpltest.c \
        init.c options.c print.c string.c util-int.c schema.c
 SRCS   = thr_posix.c thr_cthreads.c thr_thr.c thr_lwp.c thr_nt.c \
        thr_sleep.c thr_stub.c rdwr.c
-OBJS   = bind.lo controls.lo open.lo result.lo error.lo compare.lo search.lo \
+OBJS   = extended.lo \
+       bind.lo controls.lo open.lo result.lo error.lo compare.lo search.lo \
        modify.lo add.lo modrdn.lo delete.lo abandon.lo ufn.lo cache.lo \
        getfilter.lo sbind.lo kbind.lo unbind.lo friendly.lo cldap.lo \
        free.lo disptmpl.lo srchpref.lo dsparse.lo tmplout.lo sort.lo \