tris: implement Committer
This commit is contained in:
parent
8052dc002f
commit
ea17b0c225
@ -16,6 +16,10 @@ import (
|
||||
"io"
|
||||
)
|
||||
|
||||
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 {
|
||||
@ -268,6 +272,13 @@ Curves:
|
||||
hs.hello.scts = hs.cert.SignedCertificateTimestamps
|
||||
}
|
||||
|
||||
if committer, ok := c.conn.(Committer); ok {
|
||||
err = committer.Commit()
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
}
|
||||
|
||||
if priv, ok := hs.cert.PrivateKey.(crypto.Signer); ok {
|
||||
switch priv.Public().(type) {
|
||||
case *ecdsa.PublicKey:
|
||||
|
Loading…
Reference in New Issue
Block a user