Main Page | Modules | Namespace List | Data Structures | File List | Data Fields | Globals | Related Pages

include/apr_ldap_option.h

Go to the documentation of this file.
00001 /* Copyright 2000-2005 The Apache Software Foundation or its licensors, as 00002 * applicable. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 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 /* __cplusplus */ 00037 00038 /* 00039 * The following defines handle the different TLS certificate 00040 * options available. If these options are missing, APR will try and 00041 * emulate support for this using the deprecated ldap_start_tls_s() 00042 * function. 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 /* APR_HAS_LDAP */ 00236 00239 #endif /* APR_LDAP_OPTION_H */ 00240

Generated on Sun Nov 20 19:09:06 2005 for Apache Portable Runtime Utility Library by doxygen 1.3.8