hitch  1.5.2
About: Hitch is a libev-based high performance SSL/TLS proxy that terminates TLS/SSL connections and forwards the unencrypted traffic to some backend.
  Fossies Dox: hitch-1.5.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ocsp.c File Reference
#include <sys/select.h>
#include <sys/socket.h>
#include <unistd.h>
#include "logging.h"
#include "hitch.h"
#include "ocsp.h"
#include "configuration.h"
Include dependency graph for ocsp.c:

Go to the source code of this file.

Functions

void HOCSP_free (sslstaple **staple)
 
int HOCSP_verify (sslctx *sc, OCSP_RESPONSE *resp, double *nextupd)
 
int HOCSP_staple_cb (SSL *ssl, void *priv)
 
int HOCSP_init_resp (sslctx *sc, OCSP_RESPONSE *resp)
 
static void hocsp_stat_cb (struct ev_loop *loop, ev_stat *w, int revents)
 
void HOCSP_ev_stat (sslctx *sc)
 
static OCSP_REQUEST * hocsp_mkreq (ocspquery *oq)
 
static int hocsp_proc_persist (sslctx *sc)
 
int HOCSP_init_file (const char *ocspfn, sslctx *sc, int is_cached)
 
char * HOCSP_fn (const char *certfn)
 
static void hocsp_query_responder (struct ev_loop *loop, ev_timer *w, int revents)
 
void HOCSP_mktask (sslctx *sc, ocspquery *oq, double refresh_hint)
 

Variables

hitch_configCONFIG
 
struct ev_loop * loop
 

Function Documentation

◆ HOCSP_ev_stat()

void HOCSP_ev_stat ( sslctx sc)

◆ HOCSP_fn()

char* HOCSP_fn ( const char *  certfn)

◆ HOCSP_free()

void HOCSP_free ( sslstaple **  staple)

Definition at line 47 of file ocsp.c.

References free(), and FREE_OBJ.

Referenced by HOCSP_init_resp(), hocsp_stat_cb(), and sctx_free().

◆ HOCSP_init_file()

int HOCSP_init_file ( const char *  ocspfn,
sslctx sc,
int  is_cached 
)

Definition at line 397 of file ocsp.c.

References CHECK_OBJ_NOTNULL, ERR, HOCSP_init_resp(), SSLSTAPLE_MAGIC, and sslctx_s::staple.

Referenced by hocsp_stat_cb(), and make_ctx_fr().

◆ HOCSP_init_resp()

◆ hocsp_mkreq()

static OCSP_REQUEST* hocsp_mkreq ( ocspquery oq)
static

◆ HOCSP_mktask()

◆ hocsp_proc_persist()

◆ hocsp_query_responder()

static void hocsp_query_responder ( struct ev_loop *  loop,
ev_timer *  w,
int  revents 
)
static

◆ HOCSP_staple_cb()

int HOCSP_staple_cb ( SSL *  ssl,
void *  priv 
)

◆ hocsp_stat_cb()

static void hocsp_stat_cb ( struct ev_loop *  loop,
ev_stat *  w,
int  revents 
)
static

◆ HOCSP_verify()

int HOCSP_verify ( sslctx sc,
OCSP_RESPONSE *  resp,
double *  nextupd 
)

Variable Documentation

◆ CONFIG

hitch_config* CONFIG

Copyright 2016 Varnish Software

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY BUMP TECHNOLOGIES, INC. `‘AS IS’' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BUMP TECHNOLOGIES, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Copyright 2016 Varnish Software

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY VARNISH SOFTWARE `‘AS IS’' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BUMP TECHNOLOGIES, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition at line 131 of file hitch.c.

Referenced by backaddr_init(), backaddr_init_uds(), change_root(), do_wait(), drop_privileges(), end_handshake(), frontend_listen(), handle_accept(), handle_clear_accept(), handle_connections(), HOCSP_fn(), HOCSP_mktask(), hocsp_proc_persist(), hocsp_query_responder(), HOCSP_verify(), init_certs(), init_globals(), init_openssl(), main(), make_ctx_fr(), reconfigure(), settcpkeepalive(), sleep_and_refresh(), start_ocsp_proc(), start_workers(), verify_privileges(), and write_proxy_v2().

◆ loop