CppServer  1.0.4.0
C++ Server Library
ssl_context.h
Go to the documentation of this file.
1 
9 #ifndef CPPSERVER_ASIO_SSL_CONTEXT_H
10 #define CPPSERVER_ASIO_SSL_CONTEXT_H
11 
12 #include "service.h"
13 
14 namespace CppServer {
15 namespace Asio {
16 
18 
23 class SSLContext : public asio::ssl::context
24 {
25 public:
26  using asio::ssl::context::context;
27 
28  SSLContext(const SSLContext&) = delete;
29  SSLContext(SSLContext&&) = delete;
30  ~SSLContext() = default;
31 
32  SSLContext& operator=(const SSLContext&) = delete;
34 
36  void set_root_certs();
37 };
38 
39 } // namespace Asio
40 } // namespace CppServer
41 
42 #endif // CPPSERVER_ASIO_SSL_CONTEXT_H
SSLContext & operator=(SSLContext &&)=delete
SSLContext(const SSLContext &)=delete
void set_root_certs()
Configures the context to use system root certificates.
Definition: ssl_context.cpp:18
SSLContext & operator=(const SSLContext &)=delete
SSLContext(SSLContext &&)=delete
C++ Server project definitions.
Definition: asio.h:56
Asio service definition.