Skip to content

Commit

Permalink
docs: add Start documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
geolffreym committed May 5, 2023
1 parent e38a250 commit ceb3a16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ func (h *handshake) Valid(enc, dec CipherState) error {
return nil
}

// Start initialize handshake based on peer rol
// If peer is initiator then Initiate method run else Answer
func (h *handshake) Start() error {
if h.i {
// Run as initiator role
Expand Down

0 comments on commit ceb3a16

Please sign in to comment.