/*
+ * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted only
+ * as authorized by the OpenLDAP Public License. A copy of this
+ * license is available at http://www.OpenLDAP.org/license.html or
+ * in file LICENSE in the top-level directory of the distribution.
+ */
+/* Portions
* Copyright (c) 1990 Regents of the University of Michigan.
* All rights reserved.
*
/* We'll eventually release as 200 */
#define LDAP_VENDOR_VERSION 190
+/* OpenLDAP API Features */
+#define LDAP_API_FEATURE_X_OPENLDAP 1
+
/* include LDAP_API_FEATURE defines */
#include <ldap_features.h>
#define LDAP_TAG_MSGID 0x02L
/* need to add other LDAP_TAGs here */
+/* Overview of tag construction in ASN.1:
+ * _______
+ * Bit # | 8 7 | CLASS: UNIVERSAL 00
+ * APPLICATION 01
+ * CONTEXT-SPECIFIC 10
+ * PRIVATE 11
+ * _____
+ * | 6 | DATA-TYPE: PRIMITIVE 0
+ * CONSTRUCTED 1
+ * ___________
+ * | 5 ... 1 | TAG-NUMBER
+ */
+
+#define LDAP_TAG_NEWSUPERIOR 0x80L /* context-specific + primitive +
+ * tag # ==> [0]
+ */
+
/* possible operations a client can invoke */
#define LDAP_REQ_BIND 0x60L /* application + constructed */
#define LDAP_REQ_UNBIND 0x42L /* application + primitive */
char *lf_friendly;
} LDAPFriendlyMap;
-
-/*
- * handy macro to check whether LDAP struct is set up for CLDAP or not
- */
-#define LDAP_IS_CLDAP( ld ) ( (ld)->ld_sb.sb_naddr > 0 )
-
-
/*
* types for ldap URL handling
*/
int deleteoldrdn ));
LDAP_F int ldap_modrdn2_s LDAP_P(( LDAP *ld, char *dn, char *newrdn,
int deleteoldrdn));
-
+LDAP_F int ldap_rename2 LDAP_P(( LDAP *ld, char *dn, char *newrdn,
+ int deleteoldrdn, char *newSuperior ));
+LDAP_F int ldap_rename2_s LDAP_P(( LDAP *ld, char *dn, char *newrdn,
+ int deleteoldrdn, char *newSuperior));
/*
* in open.c:
*/
LDAP_F LDAPMessage *ldap_first_reference LDAP_P(( LDAP *ld, LDAPMessage *chain ));
LDAP_F LDAPMessage *ldap_next_reference LDAP_P(( LDAP *ld, LDAPMessage *ref ));
-LDAP_F int ldap_count_reference LDAP_P(( LDAP *ld, LDAPMessage *chain ));
+LDAP_F int ldap_count_references LDAP_P(( LDAP *ld, LDAPMessage *chain ));
LDAP_F int ldap_parse_reference LDAP_P((
LDAP *ld,
LDAPMessage *ref,