Skip to content

Commit 698b015

Browse files
committed
Update Boost.Asio API.
1 parent 5b83e3e commit 698b015

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Networking/CryptoPlayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
class CryptoPlayer : public MultiPlayer<ssl_socket*>
2222
{
2323
ssl_ctx ctx;
24-
boost::asio::io_service io_service;
24+
ssl_service io_service;
2525

2626
vector<ssl_socket*> other_sockets;
2727

Networking/PlayerCtSocket.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class PlayerCtSocket : public osuCrypto::SocketInterface
3232
{
3333
for (auto& buffer : buffers)
3434
{
35-
auto data = boost::asio::buffer_cast<osuCrypto::u8*>(buffer);
35+
auto data = (octet*) buffer.data();
3636
auto size = boost::asio::buffer_size(buffer);
3737
this->buffers.push_back({data, size});
3838
}

Networking/ssl_sockets.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#define SSL_DIR "Player-Data/"
1919
#endif
2020

21-
typedef boost::asio::io_service ssl_service;
21+
typedef boost::asio::io_context ssl_service;
2222

2323
void check_ssl_file(string filename);
2424
void ssl_error(string side, string other, string server, exception& e);
@@ -46,7 +46,7 @@ class ssl_socket : public boost::asio::ssl::stream<boost::asio::ip::tcp::socket>
4646
typedef boost::asio::ssl::stream<boost::asio::ip::tcp::socket> parent;
4747

4848
public:
49-
ssl_socket(boost::asio::io_service& io_service,
49+
ssl_socket(ssl_service& io_service,
5050
boost::asio::ssl::context& ctx, int plaintext_socket, string other,
5151
string me, bool client) :
5252
parent(io_service, ctx)
@@ -57,7 +57,7 @@ class ssl_socket : public boost::asio::ssl::stream<boost::asio::ip::tcp::socket>
5757
#endif
5858
lowest_layer().assign(boost::asio::ip::tcp::v4(), plaintext_socket);
5959
set_verify_mode(boost::asio::ssl::verify_peer);
60-
set_verify_callback(boost::asio::ssl::rfc2818_verification(other));
60+
set_verify_callback(boost::asio::ssl::host_name_verification(other));
6161
if (client)
6262
try
6363
{

deps/libOTe

Submodule libOTe updated 1 file

0 commit comments

Comments
 (0)