1 #ifdef HAVE_OPENSSL_OCSP_H
18 #ifdef HAVE_OPENSSL_OCSP_H
21 { FR_CONF_OFFSET_SUBSCTION(
"staple", 0, fr_tls_conf_t, staple, ocsp_config) },
24 #ifdef HAVE_OPENSSL_OCSP_H
25 if (
conf->ocsp.cache_server) {
30 ERROR(
"No such virtual server '%s'",
conf->ocsp.cache_server);
37 if (
conf->staple.cache_server) {
42 ERROR(
"No such virtual server '%s'",
conf->staple.cache_server);
50 #ifdef HAVE_OPENSSL_OCSP_H
61 if (
conf->ocsp.enable) {
62 conf->ocsp.store = conf_ocsp_revocation_store(
conf);
63 if (
conf->ocsp.store == NULL)
goto error;
66 if (
conf->staple.enable) {
67 conf->staple.store = conf_ocsp_revocation_store(
conf);
68 if (
conf->staple.store == NULL)
goto error;
74 #
if !defined(HAVE_OPENSSL_OCSP_H) && defined(NDEBUG)
79 #ifdef HAVE_OPENSSL_OCSP_H
80 if (
conf->ocsp.store) X509_STORE_free(
conf->ocsp.store);
81 conf->ocsp.store = NULL;
82 if (
conf->staple.store) X509_STORE_free(
conf->staple.store);
83 conf->staple.store = NULL;
93 #ifdef HAVE_OPENSSL_OCSP_H
94 SSL_set_ex_data(tls_session->ssl, FR_TLS_EX_INDEX_OCSP_STORE, (
void *)tls_conf->ocsp.store);
98 #ifdef HAVE_OPENSSL_OCSP_H
105 if (my_ok &&
conf->ocsp.enable){
108 RDEBUG2(
"Starting OCSP Request");
116 issuer_cert = X509_STORE_CTX_get0_current_issuer(x509_ctx);
#define CONF_PARSER_TERMINATOR
#define FR_CONF_OFFSET(_name, _struct, _field)
conf_parser_t which parses a single CONF_PAIR, writing the result to a field in a struct
#define FR_CONF_OFFSET_SUBSECTION(_name, _flags, _struct, _field, _subcs)
conf_parser_t which populates a sub-struct using a CONF_SECTION
Defines a CONF_PAIR to C data type mapping.
static fr_time_delta_t timeout
static int _conf_server_free(fr_tls_conf_t *conf)
int fr_tls_ocsp_check(request_t *request, SSL *ssl, X509_STORE *store, X509 *issuer_cert, X509 *client_cert, fr_tls_ocsp_conf_t *conf, bool staple_response)
int fr_tls_ocsp_state_cache_compile(fr_tls_cache_t *sections, CONF_SECTION *server_cs)
int fr_tls_ocsp_staple_cache_compile(fr_tls_cache_t *sections, CONF_SECTION *server_cs)
CONF_SECTION * server_cs
The server section.
virtual_server_t const * virtual_server_find(char const *name)
Return virtual server matching the specified name.