You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2005/05/04 19:40:16 UTC
svn commit: r168155 [4/27] - in /httpd/site/trunk:
docs/apreq/docs/libapreq2/ xdocs/apreq/docs/libapreq2/
Modified: httpd/site/trunk/docs/apreq/docs/libapreq2/apreq__cookie_8h.html
URL: http://svn.apache.org/viewcvs/httpd/site/trunk/docs/apreq/docs/libapreq2/apreq__cookie_8h.html?rev=168155&r1=168154&r2=168155&view=diff
==============================================================================
--- httpd/site/trunk/docs/apreq/docs/libapreq2/apreq__cookie_8h.html (original)
+++ httpd/site/trunk/docs/apreq/docs/libapreq2/apreq__cookie_8h.html Wed May 4 10:40:10 2005
@@ -1,7 +1,7 @@
<html>
<head>
<link rel="stylesheet" type="text/css" href="dox.css" />
- <title>libapreq2-2.04-dev: libapreq2: src/apreq_cookie.h File Reference</title>
+ <title>libapreq2-2.05-dev: libapreq2: include/apreq_cookie.h File Reference</title>
</head>
<body>
<div id="page-header">
@@ -10,87 +10,54 @@
<a href="http://httpd.apache.org/apreq/">Request Library Subproject</a></p>
<p class="apache">Apache HTTP Server Request Library</p>
<img alt="" src="feather.gif" /></div>
-<!-- Generated by Doxygen 1.3.8 -->
-<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
-<h1>src/apreq_cookie.h File Reference</h1>Cookies and Jars. <a href="#_details">More...</a>
+<!-- Generated by Doxygen 1.4.2 -->
+<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
+<div class="nav">
+<a class="el" href="dir_000000.html">include</a></div>
+<h1>apreq_cookie.h File Reference</h1>Cookies and Jars. <a href="#_details">More...</a>
<p>
<code>#include "<a class="el" href="apreq_8h-source.html">apreq.h</a>"</code><br>
-<code>#include "<a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__tables_8h.html">apr_tables.h</a>"</code><br>
+<code>#include "<a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__time_8h.html">apr_time.h</a>"</code><br>
<p>
-<a href="apreq__cookie_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0>
+<a href="apreq__cookie_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
-<tr><td colspan=2><br><h2>Data Structures</h2></td></tr>
-<tr><td class="memItemLeft" nowrap align=right valign=top>struct </td><td class="memItemRight" valign=bottom><a class="el" href="structapreq__jar__t.html">apreq_jar_t</a></td></tr>
+<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="apreq__cookie_8h.html#a0">APREQ_COOKIE_MAX_LENGTH</a> 4096</td></tr>
-<tr><td class="mdescLeft"> </td><td class="mdescRight">This is the container class for libapreq cookies. <a href="structapreq__jar__t.html#_details">More...</a><br></td></tr>
-<tr><td class="memItemLeft" nowrap align=right valign=top>struct </td><td class="memItemRight" valign=bottom><a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a></td></tr>
+<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1" doxytag="apreq_cookie.h::apreq_cookie_t"></a>
+typedef <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="apreq__cookie_8h.html#a1">apreq_cookie_t</a></td></tr>
-<tr><td class="mdescLeft"> </td><td class="mdescRight">Cookie type, supporting both Netscape and RFC cookie specifications. <a href="structapreq__cookie__t.html#_details">More...</a><br></td></tr>
-<tr><td colspan=2><br><h2>Defines</h2></td></tr>
-<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="apreq__cookie_8h.html#a0">APREQ_COOKIE_VERSION_DEFAULT</a> APREQ_COOKIE_VERSION_NETSCAPE</td></tr>
-
-<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="apreq__cookie_8h.html#a1">APREQ_COOKIE_MAX_LENGTH</a> 4096</td></tr>
-
-<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><b>apreq_value_to_cookie</b>(ptr)</td></tr>
-
-<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a3" doxytag="apreq_cookie.h::apreq_cookie_name" ></a>
-#define </td><td class="memItemRight" valign=bottom><b>apreq_cookie_name</b>(c) ((c)->v.name)</td></tr>
-
-<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a4" doxytag="apreq_cookie.h::apreq_cookie_value" ></a>
-#define </td><td class="memItemRight" valign=bottom><b>apreq_cookie_value</b>(c) ((c)->v.data)</td></tr>
-
-<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a5" doxytag="apreq_cookie.h::apreq_jar_items" ></a>
-#define </td><td class="memItemRight" valign=bottom><b>apreq_jar_items</b>(j) <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__tables.html#gga4">apr_table_elts</a>(j->cookies)->nelts</td></tr>
-
-<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a6" doxytag="apreq_cookie.h::apreq_jar_nelts" ></a>
-#define </td><td class="memItemRight" valign=bottom><b>apreq_jar_nelts</b>(j) <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__tables.html#gga4">apr_table_elts</a>(j->cookies)->nelts</td></tr>
-
-<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a7" doxytag="apreq_cookie.h::apreq_add_cookie" ></a>
-#define </td><td class="memItemRight" valign=bottom><b>apreq_add_cookie</b>(j, c) apreq_jar_add(j,c)</td></tr>
-
-<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a8" doxytag="apreq_cookie.h::apreq_make_cookie" ></a>
-#define </td><td class="memItemRight" valign=bottom><b>apreq_make_cookie</b>(p, n, nl, v, vl) apreq_cookie_make(p,n,nl,v,vl)</td></tr>
-
-<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a9" doxytag="apreq_cookie.h::apreq_serialize_cookie" ></a>
-#define </td><td class="memItemRight" valign=bottom><b>apreq_serialize_cookie</b>(buf, len, c) apreq_cookie_serialize(c,buf,len)</td></tr>
-
-<tr><td colspan=2><br><h2>Typedefs</h2></td></tr>
-<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a10" doxytag="apreq_cookie.h::apreq_jar_t" ></a>
-typedef <a class="el" href="structapreq__jar__t.html">apreq_jar_t</a> </td><td class="memItemRight" valign=bottom><a class="el" href="apreq__cookie_8h.html#a10">apreq_jar_t</a></td></tr>
+<tr><td class="mdescLeft"> </td><td class="mdescRight">Cookie type, supporting both Netscape and RFC cookie specifications. <br></td></tr>
+<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a> <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="apreq__cookie_8h.html#a2">apreq_value_to_cookie</a> (const char *val)</td></tr>
-<tr><td class="mdescLeft"> </td><td class="mdescRight">This is the container class for libapreq cookies. <br></td></tr>
-<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a11" doxytag="apreq_cookie.h::apreq_cookie_t" ></a>
-typedef <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> </td><td class="memItemRight" valign=bottom><a class="el" href="apreq__cookie_8h.html#a11">apreq_cookie_t</a></td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a> unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="apreq__cookie_8h.html#a3">apreq_cookie_version</a> (const <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> *c)</td></tr>
-<tr><td class="mdescLeft"> </td><td class="mdescRight">Cookie type, supporting both Netscape and RFC cookie specifications. <br></td></tr>
-<tr><td colspan=2><br><h2>Enumerations</h2></td></tr>
-<tr><td class="memItemLeft" nowrap align=right valign=top>enum </td><td class="memItemRight" valign=bottom><a class="el" href="apreq__cookie_8h.html#a25">apreq_cookie_version_t</a> { <b>APREQ_COOKIE_VERSION_NETSCAPE</b>,
-<b>APREQ_COOKIE_VERSION_RFC</b>
- }</td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="apreq__cookie_8h.html#a4">apreq_cookie_version_set</a> (<a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> *c, unsigned v)</td></tr>
-<tr><td colspan=2><br><h2>Functions</h2></td></tr>
-<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="apreq__cookie_8h.html#a14">apreq_cookie</a> (const <a class="el" href="structapreq__jar__t.html">apreq_jar_t</a> *jar, const char *name)</td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a> unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="apreq__cookie_8h.html#a5">apreq_cookie_is_secure</a> (const <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> *c)</td></tr>
-<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="apreq__cookie_8h.html#a15">apreq_jar_add</a> (<a class="el" href="structapreq__jar__t.html">apreq_jar_t</a> *jar, const <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> *c)</td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="apreq__cookie_8h.html#a6">apreq_cookie_secure_on</a> (<a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> *c)</td></tr>
-<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structapreq__jar__t.html">apreq_jar_t</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="apreq__cookie_8h.html#a16">apreq_jar</a> (void *env, const char *hdr)</td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="apreq__cookie_8h.html#a7">apreq_cookie_secure_off</a> (<a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> *c)</td></tr>
-<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="apreq__cookie_8h.html#a17">apreq_cookie_make</a> (<a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__pools_8h.html#ga0">apr_pool_t</a> *pool, const char *name, const <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga7">apr_size_t</a> nlen, const char *value, const <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga7">apr_size_t</a> vlen)</td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a> unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="apreq__cookie_8h.html#a8">apreq_cookie_is_tainted</a> (const <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> *c)</td></tr>
-<tr><td class="memItemLeft" nowrap align=right valign=top><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__errno_8h.html#ga0">apr_status_t</a> </td><td class="memItemRight" valign=bottom><a class="el" href="apreq__cookie_8h.html#a18">apreq_cookie_attr</a> (<a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__pools_8h.html#ga0">apr_pool_t</a> *p, <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> *c, const char *attr, <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga7">apr_size_t</a> alen, const char *val, <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga7">apr_size_t</a> vlen)</td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="apreq__cookie_8h.html#a9">apreq_cookie_tainted_on</a> (<a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> *c)</td></tr>
-<tr><td class="memItemLeft" nowrap align=right valign=top>char * </td><td class="memItemRight" valign=bottom><a class="el" href="apreq__cookie_8h.html#a19">apreq_cookie_as_string</a> (const <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> *c, <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__pools_8h.html#ga0">apr_pool_t</a> *p)</td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="apreq__cookie_8h.html#a10">apreq_cookie_tainted_off</a> (<a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> *c)</td></tr>
-<tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="apreq__cookie_8h.html#a20">apreq_cookie_serialize</a> (const <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> *c, char *buf, <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga7">apr_size_t</a> len)</td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__errno.html#gga0">apr_status_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="apreq__cookie_8h.html#a11">apreq_parse_cookie_header</a> (<a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__pools.html#gga0">apr_pool_t</a> *pool, <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__tables.html#gga0">apr_table_t</a> *jar, const char *header)</td></tr>
-<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="apreq__cookie_8h.html#a21">apreq_cookie_expires</a> (<a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> *c, const char *time_str)</td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="apreq__cookie_8h.html#a12">apreq_cookie_make</a> (<a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__pools.html#gga0">apr_pool_t</a> *pool, const char *name, const <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#gga7">apr_size_t</a> nlen, const char *value, const <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#gga7">apr_size_t</a> vlen)</td></tr>
-<tr><td class="memItemLeft" nowrap align=right valign=top><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__errno_8h.html#ga0">apr_status_t</a> </td><td class="memItemRight" valign=bottom><a class="el" href="apreq__cookie_8h.html#a22">apreq_cookie_bake</a> (const <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> *c, void *env)</td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="apreq__cookie_8h.html#a13">apreq_cookie_as_string</a> (const <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> *c, <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__pools.html#gga0">apr_pool_t</a> *p)</td></tr>
-<tr><td class="memItemLeft" nowrap align=right valign=top><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__errno_8h.html#ga0">apr_status_t</a> </td><td class="memItemRight" valign=bottom><a class="el" href="apreq__cookie_8h.html#a23">apreq_cookie_bake2</a> (const <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> *c, void *env)</td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="apreq__cookie_8h.html#a14">apreq_cookie_serialize</a> (const <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> *c, char *buf, <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#gga7">apr_size_t</a> len)</td></tr>
-<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="apreq__cookie_8h.html#a25">apreq_cookie_version_t</a> </td><td class="memItemRight" valign=bottom><a class="el" href="apreq__cookie_8h.html#a24">apreq_ua_cookie_version</a> (void *env)</td></tr>
+<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="apreq__cookie_8h.html#a15">apreq_cookie_expires</a> (<a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> *c, const char *time_str)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
@@ -100,21 +67,21 @@
<dl compact><dt><b>See also:</b></dt><dd><a href="http://wp.netscape.com/newsref/std/cookie_spec.html">http://wp.netscape.com/newsref/std/cookie_spec.html</a> <p>
<a href="http://www.ietf.org/rfc/rfc2109.txt">http://www.ietf.org/rfc/rfc2109.txt</a> <p>
<a href="http://www.ietf.org/rfc/rfc2964.txt">http://www.ietf.org/rfc/rfc2964.txt</a> <p>
-<a href="http://www.ietf.org/rfc/rfc2965.txt">http://www.ietf.org/rfc/rfc2965.txt</a></dd></dl>
+<a href="http://www.ietf.org/rfc/rfc2965.txt">http://www.ietf.org/rfc/rfc2965.txt</a> </dd></dl>
<hr><h2>Define Documentation</h2>
-<a class="anchor" name="a1" doxytag="apreq_cookie.h::APREQ_COOKIE_MAX_LENGTH" ></a><p>
-<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+<a class="anchor" name="a0" doxytag="apreq_cookie.h::APREQ_COOKIE_MAX_LENGTH"></a><p>
+<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
- <td class="md" nowrap valign="top"> #define APREQ_COOKIE_MAX_LENGTH 4096 </td>
+ <td class="md" nowrap valign="top">#define APREQ_COOKIE_MAX_LENGTH 4096 </td>
</tr>
</table>
</td>
</tr>
</table>
-<table cellspacing=5 cellpadding=0 border=0>
+<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
@@ -122,22 +89,38 @@
<td>
<p>
-Maximum length of a single Set-Cookie(2) header </td>
+<dl compact><dt><b><a class="el" href="todo.html#_todo000001">Todo:</a></b></dt><dd>convert this macro to an <a class="el" href="structapreq__module__t.html">apreq_module_t</a> method.</dd></dl>
+Maximum length of a single Set-Cookie(2) header. </td>
</tr>
</table>
-<a class="anchor" name="a0" doxytag="apreq_cookie.h::APREQ_COOKIE_VERSION_DEFAULT" ></a><p>
-<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+<hr><h2>Function Documentation</h2>
+<a class="anchor" name="a13" doxytag="apreq_cookie.h::apreq_cookie_as_string"></a><p>
+<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
- <td class="md" nowrap valign="top"> #define APREQ_COOKIE_VERSION_DEFAULT APREQ_COOKIE_VERSION_NETSCAPE </td>
+ <td class="md" nowrap valign="top">char* apreq_cookie_as_string </td>
+ <td class="md" valign="top">( </td>
+ <td class="md" nowrap valign="top">const <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> * </td>
+ <td class="mdname" nowrap> <em>c</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__pools.html#gga0">apr_pool_t</a> * </td>
+ <td class="mdname" nowrap> <em>p</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">) </td>
+ <td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
-<table cellspacing=5 cellpadding=0 border=0>
+<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
@@ -145,27 +128,44 @@
<td>
<p>
-Default version, used when creating a new cookie. See <a class="el" href="apreq__cookie_8h.html#a17">apreq_cookie_make()</a>. </td>
+Returns a string that represents the cookie as it would appear in a valid "Set-Cookie*" header.<p>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>c</em> </td><td>cookie. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>pool which allocates the returned string.</td></tr>
+ </table>
+</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>header string. </dd></dl>
+ </td>
</tr>
</table>
-<a class="anchor" name="a2" doxytag="apreq_cookie.h::apreq_value_to_cookie" ></a><p>
-<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+<a class="anchor" name="a15" doxytag="apreq_cookie.h::apreq_cookie_expires"></a><p>
+<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
- <td class="md" nowrap valign="top"> #define apreq_value_to_cookie </td>
+ <td class="md" nowrap valign="top">void apreq_cookie_expires </td>
<td class="md" valign="top">( </td>
- <td class="md" nowrap valign="top">ptr </td>
- <td class="mdname1" valign="top" nowrap> </td>
- <td class="md" valign="top"> ) </td>
- <td class="md" nowrap></td>
+ <td class="md" nowrap valign="top"><a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> * </td>
+ <td class="mdname" nowrap> <em>c</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>const char * </td>
+ <td class="mdname" nowrap> <em>time_str</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
+ <td class="md">) </td>
+ <td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
-<table cellspacing=5 cellpadding=0 border=0>
+<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
@@ -173,25 +173,35 @@
<td>
<p>
-<b>Value:</b><pre class="fragment"><div>apreq_attr_to_type(<a class="code" href="structapreq__cookie__t.html">apreq_cookie_t</a>, \
- v, ptr)
-</div></pre> </td>
+Set the Cookie's expiration date.<p>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign="top"></td><td valign="top"><em>c</em> </td><td>The cookie. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>time_str</em> </td><td>If NULL, the Cookie's expiration date is unset, making it a session cookie. This means no "expires" or "max-age" attribute will appear in the cookie's serialized form. If time_str is not NULL, the expiration date will be reset to the offset (from now) represented by time_str. The time_str should be in a format that <a class="el" href="apreq__util_8h.html#a11">apreq_atoi64t()</a> can understand, namely /[+-]?\d+\s*[YMDhms]/.</td></tr>
+ </table>
+</dl>
+<dl compact><dt><b>Remarks:</b></dt><dd>Now time_str may also be a fixed date; see <a class="elRef" doxygen="apu.tag:http://apr.apache.org/docs/apr-util/" href="http://apr.apache.org/docs/apr-util/group___a_p_r___util___date.html#gga2">apr_date_parse_rfc()</a> for admissible formats. </dd></dl>
+ </td>
</tr>
</table>
-<hr><h2>Enumeration Type Documentation</h2>
-<a class="anchor" name="a25" doxytag="apreq_cookie.h::apreq_cookie_version_t" ></a><p>
-<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+<a class="anchor" name="a5" doxytag="apreq_cookie.h::apreq_cookie_is_secure"></a><p>
+<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
- <td class="md" nowrap valign="top"> enum <a class="el" href="apreq__cookie_8h.html#a25">apreq_cookie_version_t</a> </td>
+ <td class="md" nowrap valign="top">static <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a> unsigned apreq_cookie_is_secure </td>
+ <td class="md" valign="top">( </td>
+ <td class="md" nowrap valign="top">const <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> * </td>
+ <td class="mdname1" valign="top" nowrap> <em>c</em> </td>
+ <td class="md" valign="top"> ) </td>
+ <td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
-<table cellspacing=5 cellpadding=0 border=0>
+<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
@@ -199,37 +209,28 @@
<td>
<p>
-Cookie Version. libapreq does not distinguish between rfc2109 and its successor rfc2965; both are referred to as APREQ_COOKIE_VERSION_RFC. Users can distinguish between them in their outgoing cookies by using <a class="el" href="apreq__cookie_8h.html#a22">apreq_cookie_bake()</a> for sending rfc2109 cookies, or <a class="el" href="apreq__cookie_8h.html#a23">apreq_cookie_bake2()</a> for rfc2965. The original Netscape cookie spec is still preferred for its greater portability, it is named APREQ_COOKIE_VERSION_NETSCAPE. </td>
+<dl compact><dt><b>Returns:</b></dt><dd>1 if the secure flag is set, 0 otherwise. </dd></dl>
+ </td>
</tr>
</table>
-<hr><h2>Function Documentation</h2>
-<a class="anchor" name="a14" doxytag="apreq_cookie.h::apreq_cookie" ></a><p>
-<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+<a class="anchor" name="a8" doxytag="apreq_cookie.h::apreq_cookie_is_tainted"></a><p>
+<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
- <td class="md" nowrap valign="top"> <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a>* apreq_cookie </td>
+ <td class="md" nowrap valign="top">static <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a> unsigned apreq_cookie_is_tainted </td>
<td class="md" valign="top">( </td>
- <td class="md" nowrap valign="top">const <a class="el" href="structapreq__jar__t.html">apreq_jar_t</a> * </td>
- <td class="mdname" nowrap> <em>jar</em>, </td>
- </tr>
- <tr>
- <td class="md" nowrap align="right"></td>
- <td></td>
- <td class="md" nowrap>const char * </td>
- <td class="mdname" nowrap> <em>name</em></td>
- </tr>
- <tr>
- <td></td>
- <td class="md">) </td>
- <td class="md" colspan="2"></td>
+ <td class="md" nowrap valign="top">const <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> * </td>
+ <td class="mdname1" valign="top" nowrap> <em>c</em> </td>
+ <td class="md" valign="top"> ) </td>
+ <td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
-<table cellspacing=5 cellpadding=0 border=0>
+<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
@@ -237,35 +238,47 @@
<td>
<p>
-Fetches a cookie from the jar<p>
-<dl compact><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td></td><td valign=top><em>jar</em> </td><td>The cookie jar. </td></tr>
- <tr><td></td><td valign=top><em>name</em> </td><td>The name of the desired cookie. </td></tr>
- </table>
-</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>1 if the taint flag is set, 0 otherwise. </dd></dl>
</td>
</tr>
</table>
-<a class="anchor" name="a19" doxytag="apreq_cookie.h::apreq_cookie_as_string" ></a><p>
-<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+<a class="anchor" name="a12" doxytag="apreq_cookie.h::apreq_cookie_make"></a><p>
+<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
- <td class="md" nowrap valign="top"> char* apreq_cookie_as_string </td>
+ <td class="md" nowrap valign="top"><a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a>* apreq_cookie_make </td>
<td class="md" valign="top">( </td>
- <td class="md" nowrap valign="top">const <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> * </td>
- <td class="mdname" nowrap> <em>c</em>, </td>
+ <td class="md" nowrap valign="top"><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__pools.html#gga0">apr_pool_t</a> * </td>
+ <td class="mdname" nowrap> <em>pool</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
- <td></td>
- <td class="md" nowrap><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__pools_8h.html#ga0">apr_pool_t</a> * </td>
- <td class="mdname" nowrap> <em>p</em></td>
+ <td class="md"></td>
+ <td class="md" nowrap>const char * </td>
+ <td class="mdname" nowrap> <em>name</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>const <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#gga7">apr_size_t</a> </td>
+ <td class="mdname" nowrap> <em>nlen</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>const char * </td>
+ <td class="mdname" nowrap> <em>value</em>, </td>
</tr>
<tr>
- <td></td>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap>const <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#gga7">apr_size_t</a> </td>
+ <td class="mdname" nowrap> <em>vlen</em></td>
+ </tr>
+ <tr>
+ <td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
@@ -273,7 +286,7 @@
</td>
</tr>
</table>
-<table cellspacing=5 cellpadding=0 border=0>
+<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
@@ -281,67 +294,38 @@
<td>
<p>
-Returns a string that represents the cookie as it would appear in a valid "Set-Cookie*" header.<p>
+Returns a new cookie, made from the argument list.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
- <tr><td></td><td valign=top><em>c</em> </td><td>The cookie. </td></tr>
- <tr><td></td><td valign=top><em>p</em> </td><td>The pool. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>pool</em> </td><td>Pool which allocates the cookie. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The cookie's name. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>nlen</em> </td><td>Length of name. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>The cookie's value. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>vlen</em> </td><td>Length of value.</td></tr>
</table>
</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>the new cookie </dd></dl>
</td>
</tr>
</table>
-<a class="anchor" name="a18" doxytag="apreq_cookie.h::apreq_cookie_attr" ></a><p>
-<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+<a class="anchor" name="a7" doxytag="apreq_cookie.h::apreq_cookie_secure_off"></a><p>
+<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
- <td class="md" nowrap valign="top"> <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__errno_8h.html#ga0">apr_status_t</a> apreq_cookie_attr </td>
+ <td class="md" nowrap valign="top">static <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a> void apreq_cookie_secure_off </td>
<td class="md" valign="top">( </td>
- <td class="md" nowrap valign="top"><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__pools_8h.html#ga0">apr_pool_t</a> * </td>
- <td class="mdname" nowrap> <em>p</em>, </td>
- </tr>
- <tr>
- <td class="md" nowrap align="right"></td>
- <td></td>
- <td class="md" nowrap><a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> * </td>
- <td class="mdname" nowrap> <em>c</em>, </td>
- </tr>
- <tr>
- <td class="md" nowrap align="right"></td>
- <td></td>
- <td class="md" nowrap>const char * </td>
- <td class="mdname" nowrap> <em>attr</em>, </td>
- </tr>
- <tr>
- <td class="md" nowrap align="right"></td>
- <td></td>
- <td class="md" nowrap><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga7">apr_size_t</a> </td>
- <td class="mdname" nowrap> <em>alen</em>, </td>
- </tr>
- <tr>
- <td class="md" nowrap align="right"></td>
- <td></td>
- <td class="md" nowrap>const char * </td>
- <td class="mdname" nowrap> <em>val</em>, </td>
- </tr>
- <tr>
- <td class="md" nowrap align="right"></td>
- <td></td>
- <td class="md" nowrap><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga7">apr_size_t</a> </td>
- <td class="mdname" nowrap> <em>vlen</em></td>
- </tr>
- <tr>
- <td></td>
- <td class="md">) </td>
- <td class="md" colspan="2"></td>
+ <td class="md" nowrap valign="top"><a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> * </td>
+ <td class="mdname1" valign="top" nowrap> <em>c</em> </td>
+ <td class="md" valign="top"> ) </td>
+ <td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
-<table cellspacing=5 cellpadding=0 border=0>
+<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
@@ -349,47 +333,27 @@
<td>
<p>
-Sets the associated cookie attribute. <dl compact><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td></td><td valign=top><em>p</em> </td><td>Pool for allocating the new attribute. </td></tr>
- <tr><td></td><td valign=top><em>c</em> </td><td>Cookie. </td></tr>
- <tr><td></td><td valign=top><em>attr</em> </td><td>Name of attribute- leading '-' or '$' characters are ignored. </td></tr>
- <tr><td></td><td valign=top><em>alen</em> </td><td>Length of attr. </td></tr>
- <tr><td></td><td valign=top><em>val</em> </td><td>Value of new attribute. </td></tr>
- <tr><td></td><td valign=top><em>vlen</em> </td><td>Length of new attribute. </td></tr>
- </table>
-</dl>
-<dl compact><dt><b>Remarks:</b></dt><dd>Ensures cookie version & time are kept in sync. </dd></dl>
- </td>
+Turns off the cookie's secure flag. </td>
</tr>
</table>
-<a class="anchor" name="a22" doxytag="apreq_cookie.h::apreq_cookie_bake" ></a><p>
-<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+<a class="anchor" name="a6" doxytag="apreq_cookie.h::apreq_cookie_secure_on"></a><p>
+<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
- <td class="md" nowrap valign="top"> <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__errno_8h.html#ga0">apr_status_t</a> apreq_cookie_bake </td>
+ <td class="md" nowrap valign="top">static <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a> void apreq_cookie_secure_on </td>
<td class="md" valign="top">( </td>
- <td class="md" nowrap valign="top">const <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> * </td>
- <td class="mdname" nowrap> <em>c</em>, </td>
- </tr>
- <tr>
- <td class="md" nowrap align="right"></td>
- <td></td>
- <td class="md" nowrap>void * </td>
- <td class="mdname" nowrap> <em>env</em></td>
- </tr>
- <tr>
- <td></td>
- <td class="md">) </td>
- <td class="md" colspan="2"></td>
+ <td class="md" nowrap valign="top"><a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> * </td>
+ <td class="mdname1" valign="top" nowrap> <em>c</em> </td>
+ <td class="md" valign="top"> ) </td>
+ <td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
-<table cellspacing=5 cellpadding=0 border=0>
+<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
@@ -397,35 +361,34 @@
<td>
<p>
-Add the cookie to the outgoing "Set-Cookie" headers.<p>
-<dl compact><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td></td><td valign=top><em>c</em> </td><td>The cookie. </td></tr>
- <tr><td></td><td valign=top><em>env</em> </td><td>Environment. </td></tr>
- </table>
-</dl>
- </td>
+Sets the cookie's secure flag, meaning it only comes back over an SSL-encrypted connction. </td>
</tr>
</table>
-<a class="anchor" name="a23" doxytag="apreq_cookie.h::apreq_cookie_bake2" ></a><p>
-<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+<a class="anchor" name="a14" doxytag="apreq_cookie.h::apreq_cookie_serialize"></a><p>
+<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
- <td class="md" nowrap valign="top"> <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__errno_8h.html#ga0">apr_status_t</a> apreq_cookie_bake2 </td>
+ <td class="md" nowrap valign="top">int apreq_cookie_serialize </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> * </td>
<td class="mdname" nowrap> <em>c</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
- <td></td>
- <td class="md" nowrap>void * </td>
- <td class="mdname" nowrap> <em>env</em></td>
+ <td class="md"></td>
+ <td class="md" nowrap>char * </td>
+ <td class="mdname" nowrap> <em>buf</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#gga7">apr_size_t</a> </td>
+ <td class="mdname" nowrap> <em>len</em></td>
</tr>
<tr>
- <td></td>
+ <td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
@@ -433,7 +396,7 @@
</td>
</tr>
</table>
-<table cellspacing=5 cellpadding=0 border=0>
+<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
@@ -441,43 +404,36 @@
<td>
<p>
-Add the cookie to the outgoing "Set-Cookie2" headers.<p>
+Same functionality as apreq_cookie_as_string. Stores the string representation in buf, using up to len bytes in buf as storage. The return value has the same semantics as that of apr_snprintf, including the special behavior for a "len = 0" argument.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
- <tr><td></td><td valign=top><em>c</em> </td><td>The cookie. </td></tr>
- <tr><td></td><td valign=top><em>env</em> </td><td>Environment. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>c</em> </td><td>cookie. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td>storage location for the result. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>size of buf's storage area.</td></tr>
</table>
</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>size of resulting header string. </dd></dl>
</td>
</tr>
</table>
-<a class="anchor" name="a21" doxytag="apreq_cookie.h::apreq_cookie_expires" ></a><p>
-<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+<a class="anchor" name="a10" doxytag="apreq_cookie.h::apreq_cookie_tainted_off"></a><p>
+<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
- <td class="md" nowrap valign="top"> void apreq_cookie_expires </td>
+ <td class="md" nowrap valign="top">static <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a> void apreq_cookie_tainted_off </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> * </td>
- <td class="mdname" nowrap> <em>c</em>, </td>
- </tr>
- <tr>
- <td class="md" nowrap align="right"></td>
- <td></td>
- <td class="md" nowrap>const char * </td>
- <td class="mdname" nowrap> <em>time_str</em></td>
- </tr>
- <tr>
- <td></td>
- <td class="md">) </td>
- <td class="md" colspan="2"></td>
+ <td class="mdname1" valign="top" nowrap> <em>c</em> </td>
+ <td class="md" valign="top"> ) </td>
+ <td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
-<table cellspacing=5 cellpadding=0 border=0>
+<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
@@ -485,61 +441,27 @@
<td>
<p>
-Set the Cookie's expiration date.<p>
-<dl compact><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td></td><td valign=top><em>c</em> </td><td>The cookie. </td></tr>
- <tr><td></td><td valign=top><em>time_str</em> </td><td>If NULL, the Cookie's expiration date is unset, making it a session cookie. This means no "expires" or "max-age" attribute will appear in the cookie's serialized form. If time_str is not NULL, the expiration date will be reset to the offset (from now) represented by time_str. The time_str should be in a format that <a class="el" href="apreq_8h.html#a42">apreq_atoi64t()</a> can understand, namely /[+-]?+*[YMDhms]/. </td></tr>
- </table>
-</dl>
- </td>
+Turns off the cookie's tainted flag. </td>
</tr>
</table>
-<a class="anchor" name="a17" doxytag="apreq_cookie.h::apreq_cookie_make" ></a><p>
-<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+<a class="anchor" name="a9" doxytag="apreq_cookie.h::apreq_cookie_tainted_on"></a><p>
+<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
- <td class="md" nowrap valign="top"> <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a>* apreq_cookie_make </td>
+ <td class="md" nowrap valign="top">static <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a> void apreq_cookie_tainted_on </td>
<td class="md" valign="top">( </td>
- <td class="md" nowrap valign="top"><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__pools_8h.html#ga0">apr_pool_t</a> * </td>
- <td class="mdname" nowrap> <em>pool</em>, </td>
- </tr>
- <tr>
- <td class="md" nowrap align="right"></td>
- <td></td>
- <td class="md" nowrap>const char * </td>
- <td class="mdname" nowrap> <em>name</em>, </td>
- </tr>
- <tr>
- <td class="md" nowrap align="right"></td>
- <td></td>
- <td class="md" nowrap>const <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga7">apr_size_t</a> </td>
- <td class="mdname" nowrap> <em>nlen</em>, </td>
- </tr>
- <tr>
- <td class="md" nowrap align="right"></td>
- <td></td>
- <td class="md" nowrap>const char * </td>
- <td class="mdname" nowrap> <em>value</em>, </td>
- </tr>
- <tr>
- <td class="md" nowrap align="right"></td>
- <td></td>
- <td class="md" nowrap>const <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga7">apr_size_t</a> </td>
- <td class="mdname" nowrap> <em>vlen</em></td>
- </tr>
- <tr>
- <td></td>
- <td class="md">) </td>
- <td class="md" colspan="2"></td>
+ <td class="md" nowrap valign="top"><a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> * </td>
+ <td class="mdname1" valign="top" nowrap> <em>c</em> </td>
+ <td class="md" valign="top"> ) </td>
+ <td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
-<table cellspacing=5 cellpadding=0 border=0>
+<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
@@ -547,52 +469,27 @@
<td>
<p>
-Returns a new cookie, made from the argument list.<p>
-<dl compact><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td></td><td valign=top><em>pool</em> </td><td>Pool which allocates the cookie. </td></tr>
- <tr><td></td><td valign=top><em>name</em> </td><td>The cookie's name. </td></tr>
- <tr><td></td><td valign=top><em>nlen</em> </td><td>Length of name. </td></tr>
- <tr><td></td><td valign=top><em>value</em> </td><td>The cookie's value. </td></tr>
- <tr><td></td><td valign=top><em>vlen</em> </td><td>Length of value. </td></tr>
- </table>
-</dl>
- </td>
+Sets the cookie's tainted flag. </td>
</tr>
</table>
-<a class="anchor" name="a20" doxytag="apreq_cookie.h::apreq_cookie_serialize" ></a><p>
-<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+<a class="anchor" name="a3" doxytag="apreq_cookie.h::apreq_cookie_version"></a><p>
+<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
- <td class="md" nowrap valign="top"> int apreq_cookie_serialize </td>
+ <td class="md" nowrap valign="top">static <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a> unsigned apreq_cookie_version </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> * </td>
- <td class="mdname" nowrap> <em>c</em>, </td>
- </tr>
- <tr>
- <td class="md" nowrap align="right"></td>
- <td></td>
- <td class="md" nowrap>char * </td>
- <td class="mdname" nowrap> <em>buf</em>, </td>
- </tr>
- <tr>
- <td class="md" nowrap align="right"></td>
- <td></td>
- <td class="md" nowrap><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr_8h.html#ga7">apr_size_t</a> </td>
- <td class="mdname" nowrap> <em>len</em></td>
- </tr>
- <tr>
- <td></td>
- <td class="md">) </td>
- <td class="md" colspan="2"></td>
+ <td class="mdname1" valign="top" nowrap> <em>c</em> </td>
+ <td class="md" valign="top"> ) </td>
+ <td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
-<table cellspacing=5 cellpadding=0 border=0>
+<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
@@ -600,44 +497,37 @@
<td>
<p>
-Same functionality as apreq_cookie_as_string. Stores the string representation in buf, using up to len bytes in buf as storage. The return value has the same semantics as that of apr_snprintf, including the special behavior for a "len = 0" argument.<p>
-<dl compact><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td></td><td valign=top><em>c</em> </td><td>The cookie. </td></tr>
- <tr><td></td><td valign=top><em>buf</em> </td><td>Storage location for the result. </td></tr>
- <tr><td></td><td valign=top><em>len</em> </td><td>Size of buf's storage area. </td></tr>
- </table>
-</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>1 if this is an RFC cookie, 0 if its a Netscape cookie. </dd></dl>
</td>
</tr>
</table>
-<a class="anchor" name="a16" doxytag="apreq_cookie.h::apreq_jar" ></a><p>
-<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+<a class="anchor" name="a4" doxytag="apreq_cookie.h::apreq_cookie_version_set"></a><p>
+<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
- <td class="md" nowrap valign="top"> <a class="el" href="structapreq__jar__t.html">apreq_jar_t</a>* apreq_jar </td>
+ <td class="md" nowrap valign="top">static <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a> void apreq_cookie_version_set </td>
<td class="md" valign="top">( </td>
- <td class="md" nowrap valign="top">void * </td>
- <td class="mdname" nowrap> <em>env</em>, </td>
+ <td class="md" nowrap valign="top"><a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> * </td>
+ <td class="mdname" nowrap> <em>c</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
- <td></td>
- <td class="md" nowrap>const char * </td>
- <td class="mdname" nowrap> <em>hdr</em></td>
+ <td class="md"></td>
+ <td class="md" nowrap>unsigned </td>
+ <td class="mdname" nowrap> <em>v</em></td>
</tr>
<tr>
- <td></td>
+ <td class="md"></td>
<td class="md">) </td>
- <td class="md" colspan="2"></td>
+ <td class="md" colspan="2"><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
-<table cellspacing=5 cellpadding=0 border=0>
+<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
@@ -645,36 +535,34 @@
<td>
<p>
-Parse the incoming "Cookie:" headers into a cookie jar.<p>
-<dl compact><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td></td><td valign=top><em>env</em> </td><td>The current environment. </td></tr>
- <tr><td></td><td valign=top><em>hdr</em> </td><td>String to parse as a HTTP-merged "Cookie" header. </td></tr>
- </table>
-</dl>
-<dl compact><dt><b>Remarks:</b></dt><dd>"data = NULL" has special behavior. In this case, apreq_jar(env,NULL) will attempt to fetch a cached object from the environment via apreq_env_jar. Failing that, it will replace "hdr" with the result of <a class="el" href="apreq__env_8h.html#a14">apreq_env_cookie(env)</a>, parse that, and store the resulting object back within the environment. This maneuver is designed to mimimize parsing work, since generating the cookie jar is relatively expensive. </dd></dl>
- </td>
+Sets the cookie's protocol version. </td>
</tr>
</table>
-<a class="anchor" name="a15" doxytag="apreq_cookie.h::apreq_jar_add" ></a><p>
-<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+<a class="anchor" name="a11" doxytag="apreq_cookie.h::apreq_parse_cookie_header"></a><p>
+<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
- <td class="md" nowrap valign="top"> void apreq_jar_add </td>
+ <td class="md" nowrap valign="top"><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__errno.html#gga0">apr_status_t</a> apreq_parse_cookie_header </td>
<td class="md" valign="top">( </td>
- <td class="md" nowrap valign="top"><a class="el" href="structapreq__jar__t.html">apreq_jar_t</a> * </td>
+ <td class="md" nowrap valign="top"><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__pools.html#gga0">apr_pool_t</a> * </td>
+ <td class="mdname" nowrap> <em>pool</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td class="md"></td>
+ <td class="md" nowrap><a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__tables.html#gga0">apr_table_t</a> * </td>
<td class="mdname" nowrap> <em>jar</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
- <td></td>
- <td class="md" nowrap>const <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> * </td>
- <td class="mdname" nowrap> <em>c</em></td>
+ <td class="md"></td>
+ <td class="md" nowrap>const char * </td>
+ <td class="mdname" nowrap> <em>header</em></td>
</tr>
<tr>
- <td></td>
+ <td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
@@ -682,7 +570,7 @@
</td>
</tr>
</table>
-<table cellspacing=5 cellpadding=0 border=0>
+<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
@@ -690,34 +578,41 @@
<td>
<p>
-Adds a cookie by pushing it to the bottom of the jar.<p>
+Parse a cookie header and store the cookies in an apr_table_t.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
- <tr><td></td><td valign=top><em>jar</em> </td><td>The cookie jar. </td></tr>
- <tr><td></td><td valign=top><em>c</em> </td><td>The cookie to add. </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>pool</em> </td><td>pool which allocates the cookies </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>jar</em> </td><td>table where parsed cookies are stored </td></tr>
+ <tr><td valign="top"></td><td valign="top"><em>header</em> </td><td>the header value</td></tr>
</table>
</dl>
+<dl compact><dt><b>Returns:</b></dt><dd>APR_SUCCESS. <p>
+<a class="el" href="apreq__error_8h.html#a6">APREQ_ERROR_BADSEQ</a> if an unparseable character sequence appears. <p>
+<a class="el" href="apreq__error_8h.html#a15">APREQ_ERROR_MISMATCH</a> if an rfc-cookie attribute appears in a netscape cookie header. <p>
+<a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group___a_p_r___error.html#ga42">APR_ENOTIMPL</a> if an unrecognized rfc-cookie attribute appears. <p>
+<a class="el" href="apreq__error_8h.html#a11">APREQ_ERROR_NOTOKEN</a> if a required token was not present. <p>
+<a class="el" href="apreq__error_8h.html#a5">APREQ_ERROR_BADCHAR</a> if an unexpected token was present. </dd></dl>
</td>
</tr>
</table>
-<a class="anchor" name="a24" doxytag="apreq_cookie.h::apreq_ua_cookie_version" ></a><p>
-<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+<a class="anchor" name="a2" doxytag="apreq_cookie.h::apreq_value_to_cookie"></a><p>
+<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
- <td class="md" nowrap valign="top"> <a class="el" href="apreq__cookie_8h.html#a25">apreq_cookie_version_t</a> apreq_ua_cookie_version </td>
+ <td class="md" nowrap valign="top">static <a class="elRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga11">APR_INLINE</a> <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a>* apreq_value_to_cookie </td>
<td class="md" valign="top">( </td>
- <td class="md" nowrap valign="top">void * </td>
- <td class="mdname1" valign="top" nowrap> <em>env</em> </td>
+ <td class="md" nowrap valign="top">const char * </td>
+ <td class="mdname1" valign="top" nowrap> <em>val</em> </td>
<td class="md" valign="top"> ) </td>
- <td class="md" nowrap></td>
+ <td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
-<table cellspacing=5 cellpadding=0 border=0>
+<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
@@ -725,22 +620,16 @@
<td>
<p>
-Looks for the presence of a "Cookie2" header to determine whether or not the current User-Agent supports rfc2965. <dl compact><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td></td><td valign=top><em>env</em> </td><td>The current environment. </td></tr>
- </table>
-</dl>
-<dl compact><dt><b>Returns:</b></dt><dd>APREQ_COOKIE_VERSION_RFC if rfc2965 is supported, APREQ_COOKIE_VERSION_NETSCAPE otherwise. </dd></dl>
- </td>
+Upgrades a jar's table values to <a class="el" href="structapreq__cookie__t.html">apreq_cookie_t</a> structs. </td>
</tr>
</table>
<div id="footer">
<p class="apache">
-Copyright © 2003-2004 <a href="http://www.apache.org">The Apache Software Foundation</a>.<br/>
-See <a href="LICENSE.html">LICENSE</a>.</p>
+Copyright © 2003-2005 <a href="http://www.apache.org">The Apache Software Foundation</a>.<br/>
+See <a href="apreq_license.html">LICENSE</a>.</p>
<p class="menu">
<span style="color:#aaa">page generated by <a href="http://www.doxygen.org/"><code>doxygen</code></a>
-version 1.3.8 on 30 Aug 2004</span>
+version 1.4.2 on 4 May 2005</span>
</p>
</div>
</body>
Added: httpd/site/trunk/docs/apreq/docs/libapreq2/apreq__error_8h-source.html
URL: http://svn.apache.org/viewcvs/httpd/site/trunk/docs/apreq/docs/libapreq2/apreq__error_8h-source.html?rev=168155&view=auto
==============================================================================
--- httpd/site/trunk/docs/apreq/docs/libapreq2/apreq__error_8h-source.html (added)
+++ httpd/site/trunk/docs/apreq/docs/libapreq2/apreq__error_8h-source.html Wed May 4 10:40:10 2005
@@ -0,0 +1,89 @@
+<html>
+<head>
+ <link rel="stylesheet" type="text/css" href="dox.css" />
+ <title>libapreq2-2.05-dev: libapreq2: include/apreq_error.h Source File</title>
+</head>
+<body>
+<div id="page-header">
+<p class="menu">
+ <a href="http://www.apache.org/">Apache Software Foundation</a> > <a href="http://httpd.apache.org">HTTP Server Project</a> >
+<a href="http://httpd.apache.org/apreq/">Request Library Subproject</a></p>
+<p class="apache">Apache HTTP Server Request Library</p>
+<img alt="" src="feather.gif" /></div>
+<!-- Generated by Doxygen 1.4.2 -->
+<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
+<div class="nav">
+<a class="el" href="dir_000000.html">include</a></div>
+<h1>apreq_error.h</h1><a href="apreq__error_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/*</span>
+00002 <span class="comment">** Copyright 2003-2005 The Apache Software Foundation</span>
+00003 <span class="comment">**</span>
+00004 <span class="comment">** Licensed under the Apache License, Version 2.0 (the "License");</span>
+00005 <span class="comment">** you may not use this file except in compliance with the License.</span>
+00006 <span class="comment">** You may obtain a copy of the License at</span>
+00007 <span class="comment">**</span>
+00008 <span class="comment">** http://www.apache.org/licenses/LICENSE-2.0</span>
+00009 <span class="comment">**</span>
+00010 <span class="comment">** Unless required by applicable law or agreed to in writing, software</span>
+00011 <span class="comment">** distributed under the License is distributed on an "AS IS" BASIS,</span>
+00012 <span class="comment">** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
+00013 <span class="comment">** See the License for the specific language governing permissions and</span>
+00014 <span class="comment">** limitations under the License.</span>
+00015 <span class="comment">*/</span>
+00016
+00017 <span class="preprocessor">#ifndef APREQ_ERROR_H</span>
+00018 <span class="preprocessor"></span><span class="preprocessor">#define APREQ_ERROR_H</span>
+00019 <span class="preprocessor"></span>
+00020 <span class="preprocessor">#include "<a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/apr__errno_8h.html">apr_errno.h</a>"</span>
+00021 <span class="preprocessor">#include "<a class="code" href="apreq_8h.html">apreq.h</a>"</span>
+00022
+00023 <span class="preprocessor">#ifdef __cplusplus</span>
+00024 <span class="preprocessor"></span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
+00025 <span class="preprocessor">#endif </span>
+00026 <span class="preprocessor"></span>
+00031 APREQ_DECLARE(<span class="keywordtype">char</span> *)
+00032 <a class="code" href="apreq__error_8h.html#a19">apreq_strerror</a>(<a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__errno.html#ga0">apr_status_t</a> s, <span class="keywordtype">char</span> *buf, <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__platform.html#ga7">apr_size_t</a> bufsize);
+00033
+00042 #ifndef APR_EBADARG
+00043 #define APR_EBADARG <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group___a_p_r___error.html#ga35">APR_BADARG</a> <span class="comment">/* XXX: don't use APR_BADARG */</span>
+00044 #endif
+00045
+<a name="l00047"></a><a class="code" href="apreq__error_8h.html#a1">00047</a> #define <a class="code" href="apreq__error_8h.html#a1">APREQ_ERROR_GENERAL</a> <a class="codeRef" doxygen="apr.tag:http://apr.apache.org/docs/apr/" href="http://apr.apache.org/docs/apr/group__apr__errno.html#ga13">APR_OS_START_USERERR</a>
+<a name="l00049"></a><a class="code" href="apreq__error_8h.html#a2">00049</a> #define <a class="code" href="apreq__error_8h.html#a2">APREQ_ERROR_TAINTED</a> (<a class="code" href="apreq__error_8h.html#a1">APREQ_ERROR_GENERAL</a> + 1)
+<a name="l00051"></a><a class="code" href="apreq__error_8h.html#a3">00051</a> #define <a class="code" href="apreq__error_8h.html#a3">APREQ_ERROR_INTERRUPT</a> (<a class="code" href="apreq__error_8h.html#a1">APREQ_ERROR_GENERAL</a> + 2)
+00052
+<a name="l00054"></a><a class="code" href="apreq__error_8h.html#a4">00054</a> #define <a class="code" href="apreq__error_8h.html#a4">APREQ_ERROR_BADDATA</a> (<a class="code" href="apreq__error_8h.html#a1">APREQ_ERROR_GENERAL</a> + 10)
+<a name="l00056"></a><a class="code" href="apreq__error_8h.html#a5">00056</a> #define <a class="code" href="apreq__error_8h.html#a5">APREQ_ERROR_BADCHAR</a> (<a class="code" href="apreq__error_8h.html#a4">APREQ_ERROR_BADDATA</a> + 1)
+<a name="l00058"></a><a class="code" href="apreq__error_8h.html#a6">00058</a> #define <a class="code" href="apreq__error_8h.html#a6">APREQ_ERROR_BADSEQ</a> (<a class="code" href="apreq__error_8h.html#a4">APREQ_ERROR_BADDATA</a> + 2)
+<a name="l00060"></a><a class="code" href="apreq__error_8h.html#a7">00060</a> #define <a class="code" href="apreq__error_8h.html#a7">APREQ_ERROR_BADATTR</a> (<a class="code" href="apreq__error_8h.html#a4">APREQ_ERROR_BADDATA</a> + 3)
+<a name="l00062"></a><a class="code" href="apreq__error_8h.html#a8">00062</a> #define <a class="code" href="apreq__error_8h.html#a8">APREQ_ERROR_BADHEADER</a> (<a class="code" href="apreq__error_8h.html#a4">APREQ_ERROR_BADDATA</a> + 4)
+<a name="l00064"></a><a class="code" href="apreq__error_8h.html#a9">00064</a> #define <a class="code" href="apreq__error_8h.html#a9">APREQ_ERROR_BADUTF8</a> (<a class="code" href="apreq__error_8h.html#a4">APREQ_ERROR_BADDATA</a> + 5)
+00065
+<a name="l00067"></a><a class="code" href="apreq__error_8h.html#a10">00067</a> #define <a class="code" href="apreq__error_8h.html#a10">APREQ_ERROR_NODATA</a> (<a class="code" href="apreq__error_8h.html#a1">APREQ_ERROR_GENERAL</a> + 20)
+<a name="l00069"></a><a class="code" href="apreq__error_8h.html#a11">00069</a> #define <a class="code" href="apreq__error_8h.html#a11">APREQ_ERROR_NOTOKEN</a> (<a class="code" href="apreq__error_8h.html#a10">APREQ_ERROR_NODATA</a> + 1)
+<a name="l00071"></a><a class="code" href="apreq__error_8h.html#a12">00071</a> #define <a class="code" href="apreq__error_8h.html#a12">APREQ_ERROR_NOATTR</a> (<a class="code" href="apreq__error_8h.html#a10">APREQ_ERROR_NODATA</a> + 2)
+<a name="l00073"></a><a class="code" href="apreq__error_8h.html#a13">00073</a> #define <a class="code" href="apreq__error_8h.html#a13">APREQ_ERROR_NOHEADER</a> (<a class="code" href="apreq__error_8h.html#a10">APREQ_ERROR_NODATA</a> + 3)
+<a name="l00075"></a><a class="code" href="apreq__error_8h.html#a14">00075</a> #define <a class="code" href="apreq__error_8h.html#a14">APREQ_ERROR_NOPARSER</a> (<a class="code" href="apreq__error_8h.html#a10">APREQ_ERROR_NODATA</a> + 4)
+00076
+00077
+<a name="l00079"></a><a class="code" href="apreq__error_8h.html#a15">00079</a> #define <a class="code" href="apreq__error_8h.html#a15">APREQ_ERROR_MISMATCH</a> (<a class="code" href="apreq__error_8h.html#a1">APREQ_ERROR_GENERAL</a> + 30)
+<a name="l00081"></a><a class="code" href="apreq__error_8h.html#a16">00081</a> #define <a class="code" href="apreq__error_8h.html#a16">APREQ_ERROR_OVERLIMIT</a> (<a class="code" href="apreq__error_8h.html#a15">APREQ_ERROR_MISMATCH</a> + 1)
+<a name="l00083"></a><a class="code" href="apreq__error_8h.html#a17">00083</a> #define <a class="code" href="apreq__error_8h.html#a17">APREQ_ERROR_UNDERLIMIT</a> (<a class="code" href="apreq__error_8h.html#a15">APREQ_ERROR_MISMATCH</a> + 2)
+<a name="l00085"></a><a class="code" href="apreq__error_8h.html#a18">00085</a> #define <a class="code" href="apreq__error_8h.html#a18">APREQ_ERROR_NOTEMPTY</a> (<a class="code" href="apreq__error_8h.html#a15">APREQ_ERROR_MISMATCH</a> + 3)
+00086
+00087
+00088 #ifdef __cplusplus
+00089 }
+00090 #endif
+00091
+00092 #endif <span class="comment">/* APREQ_ERROR_H */</span>
+</pre></div><div id="footer">
+<p class="apache">
+Copyright © 2003-2005 <a href="http://www.apache.org">The Apache Software Foundation</a>.<br/>
+See <a href="apreq_license.html">LICENSE</a>.</p>
+<p class="menu">
+<span style="color:#aaa">page generated by <a href="http://www.doxygen.org/"><code>doxygen</code></a>
+version 1.4.2 on 4 May 2005</span>
+</p>
+</div>
+</body>
+</html>