]> git.sur5r.net Git - openldap/commitdiff
Fix EXPIRE/GRACE ber tags
authorHoward Chu <hyc@openldap.org>
Fri, 21 Apr 2006 23:47:53 +0000 (23:47 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 21 Apr 2006 23:47:53 +0000 (23:47 +0000)
libraries/libldap/ppolicy.c

index 8898a9f0cd92dbd89a94d9674bd7d02b8791ac0b..0de4e20abc7b5542a702100e01020375015d5df3 100644 (file)
 
 #ifdef LDAP_CONTROL_PASSWORDPOLICYREQUEST
 
-#define PPOLICY_WARNING 0xa0L
-#define PPOLICY_ERROR 0xa1L
+/* IMPLICIT TAGS, all context-specific */
+#define PPOLICY_WARNING 0xa0L  /* constructed + 0 */
+#define PPOLICY_ERROR 0xa1L            /* constructed + 1 */
 
-#define PPOLICY_EXPIRE 0xa0L
-#define PPOLICY_GRACE  0xa1L
+#define PPOLICY_EXPIRE 0x80L   /* primitive + 0 */
+#define PPOLICY_GRACE  0x81L   /* primitive + 1 */
 
 /*---
    ldap_create_passwordpolicy_control