]> git.sur5r.net Git - openldap/commitdiff
Added LDAP_TAG_NEWSUPERIOR tag and a brief description about tag
authorJuan Gomez <gomez@openldap.org>
Wed, 3 Mar 1999 22:51:43 +0000 (22:51 +0000)
committerJuan Gomez <gomez@openldap.org>
Wed, 3 Mar 1999 22:51:43 +0000 (22:51 +0000)
construction which may be useful later when adding new tags. This
in preparation to support moddn v3.

include/ldap.h

index d3a61a721526de7811865e9f560c829901e8289b..154b98a9587a0c11dd6a2c4588aa13bcc54ef67d 100644 (file)
@@ -145,6 +145,23 @@ typedef struct ldapcontrol {
 #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   */