diff options
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 | } |
