fix build

This commit is contained in:
arvidn 2016-07-29 20:24:11 -04:00
parent e5ecd73751
commit 2bdeb9aa6b
1 changed files with 1 additions and 2 deletions

View File

@ -46,7 +46,6 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/aux_/disable_warnings_push.hpp" #include "libtorrent/aux_/disable_warnings_push.hpp"
#include <boost/limits.hpp>
#include <boost/function_equal.hpp> #include <boost/function_equal.hpp>
#include <boost/make_shared.hpp> #include <boost/make_shared.hpp>
#include <boost/asio/ip/v6_only.hpp> #include <boost/asio/ip/v6_only.hpp>
@ -276,7 +275,7 @@ namespace aux {
return SSL_TLSEXT_ERR_ALERT_FATAL; return SSL_TLSEXT_ERR_ALERT_FATAL;
sha1_hash info_hash; 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 // the server name is not a valid hex-encoded info-hash
if (!valid) if (!valid)