Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > bdcd72668be70f58bf0aa7c2102b0734 > files > 66

lib64apr-util-devel-1.2.12-4mdv2008.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Apache Portable Runtime Utility Library: include/apr_ldap_option.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.4 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul>
</div>
<h1>include/apr_ldap_option.h</h1><a href="apr__ldap__option_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Licensed to the Apache Software Foundation (ASF) under one or more</span>
<a name="l00002"></a>00002 <span class="comment"> * contributor license agreements.  See the NOTICE file distributed with</span>
<a name="l00003"></a>00003 <span class="comment"> * this work for additional information regarding copyright ownership.</span>
<a name="l00004"></a>00004 <span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span>
<a name="l00005"></a>00005 <span class="comment"> * (the "License"); you may not use this file except in compliance with</span>
<a name="l00006"></a>00006 <span class="comment"> * the License.  You may obtain a copy of the License at</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> *     http://www.apache.org/licenses/LICENSE-2.0</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
<a name="l00011"></a>00011 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
<a name="l00012"></a>00012 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
<a name="l00013"></a>00013 <span class="comment"> * See the License for the specific language governing permissions and</span>
<a name="l00014"></a>00014 <span class="comment"> * limitations under the License.</span>
<a name="l00015"></a>00015 <span class="comment"> */</span>
<a name="l00016"></a>00016 
<a name="l00021"></a>00021 <span class="preprocessor">#ifndef APR_LDAP_OPTION_H</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define APR_LDAP_OPTION_H</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00030"></a>00030 <span class="preprocessor">#include "<a class="code" href="apr__ldap_8h.html" title="APR-UTIL LDAP.">apr_ldap.h</a>"</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="preprocessor">#if APR_HAS_LDAP</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00034"></a>00034 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
<a name="l00036"></a>00036 <span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span>
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="comment">/*</span>
<a name="l00039"></a>00039 <span class="comment"> * The following defines handle the different TLS certificate</span>
<a name="l00040"></a>00040 <span class="comment"> * options available. If these options are missing, APR will try and</span>
<a name="l00041"></a>00041 <span class="comment"> * emulate support for this using the deprecated ldap_start_tls_s()</span>
<a name="l00042"></a>00042 <span class="comment"> * function.</span>
<a name="l00043"></a>00043 <span class="comment"> */</span>
<a name="l00048"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#ge3eda4797aebb6dadeb5876c0f7f4b0b">00048</a> <span class="preprocessor">#define APR_LDAP_OPT_TLS 0x6fff</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span>
<a name="l00053"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#ga36993968e0225cb175eb17039337433">00053</a> <span class="preprocessor">#define APR_LDAP_OPT_TLS_CERT 0x6ffe</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span>
<a name="l00058"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#g30949c4b417283ea02049267a5b7b1b1">00058</a> <span class="preprocessor">#define APR_LDAP_OPT_VERIFY_CERT 0x6ffd</span>
<a name="l00059"></a>00059 <span class="preprocessor"></span>
<a name="l00111"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#g90551ccd55675410d148e1396d708585">00111</a> <span class="preprocessor">#define APR_LDAP_CA_TYPE_UNKNOWN    0</span>
<a name="l00112"></a>00112 <span class="preprocessor"></span>
<a name="l00113"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#gb5336a116c3881aa68ea5fe81c6cebce">00113</a> <span class="preprocessor">#define APR_LDAP_CA_TYPE_DER        1</span>
<a name="l00114"></a>00114 <span class="preprocessor"></span>
<a name="l00115"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#g873a9f3a55f8345e79314bcff4d2da63">00115</a> <span class="preprocessor">#define APR_LDAP_CA_TYPE_BASE64     2</span>
<a name="l00116"></a>00116 <span class="preprocessor"></span>
<a name="l00117"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#gb52397cf2a484bf259c8057292baf277">00117</a> <span class="preprocessor">#define APR_LDAP_CA_TYPE_CERT7_DB   3</span>
<a name="l00118"></a>00118 <span class="preprocessor"></span>
<a name="l00119"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#ge31e900be314a4a41d6b4a80c77fc0a5">00119</a> <span class="preprocessor">#define APR_LDAP_CA_TYPE_SECMOD     4</span>
<a name="l00120"></a>00120 <span class="preprocessor"></span>
<a name="l00121"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#g330f63f481bdd6d1a2cd11b2f00931f9">00121</a> <span class="preprocessor">#define APR_LDAP_CERT_TYPE_UNKNOWN  5</span>
<a name="l00122"></a>00122 <span class="preprocessor"></span>
<a name="l00123"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#g83bb061671b300a894b9da953389ce5d">00123</a> <span class="preprocessor">#define APR_LDAP_CERT_TYPE_DER      6</span>
<a name="l00124"></a>00124 <span class="preprocessor"></span>
<a name="l00125"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#g4e1047465f7938aa4f18602289dbdb75">00125</a> <span class="preprocessor">#define APR_LDAP_CERT_TYPE_BASE64   7</span>
<a name="l00126"></a>00126 <span class="preprocessor"></span>
<a name="l00127"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#gabac1737dbe1c96cb71087cf3225cf33">00127</a> <span class="preprocessor">#define APR_LDAP_CERT_TYPE_KEY3_DB  8</span>
<a name="l00128"></a>00128 <span class="preprocessor"></span>
<a name="l00129"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#g126182df3d24a1144e661fd1c076de62">00129</a> <span class="preprocessor">#define APR_LDAP_CERT_TYPE_NICKNAME 9</span>
<a name="l00130"></a>00130 <span class="preprocessor"></span>
<a name="l00131"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#g4ec017388c41432a6a255ecb28e0ae2d">00131</a> <span class="preprocessor">#define APR_LDAP_KEY_TYPE_UNKNOWN   10</span>
<a name="l00132"></a>00132 <span class="preprocessor"></span>
<a name="l00133"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#g028ac0e4cb1e00fc43509d7d568b5495">00133</a> <span class="preprocessor">#define APR_LDAP_KEY_TYPE_DER       11</span>
<a name="l00134"></a>00134 <span class="preprocessor"></span>
<a name="l00135"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#g13aa9e6dbfe8aa898d139bfc7ae606d1">00135</a> <span class="preprocessor">#define APR_LDAP_KEY_TYPE_BASE64    12</span>
<a name="l00136"></a>00136 <span class="preprocessor"></span>
<a name="l00137"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#g6dda2a079c113e3d73b3dcae58b98357">00137</a> <span class="preprocessor">#define APR_LDAP_CERT_TYPE_PFX      13</span>
<a name="l00138"></a>00138 <span class="preprocessor"></span>
<a name="l00139"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#g643e937d04527c8d0001cd4ee92102e5">00139</a> <span class="preprocessor">#define APR_LDAP_KEY_TYPE_PFX       14</span>
<a name="l00140"></a>00140 <span class="preprocessor"></span>
<a name="l00151"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#gf933e3d717b8cf88b72bf45ff3906e24">00151</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group___a_p_r___util___l_d_a_p.html#gf933e3d717b8cf88b72bf45ff3906e24">apr_ldap_opt_tls_cert_t</a> <a class="code" href="group___a_p_r___util___l_d_a_p.html#gf933e3d717b8cf88b72bf45ff3906e24">apr_ldap_opt_tls_cert_t</a>;
<a name="l00152"></a>00152 <span class="keyword">struct </span><a class="code" href="group___a_p_r___util___l_d_a_p.html#gf933e3d717b8cf88b72bf45ff3906e24">apr_ldap_opt_tls_cert_t</a> {
<a name="l00153"></a>00153     <span class="keywordtype">int</span> type;
<a name="l00154"></a>00154     <span class="keyword">const</span> <span class="keywordtype">char</span> *path;
<a name="l00155"></a>00155     <span class="keyword">const</span> <span class="keywordtype">char</span> *password;
<a name="l00156"></a>00156 };
<a name="l00157"></a>00157 
<a name="l00183"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#g005b3c879760af5d38f9dbd2e910c695">00183</a> <span class="preprocessor">#define APR_LDAP_NONE 0</span>
<a name="l00184"></a>00184 <span class="preprocessor"></span>
<a name="l00185"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#g5e7057df19b0271f8776db8d9a5be863">00185</a> <span class="preprocessor">#define APR_LDAP_SSL 1</span>
<a name="l00186"></a>00186 <span class="preprocessor"></span>
<a name="l00187"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#ge3b6991b3392ca2061bad18a13a2802f">00187</a> <span class="preprocessor">#define APR_LDAP_STARTTLS 2</span>
<a name="l00188"></a>00188 <span class="preprocessor"></span>
<a name="l00189"></a><a class="code" href="group___a_p_r___util___l_d_a_p.html#gf3b98ab3a6da25e4f3d1a4ed17106960">00189</a> <span class="preprocessor">#define APR_LDAP_STOPTLS 3</span>
<a name="l00190"></a>00190 <span class="preprocessor"></span>
<a name="l00203"></a>00203 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(<span class="keywordtype">int</span>) <a class="code" href="group___a_p_r___util___l_d_a_p.html#gaeff4c9127a45e467490f8fb7648e946">apr_ldap_get_option</a>(apr_pool_t *pool,
<a name="l00204"></a>00204                                      LDAP *ldap,
<a name="l00205"></a>00205                                      <span class="keywordtype">int</span> option,
<a name="l00206"></a>00206                                      <span class="keywordtype">void</span> *outvalue,
<a name="l00207"></a>00207                                      <a class="code" href="structapr__ldap__err__t.html">apr_ldap_err_t</a> **result_err);
<a name="l00208"></a>00208 
<a name="l00225"></a>00225 <a class="code" href="group___a_p_r___util.html#g408498ed57031391c19bf360cc61733a">APU_DECLARE</a>(<span class="keywordtype">int</span>) <a class="code" href="group___a_p_r___util___l_d_a_p.html#gda266c693bc5ad7a336bd3965a09b7ba">apr_ldap_set_option</a>(apr_pool_t *pool,
<a name="l00226"></a>00226                                      LDAP *ldap,
<a name="l00227"></a>00227                                      <span class="keywordtype">int</span> option,
<a name="l00228"></a>00228                                      const <span class="keywordtype">void</span> *invalue,
<a name="l00229"></a>00229                                      <a class="code" href="structapr__ldap__err__t.html">apr_ldap_err_t</a> **result_err);
<a name="l00230"></a>00230 
<a name="l00231"></a>00231 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00232"></a>00232 <span class="preprocessor"></span>}
<a name="l00233"></a>00233 <span class="preprocessor">#endif</span>
<a name="l00234"></a>00234 <span class="preprocessor"></span>
<a name="l00235"></a>00235 <span class="preprocessor">#endif </span><span class="comment">/* APR_HAS_LDAP */</span>
<a name="l00236"></a>00236 
<a name="l00239"></a>00239 <span class="preprocessor">#endif </span><span class="comment">/* APR_LDAP_OPTION_H */</span>
<a name="l00240"></a>00240 
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 24 02:22:55 2008 for Apache Portable Runtime Utility Library by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address>
</body>
</html>