Apache2
|
Go to the source code of this file.
Functions | |
apr_status_t | tls_ocsp_prime_certs (tls_conf_global_t *gc, apr_pool_t *p, server_rec *s) |
apr_status_t | tls_ocsp_update_key (conn_rec *c, const rustls_certified_key *certified_key, const rustls_certified_key **key_out) |
apr_status_t tls_ocsp_prime_certs | ( | tls_conf_global_t * | gc, |
apr_pool_t * | p, | ||
server_rec * | s | ||
) |
Prime the collected certified keys for OCSP response provisioning (aka. Stapling).
To be called in the post-config phase of the server before connections are handled.
gc | the global module configuration with the certified_key registry |
p | the pool to use for allocations |
s | the base server record |
apr_status_t tls_ocsp_update_key | ( | conn_rec * | c, |
const rustls_certified_key * | certified_key, | ||
const rustls_certified_key ** | key_out | ||
) |
Provide the OCSP response data for the certified_key into the offered buffer, so available. If not data is available out_n
is set to 0. Same, if the offered buffer is not large enough to hold the complete response. If OCSP response DER data is copied, the number of copied bytes is given in out_n
.
Note that only keys that have been primed initially will have OCSP data available.
c | the current connection |
certified_key | the key to get the OCSP response data for |
buf | a buffer which can hold up to buf_len bytes |
buf_len | the length of buf |
out_n | the number of OCSP response DER bytes copied or 0. |