浏览代码

cleanup: removes Committer interface

v1.2.3
Kris Kwiatkowski 6 年前
committed by Kris Kwiatkowski
父节点
当前提交
1678dc5074
共有 2 个文件被更改,包括 0 次插入10 次删除
  1. +0
    -6
      13.go
  2. +0
    -4
      handshake_server.go

+ 0
- 6
13.go 查看文件

@@ -152,12 +152,6 @@ CurvePreferenceLoop:
return errors.New("tls: HelloRetryRequest not implemented") // TODO(filippo)
}

if committer, ok := c.conn.(Committer); ok {
if err := committer.Commit(); err != nil {
return err
}
}

privateKey, serverKS, err := config.generateKeyShare(ks.group)
if err != nil {
c.sendAlert(alertInternalError)


+ 0
- 4
handshake_server.go 查看文件

@@ -16,10 +16,6 @@ import (
"sync/atomic"
)

type Committer interface {
Commit() error
}

// serverHandshakeState contains details of a server handshake in progress.
// It's discarded once the handshake has completed.
type serverHandshakeState struct {


正在加载...
取消
保存