boost::corosio::tls_context::set_revocation_policy

Set the certificate revocation checking policy.

Synopsis

void
set_revocation_policy(tls_revocation_policy policy);

Description

Controls how certificate revocation status is checked during verification. This affects both CRL and OCSP checking.

Example

// Require successful revocation check
ctx.set_revocation_policy( tls_revocation_policy::hard_fail );

// Check but allow unknown status
ctx.set_revocation_policy( tls_revocation_policy::soft_fail );

Parameters

Name Description

policy

The revocation checking policy.

See Also

tls_revocation_policy

add_crl

Created with MrDocs