Apache HTTPD
Classes | Macros | Typedefs | Functions | Variables
mod_md_ocsp.c File Reference
#include <assert.h>
#include <apr_optional.h>
#include <apr_time.h>
#include <apr_date.h>
#include <apr_strings.h>
#include <httpd.h>
#include <http_core.h>
#include <http_log.h>
#include <http_ssl.h>
#include "mod_watchdog.h"
#include "md.h"
#include "md_crypt.h"
#include "md_http.h"
#include "md_json.h"
#include "md_ocsp.h"
#include "md_store.h"
#include "md_log.h"
#include "md_reg.h"
#include "md_time.h"
#include "md_util.h"
#include "mod_md.h"
#include "mod_md_config.h"
#include "mod_md_private.h"
#include "mod_md_ocsp.h"

Go to the source code of this file.

Classes

struct  ocsp_copy_ctx_t
 
struct  md_ocsp_ctx_t
 

Macros

#define MD_OCSP_WATCHDOG_NAME   "_md_ocsp_"
 

Typedefs

typedef struct md_ocsp_ctx_t md_ocsp_ctx_t
 

Functions

static int staple_here (md_srv_conf_t *sc)
 
int md_ocsp_prime_status (server_rec *s, apr_pool_t *p, const char *id, apr_size_t id_len, const char *pem)
 
int md_ocsp_provide_status (server_rec *s, conn_rec *c, const char *id, apr_size_t id_len, ap_ssl_ocsp_copy_resp *cb, void *userdata)
 
static apr_time_t next_run_default (void)
 
static apr_status_t run_watchdog (int state, void *baton, apr_pool_t *ptemp)
 
static apr_status_t ocsp_remove_old_responses (md_mod_conf_t *mc, apr_pool_t *p)
 
apr_status_t md_ocsp_start_watching (md_mod_conf_t *mc, server_rec *s, apr_pool_t *p)
 

Variables

static apr_OFN_ap_watchdog_get_instance_twd_get_instance
 
static apr_OFN_ap_watchdog_register_callback_twd_register_callback
 
static apr_OFN_ap_watchdog_set_callback_interval_twd_set_interval
 

Macro Definition Documentation

◆ MD_OCSP_WATCHDOG_NAME

#define MD_OCSP_WATCHDOG_NAME   "_md_ocsp_"

Definition at line 126 of file mod_md_ocsp.c.

Typedef Documentation

◆ md_ocsp_ctx_t

Definition at line 132 of file mod_md_ocsp.c.

Function Documentation

◆ md_ocsp_prime_status()

int md_ocsp_prime_status ( server_rec s,
apr_pool_t p,
const char id,
apr_size_t  id_len,
const char pem 
)

< Module has handled this stage.

< Module declines to handle

Definition at line 56 of file mod_md_ocsp.c.

◆ md_ocsp_provide_status()

int md_ocsp_provide_status ( server_rec s,
conn_rec c,
const char id,
apr_size_t  id_len,
ap_ssl_ocsp_copy_resp cb,
void *  userdata 
)

< Module has handled this stage.

< Module declines to handle

Definition at line 98 of file mod_md_ocsp.c.

◆ md_ocsp_start_watching()

apr_status_t md_ocsp_start_watching ( struct md_mod_conf_t mc,
server_rec s,
apr_pool_t p 
)

Start watchdog for retrieving/updating ocsp status.

Definition at line 205 of file mod_md_ocsp.c.

◆ next_run_default()

static apr_time_t next_run_default ( void  )
static

Definition at line 141 of file mod_md_ocsp.c.

◆ ocsp_remove_old_responses()

static apr_status_t ocsp_remove_old_responses ( md_mod_conf_t mc,
apr_pool_t p 
)
static

Definition at line 194 of file mod_md_ocsp.c.

◆ run_watchdog()

static apr_status_t run_watchdog ( int  state,
void *  baton,
apr_pool_t ptemp 
)
static

Definition at line 147 of file mod_md_ocsp.c.

◆ staple_here()

static int staple_here ( md_srv_conf_t sc)
static

Definition at line 46 of file mod_md_ocsp.c.

Variable Documentation

◆ wd_get_instance

apr_OFN_ap_watchdog_get_instance_t* wd_get_instance
static

Definition at line 128 of file mod_md_ocsp.c.

◆ wd_register_callback

apr_OFN_ap_watchdog_register_callback_t* wd_register_callback
static

Definition at line 129 of file mod_md_ocsp.c.

◆ wd_set_interval

Definition at line 130 of file mod_md_ocsp.c.