diff options
author | Tim Costen <tim.costen@isode.com> | 2019-11-05 13:37:28 (GMT) |
---|---|---|
committer | Tim Costen <tim.costen@isode.com> | 2019-11-05 13:45:29 (GMT) |
commit | 959a42d21fd70ea002da9afa7482194e8b6097e1 (patch) | |
tree | cae4a070453d1e3827a3a1e4812bedfe88fd110a /Swiften/TLS/ServerIdentityVerifier.h | |
parent | 8baf0e407b3b4914654a6036a16ac81b7a2e7414 (diff) | |
download | swift-959a42d21fd70ea002da9afa7482194e8b6097e1.zip swift-959a42d21fd70ea002da9afa7482194e8b6097e1.tar.bz2 |
Handle xmpp-server SRV records
Update ServerIdentityVerifier with new boolean parameter
(defaulting to false) to its constructor. Use this to determine
whether to check for SRV records which start with "_xmpp-client."
(the default, for backwards compatibility), or "_xmpp-server.".
JIRA: SWIFT-424
Bug:
Release-notes:
Manual:
Test-information:
Added a couple of new unit tests to check operation when this parameter
is set true. All ServerIdentityVerifier unit tests run as before.
Change-Id: Icb1fee31b436292cd6b5e61bc86482d700e40332
Diffstat (limited to 'Swiften/TLS/ServerIdentityVerifier.h')
-rw-r--r-- | Swiften/TLS/ServerIdentityVerifier.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Swiften/TLS/ServerIdentityVerifier.h b/Swiften/TLS/ServerIdentityVerifier.h index f40c683..f2cf46f 100644 --- a/Swiften/TLS/ServerIdentityVerifier.h +++ b/Swiften/TLS/ServerIdentityVerifier.h @@ -18,7 +18,7 @@ namespace Swift { class SWIFTEN_API ServerIdentityVerifier { public: - ServerIdentityVerifier(const JID& jid, IDNConverter* idnConverter); + ServerIdentityVerifier(const JID& jid, IDNConverter* idnConverter, bool checkServer=false); bool certificateVerifies(Certificate::ref); @@ -30,5 +30,6 @@ namespace Swift { std::string domain; std::string encodedDomain; bool domainValid; + bool checkServer_; }; } |