小编Sal*_*uru的帖子

Boost Beast握手:sslv3警报握手失败错误

我正在使用 Boost Beast 连接到 Web Socket 服务器,但我不断收到错误消息

Resolving push-private.kucoin.com:443...
Performing SSL handshake...
terminate called after throwing an instance of 'boost::wrapexcept<boost::system::system_error>'
  what():  handshake: sslv3 alert handshake failure
Aborted (core dumped)
Run Code Online (Sandbox Code Playgroud)
#include <iostream>
#include <boost/beast/core.hpp>
#include <boost/beast/ssl.hpp>
#include <boost/beast/websocket.hpp>
#include <boost/beast/websocket/ssl.hpp>
#include <boost/asio/connect.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/ssl/stream.hpp>
#include <cstdlib>
#include <string>
#include "root_certificates.hpp"

using namespace std;

namespace beast = boost::beast;         // from <boost/beast.hpp>
namespace http = beast::http;           // from <boost/beast/http.hpp>
namespace websocket = beast::websocket; // from <boost/beast/websocket.hpp>
namespace net = boost::asio;            // …
Run Code Online (Sandbox Code Playgroud)

c++ boost

2
推荐指数
1
解决办法
1367
查看次数

标签 统计

boost ×1

c++ ×1