diff options
author | jsing <> | 2020-04-19 14:54:14 +0000 |
---|---|---|
committer | jsing <> | 2020-04-19 14:54:14 +0000 |
commit | 5d4d24ed48bfae58d1e947c72284c1f5396f56d8 (patch) | |
tree | b9cba305da30974ff6f28185152bddbe24e26421 /src/lib | |
parent | f62fe75ec63150838efb81a1880bc59c136a3a2e (diff) | |
download | openbsd-5d4d24ed48bfae58d1e947c72284c1f5396f56d8.tar.gz openbsd-5d4d24ed48bfae58d1e947c72284c1f5396f56d8.tar.bz2 openbsd-5d4d24ed48bfae58d1e947c72284c1f5396f56d8.zip |
Provide TLSv1.3 cipher suite aliases to match the names used in RFC 8446.
ok beck@ inoguchi@ tb@
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/ssl_ciph.c | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_ciph.c b/src/lib/libssl/ssl_ciph.c index 9ba8f40437..37417efc08 100644 --- a/src/lib/libssl/ssl_ciph.c +++ b/src/lib/libssl/ssl_ciph.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_ciph.c,v 1.116 2020/04/18 14:41:05 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_ciph.c,v 1.117 2020/04/19 14:54:14 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -396,6 +396,28 @@ static const SSL_CIPHER cipher_aliases[] = { | |||
396 | .algorithm_ssl = SSL_TLSV1_3, | 396 | .algorithm_ssl = SSL_TLSV1_3, |
397 | }, | 397 | }, |
398 | 398 | ||
399 | /* cipher suite aliases */ | ||
400 | #ifdef LIBRESSL_HAS_TLS1_3 | ||
401 | { | ||
402 | .valid = 1, | ||
403 | .name = "TLS_AES_128_GCM_SHA256", | ||
404 | .id = TLS1_3_CK_AES_128_GCM_SHA256, | ||
405 | .algorithm_ssl = SSL_TLSV1_3, | ||
406 | }, | ||
407 | { | ||
408 | .valid = 1, | ||
409 | .name = "TLS_AES_256_GCM_SHA384", | ||
410 | .id = TLS1_3_CK_AES_256_GCM_SHA384, | ||
411 | .algorithm_ssl = SSL_TLSV1_3, | ||
412 | }, | ||
413 | { | ||
414 | .valid = 1, | ||
415 | .name = "TLS_CHACHA20_POLY1305_SHA256", | ||
416 | .id = TLS1_3_CK_CHACHA20_POLY1305_SHA256, | ||
417 | .algorithm_ssl = SSL_TLSV1_3, | ||
418 | }, | ||
419 | #endif | ||
420 | |||
399 | /* strength classes */ | 421 | /* strength classes */ |
400 | { | 422 | { |
401 | .name = SSL_TXT_LOW, | 423 | .name = SSL_TXT_LOW, |
@@ -961,7 +983,8 @@ ssl_cipher_process_rulestr(const char *rule_str, CIPHER_ORDER **head_p, | |||
961 | while (((ch >= 'A') && (ch <= 'Z')) || | 983 | while (((ch >= 'A') && (ch <= 'Z')) || |
962 | ((ch >= '0') && (ch <= '9')) || | 984 | ((ch >= '0') && (ch <= '9')) || |
963 | ((ch >= 'a') && (ch <= 'z')) || | 985 | ((ch >= 'a') && (ch <= 'z')) || |
964 | (ch == '-') || (ch == '.')) { | 986 | (ch == '-') || (ch == '.') || |
987 | (ch == '_')) { | ||
965 | ch = *(++l); | 988 | ch = *(++l); |
966 | buflen++; | 989 | buflen++; |
967 | } | 990 | } |