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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user