]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use SSL_get_client_ciphers() on openssl 1.1+, not SSL_get_ciphers...
authorNick Mathewson <nickm@torproject.org>
Sun, 13 Sep 2015 15:51:51 +0000 (11:51 -0400)
committerNick Mathewson <nickm@torproject.org>
Sun, 13 Sep 2015 15:51:51 +0000 (11:51 -0400)
(which isn't correct.)

Fixes bug 17047; bugfix on 0.2.7.2-alpha, introduced by the merge in
0030765e04d8dfe3dfaf8124b01a4d578b7d8ceb, apparently.

changes/bug17047 [new file with mode: 0644]
src/common/tortls.c

diff --git a/changes/bug17047 b/changes/bug17047
new file mode 100644 (file)
index 0000000..3ff40ad
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes (portability):
+    - Restore correct operation of TLS client-cipher detection on
+      OpenSSL 1.1.  Fixes bug 14047; bugfix on 0.2.7.2-alpha.
index 7447822d4858d9bbf2f0edbac545462343364022..20c898456a1ecca5cee9b1cf76a9eea107ed8cf7 100644 (file)
@@ -1563,7 +1563,7 @@ tor_tls_client_is_using_v2_ciphers(const SSL *ssl)
 {
   STACK_OF(SSL_CIPHER) *ciphers;
 #ifdef HAVE_SSL_GET_CLIENT_CIPHERS
-  ciphers = SSL_get_ciphers(ssl);
+  ciphers = SSL_get_client_ciphers(ssl);
 #else
   SSL_SESSION *session;
   if (!(session = SSL_get_session((SSL *)ssl))) {