]> Cypherpunks.ru repositories - govpn.git/blobdiff - src/cypherpunks.ru/govpn/handshake.go
Stylistic fixes
[govpn.git] / src / cypherpunks.ru / govpn / handshake.go
index bc963d1204d7d914202d2731df51e1cdb550f0d5..c310fded72b7fa0806075667c78248856a30f62a 100644 (file)
@@ -163,15 +163,13 @@ func idTag(id *PeerID, timeSync int, data []byte) ([]byte, error) {
        return sum[len(sum)-8:], nil
 }
 
-// HandshakeStarts start handshake's procedure from the client.
+// HandshakeStarts starts handshake's procedure from the client.
 // It is the entry point for starting the handshake procedure.
 // First handshake packet will be sent immediately.
 func HandshakeStart(addr string, conn io.Writer, conf *PeerConf) (*Handshake, error) {
        state := NewHandshake(addr, conn, conf)
-       var (
-               dhPubRepr *[32]byte
-               err       error
-       )
+       var dhPubRepr *[32]byte
+       var err error
        if state.dhPriv, dhPubRepr, err = dhKeypairGen(); err != nil {
                return nil, errors.Wrap(err, "dhKeypairGen")
        }