00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00020 #ifndef APR_LDAP_OPTION_H
00021 #define APR_LDAP_OPTION_H
00022
00029 #include "apr_ldap.h"
00030
00031 #if APR_HAS_LDAP
00032
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036
00037
00038
00039
00040
00041
00042
00047 #define APR_LDAP_OPT_TLS 0x6fff
00048
00052 #define APR_LDAP_OPT_TLS_CERT 0x6ffe
00053
00105 #define APR_LDAP_CA_TYPE_UNKNOWN 0
00106
00107 #define APR_LDAP_CA_TYPE_DER 1
00108
00109 #define APR_LDAP_CA_TYPE_BASE64 2
00110
00111 #define APR_LDAP_CA_TYPE_CERT7_DB 3
00112
00113 #define APR_LDAP_CA_TYPE_SECMOD 4
00114
00115 #define APR_LDAP_CERT_TYPE_UNKNOWN 5
00116
00117 #define APR_LDAP_CERT_TYPE_DER 6
00118
00119 #define APR_LDAP_CERT_TYPE_BASE64 7
00120
00121 #define APR_LDAP_CERT_TYPE_KEY3_DB 8
00122
00123 #define APR_LDAP_CERT_TYPE_NICKNAME 9
00124
00125 #define APR_LDAP_KEY_TYPE_UNKNOWN 10
00126
00127 #define APR_LDAP_KEY_TYPE_DER 11
00128
00129 #define APR_LDAP_KEY_TYPE_BASE64 12
00130
00131 #define APR_LDAP_CERT_TYPE_PFX 13
00132
00133 #define APR_LDAP_KEY_TYPE_PFX 14
00134
00145 typedef struct apr_ldap_opt_tls_cert_t apr_ldap_opt_tls_cert_t;
00146 struct apr_ldap_opt_tls_cert_t {
00147 int type;
00148 const char *path;
00149 const char *password;
00150 };
00151
00177 #define APR_LDAP_NONE 0
00178
00179 #define APR_LDAP_SSL 1
00180
00181 #define APR_LDAP_STARTTLS 2
00182
00183 #define APR_LDAP_STOPTLS 3
00184
00197 APU_DECLARE(int) apr_ldap_get_option(apr_pool_t *pool,
00198 LDAP *ldap,
00199 int option,
00200 void *outvalue,
00201 apr_ldap_err_t **result_err);
00202
00219 APU_DECLARE(int) apr_ldap_set_option(apr_pool_t *pool,
00220 LDAP *ldap,
00221 int option,
00222 const void *invalue,
00223 apr_ldap_err_t **result_err);
00224
00225 #ifdef __cplusplus
00226 }
00227 #endif
00228
00229 #endif
00230
00233 #endif
00234