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) {