diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 90bee7188..4233f38eb 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -46,7 +46,6 @@ POSSIBILITY OF SUCH DAMAGE. #include "libtorrent/aux_/disable_warnings_push.hpp" -#include #include #include #include @@ -276,7 +275,7 @@ namespace aux { return SSL_TLSEXT_ERR_ALERT_FATAL; sha1_hash info_hash; - bool valid = from_hex(servername, 40, info_hash.data()); + bool valid = aux::from_hex({servername, 40}, info_hash.data()); // the server name is not a valid hex-encoded info-hash if (!valid)