24#ifndef SSL_ACCEPTOR_CONTEXT_DATA_INCLUDED
25#define SSL_ACCEPTOR_CONTEXT_DATA_INCLUDED
30#include "openssl/ossl_typ.h"
122 bool report_ssl_error =
true,
TLS context access wrapper for ease of use.
Definition: ssl_acceptor_context_operator.h:106
helper class to deal with optionally empty strings
Definition: ssl_init_callback.h:50
const char * c_str() const
Definition: ssl_init_callback.h:57
TLS context access protector.
Definition: ssl_acceptor_context_operator.h:41
Container of SSL Acceptor context data.
Definition: ssl_acceptor_context_data.h:107
Ssl_acceptor_context_data operator=(const Ssl_acceptor_context_data &)=delete
OptionalString current_version_
Definition: ssl_acceptor_context_data.h:212
OptionalString current_key_
Definition: ssl_acceptor_context_data.h:213
~Ssl_acceptor_context_data()
Destructor.
Definition: ssl_acceptor_context_data.cc:395
std::string show_property(Ssl_acceptor_context_property_type property_type) const
Fetch given property from underlying TLS context.
Definition: ssl_acceptor_context_data.cc:400
const char * current_cert() const
Get current Certificate.
Definition: ssl_acceptor_context_data.h:170
const char * channel_name() const
Get channel name.
Definition: ssl_acceptor_context_data.h:155
bool current_tls_force_pqc_
Definition: ssl_acceptor_context_data.h:217
OptionalString current_tls_kex_
Definition: ssl_acceptor_context_data.h:214
void report_tls_channel_without_force_pqc() const
Report that this channel can negotiate non-PQC sessions.
Definition: ssl_acceptor_context_data.cc:391
Ssl_acceptor_context_data operator=(Ssl_acceptor_context_data &&)=delete
OptionalString current_capath_
Definition: ssl_acceptor_context_data.h:212
bool current_tls_use_pqc_sign_
Definition: ssl_acceptor_context_data.h:218
const char * current_version() const
Get current TLS version.
Definition: ssl_acceptor_context_data.h:182
OptionalString current_crl_
Definition: ssl_acceptor_context_data.h:213
std::string channel_
Channel name.
Definition: ssl_acceptor_context_data.h:196
const char * current_key() const
Get current Key.
Definition: ssl_acceptor_context_data.h:173
Ssl_acceptor_context_data(Ssl_acceptor_context_data &&)=delete
const char * current_cipher() const
Get current TLSv1.2 ciphers.
Definition: ssl_acceptor_context_data.h:185
bool current_tls_session_cache_mode_
Definition: ssl_acceptor_context_data.h:216
const char * current_ciphersuites() const
Get current TLSv1.3 ciphers.
Definition: ssl_acceptor_context_data.h:188
const char * current_tls_kex() const
Definition: ssl_acceptor_context_data.h:192
OptionalString current_ciphersuites_
Definition: ssl_acceptor_context_data.h:213
OptionalString current_crlpath_
Definition: ssl_acceptor_context_data.h:214
OptionalString current_cipher_
Definition: ssl_acceptor_context_data.h:213
SSL * acceptor_
An SSL for ssl_acceptor_fd_ to allow access to parameters not in SSL_CTX to be available even if the ...
Definition: ssl_acceptor_context_data.h:206
const char * current_capath() const
Get current CA Path.
Definition: ssl_acceptor_context_data.h:167
struct st_VioSSLFd * ssl_acceptor_fd_
SSL_CTX barerer.
Definition: ssl_acceptor_context_data.h:199
const char * current_ca() const
Get current CA.
Definition: ssl_acceptor_context_data.h:164
Ssl_acceptor_context_data(std::string channel, Ssl_init_callback *callbacks, bool report_ssl_error=true, enum enum_ssl_init_error *out_error=nullptr)
Ctor.
Definition: ssl_acceptor_context_data.cc:296
const char * current_crl() const
Get current CRL certificate.
Definition: ssl_acceptor_context_data.h:176
OptionalString current_ca_
Copies of the current effective values for quick return via the status vars.
Definition: ssl_acceptor_context_data.h:212
OptionalString current_cert_
Definition: ssl_acceptor_context_data.h:212
bool have_ssl() const
TLS context validity.
Definition: ssl_acceptor_context_data.h:149
long current_tls_session_cache_timeout_
Definition: ssl_acceptor_context_data.h:215
const char * current_crlpath() const
Get current CRL Path.
Definition: ssl_acceptor_context_data.h:179
Ssl_acceptor_context_data(const Ssl_acceptor_context_data &)=delete
Definition: ssl_init_callback.h:70
TLS context manager.
Definition: ssl_acceptor_context_operator.h:60
Ssl_acceptor_context_property_type
Properties exposed by Ssl Acceptor context.
Definition: ssl_acceptor_context_data.h:44
@ used_session_cache_entries
@ current_tls_ciphersuites
@ session_cache_overflows
std::string Ssl_ctx_property_name(Ssl_acceptor_context_property_type property_type)
Note: Add new value before "last" and update Ssl_acceptor_context_propert_type_names.
Definition: ssl_acceptor_context_data.cc:271
Ssl_acceptor_context_property_type & operator++(Ssl_acceptor_context_property_type &property_type)
Increment operator for Ssl_acceptor_context_type Used by iterator.
Definition: ssl_acceptor_context_data.cc:286
Definition: violite.h:260
enum_ssl_init_error
Definition: violite.h:236