]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/controls.c
Updates for MSVC 5.0. Fix libraries names to be ol{ber,dap,..}32.lib.
[openldap] / libraries / libldap / controls.c
index c00836e35e600c3b439c122fa816bb16691e0e1f..bac038e3048c8e6873f3e8356b695dd280d0b02e 100644 (file)
@@ -1,9 +1,15 @@
+/*
+ * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
 /*
  * LDAP controls
  */
 
 #include "portable.h"
 
+#include <stdlib.h>
+
 #include <ac/time.h>
 #include <ac/string.h>
 
@@ -105,7 +111,7 @@ LDAPControl *ldap_control_dup( LDAPControl *c )
        }
 
        if( c->ldctl_oid != NULL ) {
-               new->ldctl_oid = ldap_strdup( c->ldctl_oid );
+               new->ldctl_oid = strdup( c->ldctl_oid );
 
                if(new->ldctl_oid == NULL) {
                        free( new );
@@ -140,3 +146,9 @@ LDAPControl *ldap_control_dup( LDAPControl *c )
        new->ldctl_iscritical = c->ldctl_iscritical;
        return new;
 }
+
+/* get the controls from the BerElement */
+int ldap_get_ber_controls( BerElement *be, LDAPControl ***cp)
+{
+       return LDAP_NOT_SUPPORTED;
+}