00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00021
#ifndef APR_LDAP_OPTION_H
00022
#define APR_LDAP_OPTION_H
00023
00030
#include "apr_ldap.h"
00031
00032
#if APR_HAS_LDAP
00033
00034
#ifdef __cplusplus
00035
extern "C" {
00036
#endif
00037
00038
00039
00040
00041
00042
00043
00048 #define APR_LDAP_OPT_TLS 0x6fff
00049
00053 #define APR_LDAP_OPT_TLS_CERT 0x6ffe
00054
00058 #define APR_LDAP_OPT_VERIFY_CERT 0x6ffd
00059
00111 #define APR_LDAP_CA_TYPE_UNKNOWN 0
00112
00113 #define APR_LDAP_CA_TYPE_DER 1
00114
00115 #define APR_LDAP_CA_TYPE_BASE64 2
00116
00117 #define APR_LDAP_CA_TYPE_CERT7_DB 3
00118
00119 #define APR_LDAP_CA_TYPE_SECMOD 4
00120
00121 #define APR_LDAP_CERT_TYPE_UNKNOWN 5
00122
00123 #define APR_LDAP_CERT_TYPE_DER 6
00124
00125 #define APR_LDAP_CERT_TYPE_BASE64 7
00126
00127 #define APR_LDAP_CERT_TYPE_KEY3_DB 8
00128
00129 #define APR_LDAP_CERT_TYPE_NICKNAME 9
00130
00131 #define APR_LDAP_KEY_TYPE_UNKNOWN 10
00132
00133 #define APR_LDAP_KEY_TYPE_DER 11
00134
00135 #define APR_LDAP_KEY_TYPE_BASE64 12
00136
00137 #define APR_LDAP_CERT_TYPE_PFX 13
00138
00139 #define APR_LDAP_KEY_TYPE_PFX 14
00140
00151 typedef struct apr_ldap_opt_tls_cert_t apr_ldap_opt_tls_cert_t;
00152
struct apr_ldap_opt_tls_cert_t {
00153
int type;
00154
const char *path;
00155
const char *password;
00156 };
00157
00183 #define APR_LDAP_NONE 0
00184
00185 #define APR_LDAP_SSL 1
00186
00187 #define APR_LDAP_STARTTLS 2
00188
00189 #define APR_LDAP_STOPTLS 3
00190
00203
APU_DECLARE(
int) apr_ldap_get_option(apr_pool_t *pool,
00204 LDAP *ldap,
00205
int option,
00206
void *outvalue,
00207
apr_ldap_err_t **result_err);
00208
00225 APU_DECLARE(
int) apr_ldap_set_option(apr_pool_t *pool,
00226 LDAP *ldap,
00227
int option,
00228 const
void *invalue,
00229
apr_ldap_err_t **result_err);
00230
00231 #ifdef __cplusplus
00232 }
00233 #endif
00234
00235 #endif
00236
00239 #endif
00240