소스 검색

crypto/tls: use negotiated version for fallback check

BoGo: FallbackSCSV-VersionMatch-TLS13
tls13
Filippo Valsorda 7 년 전
committed by Peter Wu
부모
커밋
58aab36b6e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      handshake_server.go

+ 1
- 1
handshake_server.go 파일 보기

@@ -350,7 +350,7 @@ Curves:
for _, id := range hs.clientHello.cipherSuites {
if id == TLS_FALLBACK_SCSV {
// The client is doing a fallback connection.
if hs.clientHello.vers < c.config.maxVersion() {
if c.vers < c.config.maxVersion() {
c.sendAlert(alertInappropriateFallback)
return false, errors.New("tls: client using inappropriate protocol fallback")
}


불러오는 중...
취소
저장