Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boost issues #327

Open
OgreTransporter opened this issue Jan 6, 2025 · 1 comment
Open

Boost issues #327

OgreTransporter opened this issue Jan 6, 2025 · 1 comment

Comments

@OgreTransporter
Copy link
Contributor

It would be helpful if the library could be adapted to more recent Boost versions.

For example, the class ssl::rfc2818_verification has been declared as deprecated since Boost 1.73 (April 28th, 2020). It was removed in the current version 1.87 (December 12th, 2024).

socket.set_verify_callback(ssl::rfc2818_verification(url.host));

Replace by

socket.set_verify_callback(ssl::host_name_verification(url.host));

mutable boost::asio::io_service _ioService;

boost::asio::io_service has been renamed to boost::asio::io_context (Boost 1.66)

_ioService.reset();

Replace by

_ioService.restart();

Delete line 22:

tcp::resolver::query query(url.host, "443");

connect(socket.lowest_layer(), resolver.resolve(query));

Replace by

connect(socket.lowest_layer(), resolver.resolve(url.host, "https"));
@reo7sp
Copy link
Owner

reo7sp commented Jan 6, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants