From 953535c65f34da6d55db0662060775684af475e1 Mon Sep 17 00:00:00 2001 From: Nathan Brown Date: Thu, 8 Mar 2018 12:40:28 -0800 Subject: [PATCH] Add a getter for handshake msgIdx (#27) --- state.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/state.go b/state.go index 8b7b9ba..723b368 100644 --- a/state.go +++ b/state.go @@ -490,3 +490,8 @@ func (s *HandshakeState) ChannelBinding() []byte { func (s *HandshakeState) PeerStatic() []byte { return s.rs } + +// MessageIndex returns the current handshake message id +func (s *HandshakeState) MessageIndex() int { + return s.msgIdx +}