From c0580f91a14cb4a68f1978c6702a91efc46d12a9 Mon Sep 17 00:00:00 2001 From: Brian Morris Date: Tue, 23 Apr 2024 20:17:10 +0000 Subject: tls: don't upper-case cipher string Change-Id: Ic8308046610aa5d49d9595bcd450f9651b9915e4 Signed-off-by: Brian Morris The string is allowed to contain lower case characters, for example "TLSv1.2" Type: fix --- src/plugins/tlsopenssl/tls_openssl.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/plugins/tlsopenssl') diff --git a/src/plugins/tlsopenssl/tls_openssl.c b/src/plugins/tlsopenssl/tls_openssl.c index 98982439b96..5d172a0adcf 100644 --- a/src/plugins/tlsopenssl/tls_openssl.c +++ b/src/plugins/tlsopenssl/tls_openssl.c @@ -1179,18 +1179,13 @@ int tls_openssl_set_ciphers (char *ciphers) { openssl_main_t *om = &openssl_main; - int i; if (!ciphers) { return -1; } - vec_validate (om->ciphers, strlen (ciphers)); - for (i = 0; i < vec_len (om->ciphers) - 1; i++) - { - om->ciphers[i] = toupper (ciphers[i]); - } + vec_validate_init_c_string (om->ciphers, ciphers, strlen (ciphers)); return 0; -- cgit 1.2.3-korg