commit 5111f6b13ec1d1d391018d9d8175bef6838925af parent 697137d81c704aeb859c905a843ec2049d16f4a4 Author: Nick Mathewson <nickm@torproject.org> Date: Tue, 6 May 2025 08:41:14 -0400 Stop detecting SSL_get_client_ciphers: we enver use it. Diffstat:
| M | configure.ac | | | 3 | +-- |
| M | src/test/test_tortls_openssl.c | | | 20 | -------------------- |
2 files changed, 1 insertion(+), 22 deletions(-)
diff --git a/configure.ac b/configure.ac @@ -1127,8 +1127,7 @@ AC_CHECK_FUNCS([ \ EVP_PBE_scrypt \ SSL_CIPHER_find \ SSL_CTX_set1_groups_list \ - SSL_CTX_set_security_level \ - SSL_get_client_ciphers + SSL_CTX_set_security_level ]) fi # enable_nss diff --git a/src/test/test_tortls_openssl.c b/src/test/test_tortls_openssl.c @@ -497,26 +497,6 @@ test_tortls_cert_get_key(void *ignored) } #endif /* !defined(OPENSSL_OPAQUE) */ -#ifndef HAVE_SSL_GET_CLIENT_CIPHERS -static SSL_CIPHER * -get_cipher_by_name(const char *name) -{ - int i; - const SSL_METHOD *method = SSLv23_method(); - int num = method->num_ciphers(); - - for (i = 0; i < num; ++i) { - const SSL_CIPHER *cipher = method->get_cipher(i); - const char *ciphername = SSL_CIPHER_get_name(cipher); - if (!strcmp(ciphername, name)) { - return (SSL_CIPHER *)cipher; - } - } - - return NULL; -} -#endif /* !defined(HAVE_SSL_GET_CLIENT_CIPHERS) */ - #ifndef OPENSSL_OPAQUE static void test_tortls_get_ciphersuite_name(void *ignored)