Lint 13.go
This commit is contained in:
parent
c20de2f694
commit
81ee64180a
8
13.go
8
13.go
@ -322,7 +322,7 @@ func (hs *serverHandshakeState) readClientFinished13(hasConfirmLock bool) error
|
||||
return err
|
||||
}
|
||||
|
||||
certVerify, ok := msg.(*certificateVerifyMsg);
|
||||
certVerify, ok := msg.(*certificateVerifyMsg)
|
||||
if !ok {
|
||||
c.sendAlert(alertUnexpectedMessage)
|
||||
return unexpectedMessageError(certVerify, msg)
|
||||
@ -333,7 +333,7 @@ func (hs *serverHandshakeState) readClientFinished13(hasConfirmLock bool) error
|
||||
pubKey,
|
||||
supportedSignatureAlgorithms13,
|
||||
hs.keySchedule.transcriptHash.Sum(nil),
|
||||
"TLS 1.3, client CertificateVerify");
|
||||
"TLS 1.3, client CertificateVerify")
|
||||
if err != nil {
|
||||
c.sendAlert(alertCode)
|
||||
return err
|
||||
@ -824,7 +824,7 @@ func (hs *serverHandshakeState) traceErr(err error) {
|
||||
}
|
||||
}
|
||||
|
||||
func getCertsFromEntries(certEntries []certificateEntry) ([][]byte) {
|
||||
func getCertsFromEntries(certEntries []certificateEntry) [][]byte {
|
||||
certs := make([][]byte, len(certEntries))
|
||||
for i, cert := range certEntries {
|
||||
certs[i] = cert.data
|
||||
@ -1053,7 +1053,7 @@ func (hs *clientHandshakeState) doTLS13Handshake() error {
|
||||
hs.c.peerCertificates[0].PublicKey,
|
||||
hs.hello.supportedSignatureAlgorithms,
|
||||
hs.keySchedule.transcriptHash.Sum(nil),
|
||||
"TLS 1.3, server CertificateVerify");
|
||||
"TLS 1.3, server CertificateVerify")
|
||||
if err != nil {
|
||||
c.sendAlert(alertCode)
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user