Procházet zdrojové kódy

Test interaction of RSA key exchange and ClientHello.version.

If we see garbage in ClientHello.version and then select static RSA,
that garbage is what goes in the premaster.

Change-Id: I65190a44439745e6b5ffaf7669f063da725c8097
Reviewed-on: https://boringssl-review.googlesource.com/11092
Reviewed-by: Adam Langley <agl@google.com>
Commit-Queue: Adam Langley <agl@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
kris/onging/CECPQ3_patch15
David Benjamin před 8 roky
committed by CQ bot account: commit-bot@chromium.org
rodič
revize
e63d9d7625
1 změnil soubory, kde provedl 14 přidání a 0 odebrání
  1. +14
    -0
      ssl/test/runner/runner.go

+ 14
- 0
ssl/test/runner/runner.go Zobrazit soubor

@@ -6930,6 +6930,20 @@ func addRSAClientKeyExchangeTests() {
expectedError: ":DECRYPTION_FAILED_OR_BAD_RECORD_MAC:",
})
}

// The server must compare whatever was in ClientHello.version for the
// RSA premaster.
testCases = append(testCases, testCase{
testType: serverTest,
name: "SendClientVersion-RSA",
config: Config{
CipherSuites: []uint16{TLS_RSA_WITH_AES_128_GCM_SHA256},
Bugs: ProtocolBugs{
SendClientVersion: 0x1234,
},
},
flags: []string{"-max-version", strconv.Itoa(VersionTLS12)},
})
}

var testCurves = []struct {


Načítá se…
Zrušit
Uložit