diff options
Diffstat (limited to 'include/modules')
| -rw-r--r-- | include/modules/tls.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/modules/tls.h b/include/modules/tls.h index be95ba53a..6b0283795 100644 --- a/include/modules/tls.h +++ b/include/modules/tls.h @@ -28,12 +28,17 @@ namespace TLS class Certificate; class IOHook; + /** A shared pointer to a TLS certificate. */ using CertificatePtr = std::shared_ptr<Certificate>; + + /** A list of TLS certificate fingerprints. */ using FingerprintList = std::vector<std::string>; + /** If a socket contains a TLS hook then returns the hook; otherwise, returns nullptr. */ inline IOHook* GetHook(StreamSocket* sock); } +/** Encapsulates information about a TLS certificate. */ class TLS::Certificate : public std::enable_shared_from_this<TLS::Certificate> { |
