You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
532 B
C
31 lines
532 B
C
![]()
4 years ago
|
#ifndef WEBCC_SSL_CLIENT_H_
|
||
|
#define WEBCC_SSL_CLIENT_H_
|
||
|
|
||
|
#include "webcc/client.h"
|
||
|
|
||
|
#include "boost/asio/ssl/context.hpp"
|
||
|
|
||
|
#if !WEBCC_ENABLE_SSL
|
||
|
#error SSL must be enabled!
|
||
|
#endif
|
||
|
|
||
|
namespace webcc {
|
||
|
|
||
|
class SslClient final : public Client {
|
||
|
public:
|
||
|
SslClient(boost::asio::io_context& io_context,
|
||
|
boost::asio::ssl::context& ssl_context);
|
||
|
|
||
|
~SslClient() = default;
|
||
|
|
||
|
protected:
|
||
|
void AsyncConnect() override;
|
||
|
|
||
|
private:
|
||
|
boost::asio::ssl::context& ssl_context_;
|
||
|
};
|
||
|
|
||
|
} // namespace webcc
|
||
|
|
||
|
#endif // WEBCC_SSL_CLIENT_H_
|