From: Julio Sánchez Fernández Date: Tue, 13 Jul 1999 19:23:41 +0000 (+0000) Subject: Add option definitions for TLS X-Git-Tag: OPENLDAP_REL_ENG_2_BP~152 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=96ae2837f6627b144bb90e660e1b3c109ca1d251;p=openldap Add option definitions for TLS --- diff --git a/include/ldap.h b/include/ldap.h index 0b2f95ca35..e61ddaad10 100644 --- a/include/ldap.h +++ b/include/ldap.h @@ -111,6 +111,21 @@ LDAP_BEGIN_DECL #define LDAP_OPT_REFHOPLIMIT 0x5003 /* ref hop limit */ #define LDAP_OPT_MATCHED_DN 0x5004 /* should have been in draft */ +/* TLS options */ +#define LDAP_OPT_X_TLS_CACERTFILE 0x6001 +#define LDAP_OPT_X_TLS_CACERTDIR 0x6002 +#define LDAP_OPT_X_TLS_CERT 0x6003 +#define LDAP_OPT_X_TLS_CERTFILE 0x6004 +#define LDAP_OPT_X_TLS_KEYFILE 0x6005 +#define LDAP_OPT_X_TLS_REQUIRE_CERT 0x6006 +#define LDAP_OPT_X_TLS 0x6007 + +#define LDAP_OPT_X_TLS_NEVER 0 +#define LDAP_OPT_X_TLS_HARD 1 +#define LDAP_OPT_X_TLS_DEMAND 2 +#define LDAP_OPT_X_TLS_ALLOW 3 +#define LDAP_OPT_X_TLS_TRY 4 + /* on/off values */ #define LDAP_OPT_ON ((void *) 1) #define LDAP_OPT_OFF ((void *) 0)