aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/handshake_test.go
Commit message (Collapse)AuthorAgeFilesLines
* p2p: improve disconnect signaling at handshake timeFelix Lange2015-04-101-2/+2
| | | | | | | As of this commit, p2p will disconnect nodes directly after the encryption handshake if too many peer connections are active. Errors in the protocol handshake packet are now handled more politely by sending a disconnect packet before closing the connection.
* p2p: make encryption handshake code easier to followFelix Lange2015-03-041-60/+65
| | | | | | | | | This mostly changes how information is passed around. Instead of using many function parameters and return values, put the entire state in a struct and pass that. This also adds back derivation of ecdhe-shared-secret. I deleted it by accident in a previous refactoring.
* p2p: encrypted and authenticated RLPx frame I/OFelix Lange2015-03-041-79/+21
|
* p2p: disable encryption handshakeFelix Lange2015-02-191-0/+224
The diff is a bit bigger than expected because the protocol handshake logic has moved out of Peer. This is necessary because the protocol handshake will have custom framing in the final protocol.