|
SNode.C
|
Classes | |
| class | SocketAcceptor |
| class | SocketConnection |
| class | SocketConnector |
| class | SocketReader |
| class | SocketWriter |
| struct | SslConfig |
| class | TLSHandshake |
| class | TLSShutdown |
Functions | |
| static int | password_callback (char *buf, int size, int a, void *u) |
| static int | verify_callback (int preverify_ok, X509_STORE_CTX *ctx) |
| SSL_CTX * | ssl_ctx_new (const SslConfig &sslConfig) |
| std::map< std::string, SSL_CTX * > | ssl_get_sans (SSL_CTX *sslCtx) |
| void | ssl_set_sni (SSL *ssl, const std::string &sni) |
| SSL_CTX * | ssl_set_ssl_ctx (SSL *ssl, SSL_CTX *sslCtx) |
| void | ssl_ctx_free (SSL_CTX *ctx) |
| std::string | ssl_get_servername_from_client_hello (SSL *ssl) |
| void | ssl_log (const std::string &message, int sslErr) |
| void | ssl_log_error (const std::string &message) |
| void | ssl_log_warning (const std::string &message) |
| void | ssl_log_info (const std::string &message) |
| bool | match (const char *first, const char *second) |
| bool core::socket::stream::tls::match | ( | const char * | first, |
| const char * | second | ||
| ) |
Definition at line 401 of file ssl_utils.cpp.
References match().
Referenced by net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSniCtx(), and match().
|
static |
Definition at line 65 of file ssl_utils.cpp.
Referenced by ssl_ctx_new().
| void core::socket::stream::tls::ssl_ctx_free | ( | SSL_CTX * | ctx | ) |
Definition at line 296 of file ssl_utils.cpp.
Referenced by net::config::stream::tls::ConfigSocketClient< ConfigSocketClientBaseT >::~ConfigSocketClient(), and net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::~ConfigSocketServer().
| SSL_CTX * core::socket::stream::tls::ssl_ctx_new | ( | const SslConfig & | sslConfig | ) |
Definition at line 114 of file ssl_utils.cpp.
References core::socket::stream::tls::SslConfig::caCert, core::socket::stream::tls::SslConfig::caCertAcceptUnknown, core::socket::stream::tls::SslConfig::caCertDir, core::socket::stream::tls::SslConfig::caCertUseDefaultDir, core::socket::stream::tls::SslConfig::cert, core::socket::stream::tls::SslConfig::certKey, core::socket::stream::tls::SslConfig::cipherList, core::socket::stream::tls::SslConfig::instanceName, core::socket::stream::tls::SslConfig::password, password_callback(), core::socket::stream::tls::SslConfig::server, ssl_log_error(), core::socket::stream::tls::SslConfig::sslOptions, and verify_callback().
Referenced by net::config::stream::tls::ConfigSocketClient< ConfigSocketClientBaseT >::getSslCtx(), and net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
| std::map< std::string, SSL_CTX * > core::socket::stream::tls::ssl_get_sans | ( | SSL_CTX * | sslCtx | ) |
Definition at line 221 of file ssl_utils.cpp.
Referenced by net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
| std::string core::socket::stream::tls::ssl_get_servername_from_client_hello | ( | SSL * | ssl | ) |
Definition at line 303 of file ssl_utils.cpp.
Referenced by core::socket::stream::tls::SocketAcceptor< PhysicalSocketServerT, ConfigT >::clientHelloCallback().
| void core::socket::stream::tls::ssl_log | ( | const std::string & | message, |
| int | sslErr | ||
| ) |
Definition at line 346 of file ssl_utils.cpp.
References ssl_log_error(), ssl_log_info(), and ssl_log_warning().
Referenced by core::socket::stream::tls::SocketReader::read(), and core::socket::stream::tls::SocketWriter::write().
| void core::socket::stream::tls::ssl_log_error | ( | const std::string & | message | ) |
Definition at line 371 of file ssl_utils.cpp.
Referenced by ssl_ctx_new(), and ssl_log().
| void core::socket::stream::tls::ssl_log_info | ( | const std::string & | message | ) |
Definition at line 391 of file ssl_utils.cpp.
Referenced by ssl_log().
| void core::socket::stream::tls::ssl_log_warning | ( | const std::string & | message | ) |
Definition at line 381 of file ssl_utils.cpp.
Referenced by ssl_log().
| void core::socket::stream::tls::ssl_set_sni | ( | SSL * | ssl, |
| const std::string & | sni | ||
| ) |
Definition at line 279 of file ssl_utils.cpp.
| SSL_CTX * core::socket::stream::tls::ssl_set_ssl_ctx | ( | SSL * | ssl, |
| SSL_CTX * | sslCtx | ||
| ) |
Definition at line 285 of file ssl_utils.cpp.
Referenced by core::socket::stream::tls::SocketAcceptor< PhysicalSocketServerT, ConfigT >::clientHelloCallback().
|
static |
Definition at line 75 of file ssl_utils.cpp.
Referenced by ssl_ctx_new().