From: Nick Mathewson Date: Tue, 6 May 2025 12:41:14 +0000 (-0400) Subject: Stop detecting SSL_get_client_ciphers: we enver use it. X-Git-Tag: tor-0.4.9.3-alpha~55^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5111f6b13ec1d1d391018d9d8175bef6838925af;p=thirdparty%2Ftor.git Stop detecting SSL_get_client_ciphers: we enver use it. --- diff --git a/configure.ac b/configure.ac index 4e73a848cc..4752190883 100644 --- 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 index b4b19c31e8..174198f937 100644 --- 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)