diff options
Diffstat (limited to 'Swiften/TLS/TLSOptions.h')
-rw-r--r-- | Swiften/TLS/TLSOptions.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Swiften/TLS/TLSOptions.h b/Swiften/TLS/TLSOptions.h index 56648a3..e3faaf9 100644 --- a/Swiften/TLS/TLSOptions.h +++ b/Swiften/TLS/TLSOptions.h @@ -8,6 +8,7 @@ namespace Swift { class TLSContext; + class Certificate; class TLSOptions { public: @@ -62,5 +63,15 @@ namespace Swift { */ boost::optional<std::function<int(const TLSContext *)>> verifyCertificateCallback; + + /** + * Allows specification of application-specific Trust Anchors + */ + boost::optional<std::vector<std::shared_ptr<Certificate>>> trustAnchors; + + /** + * Turns off automatic loading of system Trust Anchors + */ + bool ignoreSystemTrustAnchors = false; }; } |