From b403e0156998745729407494107d79548545f041 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 15 Apr 2020 21:41:57 +0200 Subject: [PATCH] support old boost version --- src/torrent.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/torrent.cpp b/src/torrent.cpp index c4e5880a2..08b752165 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -1642,7 +1642,11 @@ bool is_downloading_state(int const st) // create the SSL context for this torrent. We need to // inject the root certificate, and no other, to // verify other peers against +#if BOOST_VERSION >= 106400 std::unique_ptr ctx(new context(context::tls)); +#else + std::unique_ptr ctx(new context(context::tlsv12)); +#endif if (!ctx) {