Subject: Re: CVS commit: pkgsrc/www/ap-auth-cookie
To: None <pkgsrc-changes@netbsd.org>
From: Thomas Klausner <wiz@netbsd.org>
List: pkgsrc-changes
Date: 02/14/2003 18:48:20
On Fri, Feb 14, 2003 at 07:46:58PM +0200, Thomas Klausner wrote:
> Modified Files:
> 	pkgsrc/www/ap-auth-cookie: Makefile distinfo
> 
> Log Message:
> Update to 1.9, and use DIST_SUBDIR. Closes PR 19888.

Diffs:
6c86
<  * $Id: mod_auth_cookie.c,v 1.7 1998/04/22 20:50:00 khera Exp $
---
>  * $Id: mod_auth_cookie.c,v 1.9 2000/06/09 19:14:06 khera Exp $
91a92
>   int cookieBase64;
101a103
>   m->cookieBase64 = 0;
110c112,113
< { "AuthCookieOverride", ap_set_flag_slot, NULL,
---
> { "AuthCookieOverride", ap_set_flag_slot, 
>     (void*)XtOffsetOf(cookie_auth_config_rec, cookieOverrides),
111a115,117
> { "AuthCookieBase64", ap_set_flag_slot, 
>     (void*)XtOffsetOf(cookie_auth_config_rec, cookieBase64),
>     OR_AUTHCFG, FLAG, "Cookies are Base64 encoded if On"},
164c170
<     char *cookie;
---
>     const char *cookie;
184a191,192
>       char *decode_buf;
>       
192,193c200,208
<       ap_unescape_url(buf);   /* assume comes in with %xx escapes */
<       value = ap_pstrcat(r->pool,"Basic ",uuencode(r->pool,buf),NULL);
---
>       if (sec->cookieBase64)
>         decode_buf = ap_pbase64decode(r->pool, buf);
>       else 
>         {
>           ap_unescape_url(buf);       /* assume comes in with %xx escapes */
>           decode_buf = buf;
>         }
>       
>       value = ap_pstrcat(r->pool,"Basic ",uuencode(r->pool,decode_buf),NULL);
196c211
<       fprintf(stderr,"AuthCookie set `%s'\nas `%s'\n",buf,value);
---
>       fprintf(stderr,"AuthCookie set `%s'\nas `%s'\n",decode_buf,value);