tls: don't upper-case cipher string 80/40780/1
authorBrian Morris <bmorris2@cisco.com>
Tue, 23 Apr 2024 20:17:10 +0000 (20:17 +0000)
committerBrian Morris <bmorris2@cisco.com>
Tue, 23 Apr 2024 20:17:10 +0000 (20:17 +0000)
Change-Id: Ic8308046610aa5d49d9595bcd450f9651b9915e4
Signed-off-by: Brian Morris <bmorris2@cisco.com>
The string is allowed to contain lower case characters, for example "TLSv1.2"
Type: fix

src/plugins/tlsopenssl/tls_openssl.c

index 9898243..5d172a0 100644 (file)
@@ -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;