Bläddra i källkod

Completely remove P-224 from the TLS stack.

It already wasn't in the default list and no one enables it. Remove it
altogether. (It's also gone from the current TLS 1.3 draft.)

Change-Id: I143d07d390d186252204df6bdb8ffd22649f80e3
Reviewed-on: https://boringssl-review.googlesource.com/6775
Reviewed-by: Adam Langley <agl@google.com>
kris/onging/CECPQ3_patch15
David Benjamin 8 år sedan
committed by Adam Langley
förälder
incheckning
64d9250e2f
3 ändrade filer med 4 tillägg och 7 borttagningar
  1. +0
    -1
      ssl/t1_lib.c
  2. +1
    -1
      ssl/test/bssl_shim.cc
  3. +3
    -5
      ssl/test/runner/runner.go

+ 0
- 1
ssl/t1_lib.c Visa fil

@@ -343,7 +343,6 @@ struct tls_curve {

/* ECC curves from RFC4492. */
static const struct tls_curve tls_curves[] = {
{21, NID_secp224r1, "P-224"},
{23, NID_X9_62_prime256v1, "P-256"},
{24, NID_secp384r1, "P-384"},
{25, NID_secp521r1, "P-521"},


+ 1
- 1
ssl/test/bssl_shim.cc Visa fil

@@ -1239,7 +1239,7 @@ static bool DoExchange(ScopedSSL_SESSION *out_session, SSL_CTX *ssl_ctx,
}
if (config->enable_all_curves) {
static const int kAllCurves[] = {
NID_secp224r1, NID_X9_62_prime256v1, NID_secp384r1, NID_secp521r1,
NID_X9_62_prime256v1, NID_secp384r1, NID_secp521r1,
};
if (!SSL_set1_curves(ssl.get(), kAllCurves,
sizeof(kAllCurves) / sizeof(kAllCurves[0]))) {


+ 3
- 5
ssl/test/runner/runner.go Visa fil

@@ -1691,14 +1691,13 @@ func addBasicTests() {
{
name: "UnsupportedCurve",
config: Config{
CipherSuites: []uint16{TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256},
// BoringSSL implements P-224 but doesn't enable it by
// default.
CurvePreferences: []CurveID{CurveP224},
CipherSuites: []uint16{TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256},
CurvePreferences: []CurveID{CurveP256},
Bugs: ProtocolBugs{
IgnorePeerCurvePreferences: true,
},
},
flags: []string{"-p384-only"},
shouldFail: true,
expectedError: ":WRONG_CURVE:",
},
@@ -4622,7 +4621,6 @@ var testCurves = []struct {
name string
id CurveID
}{
{"P-224", CurveP224},
{"P-256", CurveP256},
{"P-384", CurveP384},
{"P-521", CurveP521},


Laddar…
Avbryt
Spara