2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#ifndef CORE_SOCKET_STREAM_TLS_SSL_UTILS_H
43#define CORE_SOCKET_STREAM_TLS_SSL_UTILS_H
45#ifndef DOXYGEN_SHOULD_SKIP_THIS
53#include <openssl/opensslv.h>
55#if OPENSSL_VERSION_NUMBER
>= 0x30000000L
56#include <openssl/types.h>
57#elif OPENSSL_VERSION_NUMBER >= 0x10100000L
58#include <openssl/ossl_typ.h>
63#if OPENSSL_VERSION_NUMBER
>= 0x30000000L
64using ssl_option_t = uint64_t;
66#elif OPENSSL_VERSION_NUMBER >= 0x10100000L
67using ssl_option_t = uint32_t;
89 std::map<std::string, SSL_CTX*>
ssl_get_sans(SSL_CTX* sslCtx);
101 void ssl_log(
const std::string& message,
int sslErr);
107 bool match(
const char* first,
const char* second);
114
115
116
117
118
119
120
121
122
123
124
125
126
void ssl_set_sni(SSL *ssl, const std::string &sni)
bool match(const char *first, const char *second)
void ssl_log_warning(const std::string &message)
SSL_CTX * ssl_set_ssl_ctx(SSL *ssl, SSL_CTX *sslCtx)
void ssl_log_info(const std::string &message)
std::string ssl_get_servername_from_client_hello(SSL *ssl)
void ssl_log(const std::string &message, int sslErr)
void ssl_ctx_free(SSL_CTX *ctx)
std::map< std::string, SSL_CTX * > ssl_get_sans(SSL_CTX *sslCtx)
SSL_CTX * ssl_ctx_new(const SslConfig &sslConfig)
void ssl_log_error(const std::string &message)