Pārlūkot izejas kodu

Use autoconf, not OPENSSL_VERSION_NUMBER, to detect SSL_CIPHER_find

Repairs build with libressl
Nick Mathewson 9 gadi atpakaļ
vecāks
revīzija
ff835e2328
2 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 1 0
      configure.ac
  2. 1 1
      src/common/tortls.c

+ 1 - 0
configure.ac

@@ -639,6 +639,7 @@ AC_CHECK_FUNCS([ \
 		SSL_get_server_random \
                 SSL_get_client_ciphers \
                 SSL_get_client_random \
+		SSL_CIPHER_find \
 	       ])
 LIBS="$save_LIBS"
 LDFLAGS="$save_LDFLAGS"

+ 1 - 1
src/common/tortls.c

@@ -1487,7 +1487,7 @@ static int
 find_cipher_by_id(const SSL *ssl, const SSL_METHOD *m, uint16_t cipher)
 {
   const SSL_CIPHER *c;
-#if OPENSSL_VERSION_NUMBER >= OPENSSL_V_SERIES(1,0,2)
+#ifdef HAVE_SSL_CIPHER_FIND
   {
     unsigned char cipherid[3];
     tor_assert(ssl);