-
Notifications
You must be signed in to change notification settings - Fork 255
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
Comments
Ok, please make a pull request.
понедельник, 6 января 2025 г. в 11:37 AM +01:00 от ***@***.*** ***@***.***>:
…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).
https://github.com/reo7sp/tgbot-cpp/blob/da74ac49daa318569ee634d71299846ef170af79/src/net/BoostHttpOnlySslClient.cpp#L44
Replace by
socket.set_verify_callback(ssl::host_name_verification(url.host));
https://github.com/reo7sp/tgbot-cpp/blob/da74ac49daa318569ee634d71299846ef170af79/include/tgbot/net/BoostHttpOnlySslClient.h#L36
boost::asio::io_service has been renamed to boost::asio::io_context (Boost 1.66)
https://github.com/reo7sp/tgbot-cpp/blob/da74ac49daa318569ee634d71299846ef170af79/src/net/BoostHttpOnlySslClient.cpp#L72
Replace by
_ioService.restart();
Delete line 22:
https://github.com/reo7sp/tgbot-cpp/blob/da74ac49daa318569ee634d71299846ef170af79/src/net/BoostHttpOnlySslClient.cpp#L22
https://github.com/reo7sp/tgbot-cpp/blob/da74ac49daa318569ee634d71299846ef170af79/src/net/BoostHttpOnlySslClient.cpp#L29
Replace by
connect(socket.lowest_layer(), resolver.resolve(url.host, "https"));
—
Reply to this email directly, view it on GitHub , or unsubscribe .
You are receiving this because you are subscribed to this thread. Message ID: <reo7sp/tgbot-cpp/issues/327 @ github . com>
|
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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).tgbot-cpp/src/net/BoostHttpOnlySslClient.cpp
Line 44 in da74ac4
Replace by
tgbot-cpp/include/tgbot/net/BoostHttpOnlySslClient.h
Line 36 in da74ac4
boost::asio::io_service
has been renamed toboost::asio::io_context
(Boost 1.66)tgbot-cpp/src/net/BoostHttpOnlySslClient.cpp
Line 72 in da74ac4
Replace by
Delete line 22:
tgbot-cpp/src/net/BoostHttpOnlySslClient.cpp
Line 22 in da74ac4
tgbot-cpp/src/net/BoostHttpOnlySslClient.cpp
Line 29 in da74ac4
Replace by
The text was updated successfully, but these errors were encountered: