mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Merge branch 'ticket16901'
This commit is contained in:
commit
0e60c52c6c
3
changes/bug16901
Normal file
3
changes/bug16901
Normal file
@ -0,0 +1,3 @@
|
||||
o Minor features (compilation):
|
||||
- Give a warning as early as possible when trying to build with an
|
||||
unsupported OpenSSL version. Closes ticket 16901.
|
10
configure.ac
10
configure.ac
@ -632,6 +632,16 @@ save_CPPFLAGS="$CPPFLAGS"
|
||||
LIBS="$TOR_OPENSSL_LIBS $LIBS"
|
||||
LDFLAGS="$TOR_LDFLAGS_openssl $LDFLAGS"
|
||||
CPPFLAGS="$TOR_CPPFLAGS_openssl $CPPFLAGS"
|
||||
|
||||
AC_TRY_COMPILE([
|
||||
#include <openssl/opensslv.h>
|
||||
#if OPENSSL_VERSION_NUMBER < 0x1000000fL
|
||||
#error "too old"
|
||||
#endif
|
||||
], [],
|
||||
[ ],
|
||||
[ AC_ERROR([OpenSSL is too old. We require 1.0.0 or later. You can specify a path to a newer one with --with-openssl-dir.]) ])
|
||||
|
||||
AC_CHECK_MEMBERS([struct ssl_method_st.get_cipher_by_char], , ,
|
||||
[#include <openssl/ssl.h>
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user