tls: don't upper-case cipher string

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
This commit is contained in:
Brian Morris
2024-04-23 20:17:10 +00:00
parent 6edc6bcc31
commit c0580f91a1

View 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;