Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 2308 invoked from network); 10 Mar 2009 01:09:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2009 01:09:47 -0000 Received: (qmail 64653 invoked by uid 500); 10 Mar 2009 01:09:46 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 64575 invoked by uid 500); 10 Mar 2009 01:09:45 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 64557 invoked by uid 99); 10 Mar 2009 01:09:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 18:09:45 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Mar 2009 01:09:36 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A2C222388DBA; Tue, 10 Mar 2009 01:08:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r751931 [21/37] - in /httpd/site/trunk: docs/apreq/docs/libapreq2/ xdocs/apreq/docs/libapreq2/ Date: Tue, 10 Mar 2009 01:08:12 -0000 To: cvs@httpd.apache.org From: joes@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090310010817.A2C222388DBA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: httpd/site/trunk/xdocs/apreq/docs/libapreq2/apreq__cookie_8h-source.html URL: http://svn.apache.org/viewvc/httpd/site/trunk/xdocs/apreq/docs/libapreq2/apreq__cookie_8h-source.html?rev=751931&r1=751930&r2=751931&view=diff ============================================================================== --- httpd/site/trunk/xdocs/apreq/docs/libapreq2/apreq__cookie_8h-source.html (original) +++ httpd/site/trunk/xdocs/apreq/docs/libapreq2/apreq__cookie_8h-source.html Tue Mar 10 01:08:08 2009 @@ -1,7 +1,7 @@ - libapreq2-2.08: libapreq2: include/apreq_cookie.h Source File + libapreq2-2.12: libapreq2: include/apreq_cookie.h Source File - + + + + +

include/apreq_cookie.h

Go to the documentation of this file.
00001 /*
-00002 **  Copyright 2003-2006  The Apache Software Foundation
-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 
-00017 #ifndef APREQ_COOKIE_H
-00018 #define APREQ_COOKIE_H
-00019 
-00020 #include "apreq.h"
-00021 #include "apr_time.h"
-00022 
-00023 #ifdef  __cplusplus
-00024 extern "C" {
-00025 #endif
-00026 
-00047 #define APREQ_COOKIE_MAX_LENGTH            4096
-00048 
-00052 typedef struct apreq_cookie_t {
-00053 
-00054     char           *path;        
-00055     char           *domain;      
-00056     char           *port;        
-00057     char           *comment;     
-00058     char           *commentURL;  
-00059     apr_time_t      max_age;     
-00060     unsigned        flags;       
-00061     const apreq_value_t   v;     
-00063 } apreq_cookie_t;
-00064 
+00002 **  Licensed to the Apache Software Foundation (ASF) under one or more
+00003 ** contributor license agreements.  See the NOTICE file distributed with
+00004 ** this work for additional information regarding copyright ownership.
+00005 ** The ASF licenses this file to You under the Apache License, Version 2.0
+00006 ** (the "License"); you may not use this file except in compliance with
+00007 ** the License.  You may obtain a copy of the License at
+00008 **
+00009 **      http://www.apache.org/licenses/LICENSE-2.0
+00010 **
+00011 **  Unless required by applicable law or agreed to in writing, software
+00012 **  distributed under the License is distributed on an "AS IS" BASIS,
+00013 **  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+00014 **  See the License for the specific language governing permissions and
+00015 **  limitations under the License.
+00016 */
+00017 
+00018 #ifndef APREQ_COOKIE_H
+00019 #define APREQ_COOKIE_H
+00020 
+00021 #include "apreq.h"
+00022 #include "apr_time.h"
+00023 
+00024 #ifdef  __cplusplus
+00025 extern "C" {
+00026 #endif
+00027 
+00048 #define APREQ_COOKIE_MAX_LENGTH            4096
+00049 
+00053 typedef struct apreq_cookie_t {
+00054 
+00055     char           *path;        
+00056     char           *domain;      
+00057     char           *port;        
+00058     char           *comment;     
+00059     char           *commentURL;  
+00060     apr_time_t      max_age;     
+00061     unsigned        flags;       
+00062     const apreq_value_t   v;     
+00064 } apreq_cookie_t;
 00065 
-00067 static APR_INLINE
-00068 apreq_cookie_t *apreq_value_to_cookie(const char *val)
-00069 {
-00070     union { const char *in; char *out; } deconst;
-00071 
-00072     deconst.in = val;
-00073     return apreq_attr_to_type(apreq_cookie_t, v,
-00074            apreq_attr_to_type(apreq_value_t, data, deconst.out));
-00075 }
-00076 
-00078 static APR_INLINE
-00079 unsigned apreq_cookie_version(const apreq_cookie_t *c) {
-00080     return APREQ_FLAGS_GET(c->flags, APREQ_COOKIE_VERSION);
-00081 }
-00082 
-00084 static APR_INLINE
-00085 void apreq_cookie_version_set(apreq_cookie_t *c, unsigned v) {
-00086     APREQ_FLAGS_SET(c->flags, APREQ_COOKIE_VERSION, v);
-00087 }
-00088 
-00090 static APR_INLINE
-00091 unsigned apreq_cookie_is_secure(const apreq_cookie_t *c) {
-00092     return APREQ_FLAGS_GET(c->flags, APREQ_COOKIE_SECURE);
-00093 }
-00094 
-00098 static APR_INLINE
-00099 void apreq_cookie_secure_on(apreq_cookie_t *c) {
-00100     APREQ_FLAGS_ON(c->flags, APREQ_COOKIE_SECURE);
-00101 }
-00102 
-00104 static APR_INLINE
-00105 void apreq_cookie_secure_off(apreq_cookie_t *c) {
-00106     APREQ_FLAGS_OFF(c->flags, APREQ_COOKIE_SECURE);
-00107 }
-00108 
+00066 
+00068 static APR_INLINE
+00069 apreq_cookie_t *apreq_value_to_cookie(const char *val)
+00070 {
+00071     union { const char *in; char *out; } deconst;
+00072 
+00073     deconst.in = val;
+00074     return apreq_attr_to_type(apreq_cookie_t, v,
+00075            apreq_attr_to_type(apreq_value_t, data, deconst.out));
+00076 }
+00077 
+00079 static APR_INLINE
+00080 unsigned apreq_cookie_version(const apreq_cookie_t *c) {
+00081     return APREQ_FLAGS_GET(c->flags, APREQ_COOKIE_VERSION);
+00082 }
+00083 
+00085 static APR_INLINE
+00086 void apreq_cookie_version_set(apreq_cookie_t *c, unsigned v) {
+00087     APREQ_FLAGS_SET(c->flags, APREQ_COOKIE_VERSION, v);
+00088 }
+00089 
+00091 static APR_INLINE
+00092 unsigned apreq_cookie_is_secure(const apreq_cookie_t *c) {
+00093     return APREQ_FLAGS_GET(c->flags, APREQ_COOKIE_SECURE);
+00094 }
+00095 
+00099 static APR_INLINE
+00100 void apreq_cookie_secure_on(apreq_cookie_t *c) {
+00101     APREQ_FLAGS_ON(c->flags, APREQ_COOKIE_SECURE);
+00102 }
+00103 
+00105 static APR_INLINE
+00106 void apreq_cookie_secure_off(apreq_cookie_t *c) {
+00107     APREQ_FLAGS_OFF(c->flags, APREQ_COOKIE_SECURE);
+00108 }
 00109 
-00111 static APR_INLINE
-00112 unsigned apreq_cookie_is_tainted(const apreq_cookie_t *c) {
-00113     return APREQ_FLAGS_GET(c->flags, APREQ_TAINTED);
-00114 }
-00115 
-00117 static APR_INLINE
-00118 void apreq_cookie_tainted_on(apreq_cookie_t *c) {
-00119     APREQ_FLAGS_ON(c->flags, APREQ_TAINTED);
-00120 }
-00121 
-00123 static APR_INLINE
-00124 void apreq_cookie_tainted_off(apreq_cookie_t *c) {
-00125     APREQ_FLAGS_OFF(c->flags, APREQ_TAINTED);
-00126 }
-00127 
-00143 APREQ_DECLARE(apr_status_t) apreq_parse_cookie_header(apr_pool_t *pool,
-00144                                                       apr_table_t *jar,
-00145                                                       const char *header);
-00146 
-00158 APREQ_DECLARE(apreq_cookie_t *) apreq_cookie_make(apr_pool_t *pool,
-00159                                                   const char *name,
-00160                                                   const apr_size_t nlen,
-00161                                                   const char *value,
-00162                                                   const apr_size_t vlen);
-00163 
-00173 APREQ_DECLARE(char*) apreq_cookie_as_string(const apreq_cookie_t *c,
-00174                                             apr_pool_t *p);
-00175 
+00110 
+00112 static APR_INLINE
+00113 unsigned apreq_cookie_is_tainted(const apreq_cookie_t *c) {
+00114     return APREQ_FLAGS_GET(c->flags, APREQ_TAINTED);
+00115 }
+00116 
+00118 static APR_INLINE
+00119 void apreq_cookie_tainted_on(apreq_cookie_t *c) {
+00120     APREQ_FLAGS_ON(c->flags, APREQ_TAINTED);
+00121 }
+00122 
+00124 static APR_INLINE
+00125 void apreq_cookie_tainted_off(apreq_cookie_t *c) {
+00126     APREQ_FLAGS_OFF(c->flags, APREQ_TAINTED);
+00127 }
+00128 
+00144 APREQ_DECLARE(apr_status_t) apreq_parse_cookie_header(apr_pool_t *pool,
+00145                                                       apr_table_t *jar,
+00146                                                       const char *header);
+00147 
+00159 APREQ_DECLARE(apreq_cookie_t *) apreq_cookie_make(apr_pool_t *pool,
+00160                                                   const char *name,
+00161                                                   const apr_size_t nlen,
+00162                                                   const char *value,
+00163                                                   const apr_size_t vlen);
+00164 
+00174 APREQ_DECLARE(char*) apreq_cookie_as_string(const apreq_cookie_t *c,
+00175                                             apr_pool_t *p);
 00176 
-00189 APREQ_DECLARE(int) apreq_cookie_serialize(const apreq_cookie_t *c,
-00190                                           char *buf, apr_size_t len);
-00191 
-00206 APREQ_DECLARE(void) apreq_cookie_expires(apreq_cookie_t *c,
-00207                                          const char *time_str);
-00208 
-00209 #ifdef __cplusplus
-00210  }
-00211 #endif
-00212 
-00213 #endif /*APREQ_COOKIE_H*/
-00214 
+00177 
+00190 APREQ_DECLARE(int) apreq_cookie_serialize(const apreq_cookie_t *c,
+00191                                           char *buf, apr_size_t len);
+00192 
+00207 APREQ_DECLARE(void) apreq_cookie_expires(apreq_cookie_t *c,
+00208                                          const char *time_str);
+00209 
+00210 #ifdef __cplusplus
+00211  }
+00212 #endif
+00213 
+00214 #endif /*APREQ_COOKIE_H*/
 00215 
+00216