The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
ocsp.h
Go to the documentation of this file.
1/** OCSP Configuration
2 *
3 */
4typedef 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;
11 X509_STORE *store;
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 */
31int fr_tls_ocsp_staple_cb(SSL *ssl, void *data);
32
33int 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
37int fr_tls_ocsp_state_cache_compile(fr_tls_cache_t *sections, CONF_SECTION *server_cs);
38
39int fr_tls_ocsp_staple_cache_compile(fr_tls_cache_t *sections, CONF_SECTION *server_cs);
#define store(_store, _var)
A section grouping multiple CONF_PAIR.
Definition cf_priv.h:101
unsigned int uint32_t
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
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)
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:1265