diff options
Diffstat (limited to 'Swiften/TLS/ServerIdentityVerifier.cpp')
| -rw-r--r-- | Swiften/TLS/ServerIdentityVerifier.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Swiften/TLS/ServerIdentityVerifier.cpp b/Swiften/TLS/ServerIdentityVerifier.cpp index da116e5..18ea2aa 100644 --- a/Swiften/TLS/ServerIdentityVerifier.cpp +++ b/Swiften/TLS/ServerIdentityVerifier.cpp | |||
| @@ -82,15 +82,15 @@ bool ServerIdentityVerifier::matchesDomain(const std::string& s) const { | |||
| 82 | if (dotIndex != matchDomain.npos) { | 82 | if (dotIndex != matchDomain.npos) { |
| 83 | matchDomain = matchDomain.substr(dotIndex + 1, matchDomain.npos); | 83 | matchDomain = matchDomain.substr(dotIndex + 1, matchDomain.npos); |
| 84 | } | 84 | } |
| 85 | return matchString == matchDomain; | 85 | return boost::iequals(matchString, matchDomain); |
| 86 | } | 86 | } |
| 87 | else { | 87 | else { |
| 88 | return s == encodedDomain; | 88 | return boost::iequals(s, encodedDomain); |
| 89 | } | 89 | } |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | bool ServerIdentityVerifier::matchesAddress(const std::string& s) const { | 92 | bool ServerIdentityVerifier::matchesAddress(const std::string& s) const { |
| 93 | return s == domain; | 93 | return boost::iequals(s, domain); |
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | } | 96 | } |
Swift