Change function name verifyPeerCertificate->verifyPeerHandshakeSignature
This commit is contained in:
parent
91d6db578b
commit
b1d6c0aeaa
6
13.go
6
13.go
@ -328,7 +328,7 @@ func (hs *serverHandshakeState) readClientFinished13(hasConfirmLock bool) error
|
|||||||
return unexpectedMessageError(certVerify, msg)
|
return unexpectedMessageError(certVerify, msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
err, alertCode := verifyPeerCertificate(
|
err, alertCode := verifyPeerHandshakeSignature(
|
||||||
certVerify,
|
certVerify,
|
||||||
pubKey,
|
pubKey,
|
||||||
supportedSignatureAlgorithms13,
|
supportedSignatureAlgorithms13,
|
||||||
@ -841,7 +841,7 @@ func (hs *clientHandshakeState) processEncryptedExtensions(ee *encryptedExtensio
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func verifyPeerCertificate(
|
func verifyPeerHandshakeSignature(
|
||||||
certVerify *certificateVerifyMsg,
|
certVerify *certificateVerifyMsg,
|
||||||
pubKey crypto.PublicKey,
|
pubKey crypto.PublicKey,
|
||||||
signAlgosKnown []SignatureScheme,
|
signAlgosKnown []SignatureScheme,
|
||||||
@ -1048,7 +1048,7 @@ func (hs *clientHandshakeState) doTLS13Handshake() error {
|
|||||||
c.sendAlert(alertUnexpectedMessage)
|
c.sendAlert(alertUnexpectedMessage)
|
||||||
return unexpectedMessageError(certVerifyMsg, msg)
|
return unexpectedMessageError(certVerifyMsg, msg)
|
||||||
}
|
}
|
||||||
err, alertCode := verifyPeerCertificate(
|
err, alertCode := verifyPeerHandshakeSignature(
|
||||||
certVerifyMsg,
|
certVerifyMsg,
|
||||||
hs.c.peerCertificates[0].PublicKey,
|
hs.c.peerCertificates[0].PublicKey,
|
||||||
hs.hello.supportedSignatureAlgorithms,
|
hs.hello.supportedSignatureAlgorithms,
|
||||||
|
Loading…
Reference in New Issue
Block a user