diff options
author | Brian Morris <bmorris2@cisco.com> | 2024-04-23 20:17:10 +0000 |
---|---|---|
committer | Brian Morris <bmorris2@cisco.com> | 2024-04-23 20:17:10 +0000 |
commit | c0580f91a14cb4a68f1978c6702a91efc46d12a9 (patch) | |
tree | e25b8689a29e530bb664b3a7c11aa73d2daf6456 /src/plugins/tlsopenssl | |
parent | 6edc6bcc31f500cf704483673ce3e0015dc10e4d (diff) |
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
Diffstat (limited to 'src/plugins/tlsopenssl')
-rw-r--r-- | src/plugins/tlsopenssl/tls_openssl.c | 7 |
1 files changed, 1 insertions, 6 deletions
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; |