]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Stop detecting SSL_get_client_ciphers: we enver use it.
authorNick Mathewson <nickm@torproject.org>
Tue, 6 May 2025 12:41:14 +0000 (08:41 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 6 May 2025 12:41:14 +0000 (08:41 -0400)
configure.ac
src/test/test_tortls_openssl.c

index 4e73a848cc16942b27fd33b77d7caf50b823912f..4752190883d3b3f26002f46386ff7eb09dcf0df1 100644 (file)
@@ -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
index b4b19c31e8514963ef1142b526cdbc3a03263024..174198f937b43cb4a629f279b9a18e2ccf8b98e4 100644 (file)
@@ -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)