Remove Fake TLS 1.3 code from prf.go.
Change-Id: Ie46d45cdb07c692a789594e13040a1ce9d6cf83d Reviewed-on: https://boringssl-review.googlesource.com/12640 Reviewed-by: David Benjamin <davidben@google.com> Commit-Queue: David Benjamin <davidben@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
This commit is contained in:
parent
f3c8f8d19d
commit
dfec182af4
@ -129,14 +129,8 @@ func prfForVersion(version uint16, suite *cipherSuite) func(result, secret, labe
|
||||
return prf30
|
||||
case VersionTLS10, VersionTLS11:
|
||||
return prf10
|
||||
// TODO(nharper): VersionTLS13 is in the case statement below only to
|
||||
// support Fake TLS 1.3. Real TLS 1.3 should never call this function.
|
||||
// Once we no longer support Fake TLS 1.3, the VersionTLS13 should be
|
||||
// removed from this case statement.
|
||||
case VersionTLS12, VersionTLS13:
|
||||
if version == VersionTLS12 {
|
||||
return prf12(suite.hash().New)
|
||||
}
|
||||
case VersionTLS12:
|
||||
return prf12(suite.hash().New)
|
||||
}
|
||||
panic("unknown version")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user