|
|
| SSLServerContext (const SSLServerContext &other) |
|
SSLServerContext & | operator= (const SSLServerContext &other) |
Definition at line 58 of file securesocket.h.
◆ SSLServerContext()
| NSROOT::SSLServerContext::SSLServerContext |
( |
| ) |
|
|
inline |
◆ ~SSLServerContext()
| SSLServerContext::~SSLServerContext |
( |
| ) |
|
◆ InitContext()
| bool SSLServerContext::InitContext |
( |
const std::string & | certfile, |
|
|
const std::string & | pkeyfile ) |
Initialize the server context with the given identity. The certificate and key must match for the operation to succeed.
- Parameters
-
| certfile | the string path of the certificate file (pem) |
| pkeyfile | the string path of the private key file (pem) |
- Returns
- true on success, else false
Definition at line 474 of file securesocket.cpp.
◆ NewServerSocket()
Create a new server socket with this context. Ownership of the returned pointer is transferred to the caller.
- Returns
- new pointer to socket or nullptr on failure
Definition at line 479 of file securesocket.cpp.
◆ SSLHandshake()
| TcpServerSocket::AcceptStatus SSLServerContext::SSLHandshake |
( |
SecureSocket & | socket | ) |
|
|
static |
Process SSL handshake for a new accepted connection.
sock = SSLServerContext::NewServerSocket(); if (TcpServerSocket::AcceptConnection(*sock, tm) == ACCEPT_SUCCESS && SSLServerContext::SSLHandshake(*sock) == ACCEPT_SUCCESS) { // continue } delete sock;
- Parameters
-
| socket | the accepted connection |
- Returns
- AcceptStatus
Definition at line 484 of file securesocket.cpp.
◆ m_server_ctx
| void* NSROOT::SSLServerContext::m_server_ctx |
|
private |
The documentation for this class was generated from the following files: