mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-03 20:17:36 +03:00
Fix Client Certificate Verification when Using Extended Master Secret (#143)
This commit is contained in:
parent
fb99df2a2e
commit
ef21c925ea
2 changed files with 10 additions and 3 deletions
|
@ -522,8 +522,7 @@ var extendedMasterSecretLabel = []byte("extended master secret")
|
|||
|
||||
// extendedMasterFromPreMasterSecret generates the master secret from the pre-master
|
||||
// secret and session hash. See https://tools.ietf.org/html/rfc7627#section-4
|
||||
func extendedMasterFromPreMasterSecret(version uint16, suite *cipherSuite, preMasterSecret []byte, fh finishedHash) []byte {
|
||||
sessionHash := fh.Sum()
|
||||
func extendedMasterFromPreMasterSecret(version uint16, suite *cipherSuite, preMasterSecret []byte, sessionHash []byte) []byte {
|
||||
masterSecret := make([]byte, masterSecretLength)
|
||||
prfForVersion(version, suite)(masterSecret, preMasterSecret, extendedMasterSecretLabel, sessionHash)
|
||||
return masterSecret
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue