mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-08 19:41:00 +00:00
+
This commit is contained in:
parent
09aaafd679
commit
f9b8f4261c
@ -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
|
||||
|
@ -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 New Issue
Block a user