Commit b16acbb3 authored by Jonathan Rudenberg's avatar Jonathan Rudenberg

Add method to get channel binding

Signed-off-by: default avatarJonathan Rudenberg <jonathan@titanous.com>
parent ad132441
......@@ -396,3 +396,10 @@ func (s *HandshakeState) ReadMessage(out, message []byte) ([]byte, *CipherState,
return out, nil, nil, nil
}
// ChannelBinding provides a value that uniquely identifies the session and can
// be used as a channel binding. It is an error to call this method before the
// handshake is complete.
func (s *HandshakeState) ChannelBinding() []byte {
return s.ss.h
}
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