The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
ocsp.h
Go to the documentation of this file.
1 /** OCSP Configuration
2  *
3  */
4 typedef struct {
5  bool enable; //!< Enable OCSP checks
6  char const *cache_server; //!< Virtual server to restore retrieved OCSP status.
7  bool override_url; //!< Always use the configured OCSP URL even if the
8  //!< certificate contains one.
9  char const *url;
10  bool use_nonce;
11  X509_STORE *store;
13  bool softfail;
14  bool verifycert;
15 
16 
17  fr_tls_cache_t cache; //!< Cached cache section pointers. Means we don't have
18  ///< to look them up at runtime.
20 
21 #ifdef HAVE_OPENSSL_OCSP_H
22  fr_tls_ocsp_conf_t ocsp; //!< Configuration for validating client certificates
23  //!< with ocsp.
24  fr_tls_ocsp_conf_t staple; //!< Configuration for validating server certificates
25  //!< with ocsp.
26 #endif
27 
28 /*
29  * tls/ocsp.c
30  */
31 int fr_tls_ocsp_staple_cb(SSL *ssl, void *data);
32 
33 int fr_tls_ocsp_check(request_t *request, SSL *ssl,
34  X509_STORE *store, X509 *issuer_cert, X509 *client_cert,
35  fr_tls_ocsp_conf_t *conf, bool staple_response);
36 
37 int fr_tls_ocsp_state_cache_compile(fr_tls_cache_t *sections, CONF_SECTION *server_cs);
38 
39 int fr_tls_ocsp_staple_cache_compile(fr_tls_cache_t *sections, CONF_SECTION *server_cs);
#define store(_store, _var)
Definition: atomic_queue.h:48
A section grouping multiple CONF_PAIR.
Definition: cf_priv.h:89
unsigned int uint32_t
Definition: merged_model.c:33
bool enable
Enable OCSP checks.
Definition: ocsp.h:5
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)
bool verifycert
Definition: ocsp.h:14
uint32_t timeout
Definition: ocsp.h:12
int fr_tls_ocsp_state_cache_compile(fr_tls_cache_t *sections, CONF_SECTION *server_cs)
char const * cache_server
Virtual server to restore retrieved OCSP status.
Definition: ocsp.h:6
X509_STORE * store
Definition: ocsp.h:11
bool use_nonce
Definition: ocsp.h:10
char const * url
Definition: ocsp.h:9
bool override_url
Always use the configured OCSP URL even if the certificate contains one.
Definition: ocsp.h:7
int fr_tls_ocsp_staple_cb(SSL *ssl, void *data)
int fr_tls_ocsp_staple_cache_compile(fr_tls_cache_t *sections, CONF_SECTION *server_cs)
bool softfail
Definition: ocsp.h:13
fr_tls_cache_t cache
Cached cache section pointers.
Definition: ocsp.h:17
OCSP Configuration.
Definition: ocsp.h:4
static rs_t * conf
Definition: radsniff.c:53
static fr_slen_t data
Definition: value.h:1259