This commit is contained in:
psyc://psyced.org/~lynX 2011-07-26 07:58:06 +02:00
parent 09aaafd679
commit f9b8f4261c
2 changed files with 6 additions and 3 deletions

View File

@ -768,12 +768,15 @@ case "sha1":
try, sha1(salt + v("password"))));
rc = try == sha1(salt + v("password"));
ARETURN(rc)
# ifdef TLS_HASH_SHA1
case "HMAC-SHA1":
case "hmac-sha1":
ARETURN(try == hmac(TLS_HASH_SHA1, v("password"), salt))
#ifdef AUTH_HMAC_SECRET
# ifdef AUTH_HMAC_SECRET
case "hmac-sha1-shared":
ARETURN(try == hmac(TLS_HASH_SHA1, AUTH_HMAC_SECRET, salt + MYNICK))
# endif
# endif
#else
# echo Driver is missing SHA1 support (needed for jabber)
#endif

View File

@ -981,8 +981,8 @@ protected int deliver(mixed ip, string host, string mc, string buffer, mapping c
cvars["_INTERNAL_nick_target"] = u[UNick];
#endif
P3(("DEBUG: is_localhost is %O for %O of %O\n",
is_localhost(u[UHost])), u[UHost], u)
unless (is_localhost((u[UHost])) {
is_localhost(u[UHost]), u[UHost], u))
unless (is_localhost(u[UHost])) {
if (trustworthy > 7) {
P1(("RELAYING permitted for %O to %O (%O)\n",
source, t, ME))