projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
087bc8f
)
Slightly more secure dialback secret generation
author
Matthew Wild
<mwild1@gmail.com>
Sun, 7 Dec 2008 03:12:22 +0000
(
03:12
+0000)
committer
Matthew Wild
<mwild1@gmail.com>
Sun, 7 Dec 2008 03:12:22 +0000
(
03:12
+0000)
core/s2smanager.lua
patch
|
blob
|
history
diff --git
a/core/s2smanager.lua
b/core/s2smanager.lua
index ae834a9c31618583c781922cc4dd575bd304e650..7827381d4b1eee375a674448fc7e760f2048bf82 100644
(file)
--- a/
core/s2smanager.lua
+++ b/
core/s2smanager.lua
@@
-43,7
+43,7
@@
local log = logger_init("s2smanager");
local sha256_hash = require "util.hashes".sha256;
local sha256_hash = require "util.hashes".sha256;
-local dialback_secret =
"This is very secret!!! Ha!"
;
+local dialback_secret =
sha256_hash(tostring{} .. math.random() .. socket.gettime(), true)
;
local dns = require "net.dns";
local dns = require "net.dns";