From 07f01d1ab5e68fc042356fd90fa07c199791b29c Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 10 Apr 2020 19:35:06 +0200 Subject: Ported to Debian 10 --- https.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'https.h') diff --git a/https.h b/https.h index 1362e59..e2aabbb 100644 --- a/https.h +++ b/https.h @@ -1,12 +1,21 @@ #pragma once +#include + +// Support both boost in Debian unstable (BOOST_LATEST) and in stable (boost 1.67) +#if BOOST_VERSION >= 107100 +#define BOOST_LATEST +#endif + #include #include #include #include #include +#ifdef BOOST_LATEST #include +#endif #include #include "config.h" @@ -16,7 +25,11 @@ namespace ssl = boost::asio::ssl; // from namespace HTTPS { +#ifdef BOOST_LATEST static const ssl::context_base::method tls_method {ssl::context::tlsv13}; +#else +static const ssl::context_base::method tls_method {ssl::context::tlsv12}; +#endif class Server: public ::Server { -- cgit v1.2.3