Commit 9d48b3b0 authored by Jonathan Rudenberg's avatar Jonathan Rudenberg

Add PeerStatic method to HandshakeState

Signed-off-by: default avatarJonathan Rudenberg <>
parent b16acbb3
......@@ -403,3 +403,10 @@ func (s *HandshakeState) ReadMessage(out, message []byte) ([]byte, *CipherState,
func (s *HandshakeState) ChannelBinding() []byte {
// PeerStatic returns the static key provided by the remote peer during
// a handshake. It is an error to call this method if a handshake message
// containing a static key has not been read.
func (s *HandshakeState) PeerStatic() []byte {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment