diff options
author | zelig <viktor.tron@gmail.com> | 2015-01-26 22:50:12 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-02-06 07:00:35 +0800 |
commit | 4499743522d32990614c7d900d746e998a1b81ed (patch) | |
tree | 431615b51e0e7f9ae657ff5daf5ee29c969ec445 /p2p/peer.go | |
parent | 54252ede3177cb169fbb9e4824a31ce58cb0316c (diff) | |
download | dexon-4499743522d32990614c7d900d746e998a1b81ed.tar dexon-4499743522d32990614c7d900d746e998a1b81ed.tar.gz dexon-4499743522d32990614c7d900d746e998a1b81ed.tar.bz2 dexon-4499743522d32990614c7d900d746e998a1b81ed.tar.lz dexon-4499743522d32990614c7d900d746e998a1b81ed.tar.xz dexon-4499743522d32990614c7d900d746e998a1b81ed.tar.zst dexon-4499743522d32990614c7d900d746e998a1b81ed.zip |
apply handshake related improvements from p2p.crypto branch
Diffstat (limited to 'p2p/peer.go')
-rw-r--r-- | p2p/peer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/peer.go b/p2p/peer.go index 99f1a61d3..62df58f8d 100644 --- a/p2p/peer.go +++ b/p2p/peer.go @@ -343,7 +343,7 @@ func (p *Peer) handleCryptoHandshake() (loop readLoop, err error) { // it is survived by an encrypted readwriter var initiator bool var sessionToken []byte - sessionToken = make([]byte, keyLen) + sessionToken = make([]byte, shaLen) if _, err = rand.Read(sessionToken); err != nil { return } |