]> git.ipfire.org Git - thirdparty/squid.git/commit - src/auth/basic/Config.cc
auth_param basic&digest utf8 on|of
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Mon, 7 Jul 2008 11:53:28 +0000 (13:53 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Mon, 7 Jul 2008 11:53:28 +0000 (13:53 +0200)
commitf741d2f67e30e79a7cac424ba0f33bea148fa034
tree523c6c5bfb2165a358e58dceb2962ab5d9cdbc0d
parentd14c6ef2b422ccc4b87dc6f85317ad666ecb3302
auth_param basic&digest utf8 on|of

new utf8 auth_param option to enable UTF-8 translation of the requests
sent to auth helpers. HTTP uses iso-8859-1 in authentication credentials,
but many authentication backends expects UTF-8 as charset.

Note: This does NOT solve the bigger HTTP problem of authentication using
characters outside iso-8859-1, only simlplifies things a bit by allowing
helpers to operate in UTF-8 even when HTTP operates in iso-8859-1.

An alternative would be to add the translation to each helper.
include/util.h
lib/Makefile.am
lib/charset.c [new file with mode: 0644]
src/auth/basic/auth_basic.cc
src/auth/basic/auth_basic.h
src/auth/digest/auth_digest.cc
src/auth/digest/auth_digest.h