diff options
author | Jack Lloyd <[email protected]> | 2016-11-21 20:50:52 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-23 08:31:07 -0500 |
commit | fc638a430c89f01e5eadf3295605cdc3dba78a13 (patch) | |
tree | 7e486db3d6849f932bf2bcbf8fbd6d1dbc14ffc1 /src/lib/tls/tls_callbacks.h | |
parent | 33e855853886193867b32da847b8b77f7bc102ee (diff) |
Add the documented function for OCSP timeouts
Diffstat (limited to 'src/lib/tls/tls_callbacks.h')
-rw-r--r-- | src/lib/tls/tls_callbacks.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/tls/tls_callbacks.h b/src/lib/tls/tls_callbacks.h index 9de7710f4..db9f9e21d 100644 --- a/src/lib/tls/tls_callbacks.h +++ b/src/lib/tls/tls_callbacks.h @@ -124,6 +124,15 @@ class BOTAN_DLL Callbacks const std::string& hostname); /** + * Called by default `tls_verify_cert_chain` to get the timeout to use for OCSP + * requests. Return 0 to disable online OCSP checks. + */ + virtual std::chrono::milliseconds tls_verify_cert_chain_ocsp_timeout() const + { + return std::chrono::milliseconds(0); + } + + /** * Optional callback: inspect handshake message * Throw an exception to abort the handshake. * Default simply ignores the message. |