fix test_ssl build

This commit is contained in:
arvidn 2017-02-13 21:56:20 -05:00 committed by Arvid Norberg
parent 7e166ae9c4
commit 49254e5663
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/file.hpp"
#include "libtorrent/session_status.hpp"
#include "libtorrent/torrent_info.hpp"
#include "libtorrent/hex.hpp" // for to_hex, from_hex
#include "libtorrent/hex.hpp" // for to_hex
#include "libtorrent/time.hpp"
#include "test.hpp"
@ -456,7 +456,7 @@ bool try_connect(libtorrent::session& ses1, int port
if (flags & valid_sni_hash)
{
std::string name = to_hex(t->info_hash().to_string());
std::string name = aux::to_hex(t->info_hash());
std::printf("SNI: %s\n", name.c_str());
SSL_set_tlsext_host_name(ssl_sock.native_handle(), name.c_str());
}