mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
+
This commit is contained in:
parent
09aaafd679
commit
f9b8f4261c
2 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue