/*
- * $Id: rfc2617.c,v 1.9 2003/11/07 17:23:03 hno Exp $
+ * $Id: rfc2617.c,v 1.10 2007/01/13 16:08:19 hno Exp $
*
* DEBUG:
* AUTHOR: RFC 2617 & Robert Collins
j = Hex[i];
if (('0' <= j) && (j <= '9'))
n = j - '0';
- else
+ else if (('a' <= j) && (j <= 'f'))
n = j - 'a' + 10;
+ else if (('A' <= j) && (j <= 'F'))
+ n = j - 'A' + 10;
+ else
+ continue;
if (i % 2 == 0)
Bin[i / 2] = n << 4;
else
Bin[i / 2] |= n;
}
- Bin[HASHLEN] = '\0';
+ for (; i <= HASHHEXLEN; i++) {
+ Bin[i] = '\0';
+ }
}
#
-# $Id: cf.data.pre,v 1.427 2006/11/04 15:44:58 hno Exp $
+# $Id: cf.data.pre,v 1.428 2007/01/13 16:08:19 hno Exp $
#
#
# SQUID Web Proxy Cache http://www.squid-cache.org/
"program" cmdline
Specify the command for the external authenticator. Such
a program reads a line containing "username":"realm" and
- replies with the appropriate H(A1) value base64 encoded or
+ replies with the appropriate H(A1) value hex encoded or
ERR if the user (or his H(A1) hash) does not exists.
See rfc 2616 for the definition of H(A1).
"ERR" responses may optionally be followed by a error description