support old boost version

This commit is contained in:
Arvid Norberg 2020-04-15 21:41:57 +02:00 committed by Arvid Norberg
parent eb50e9e5d2
commit b403e01569
1 changed files with 4 additions and 0 deletions

View File

@ -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<context> ctx(new context(context::tls));
#else
std::unique_ptr<context> ctx(new context(context::tlsv12));
#endif
if (!ctx)
{