forked from premiere/premiere-libtorrent
support old boost version
This commit is contained in:
parent
eb50e9e5d2
commit
b403e01569
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue