summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rwxr-xr-xcpp/src/IceSSL/Certificate.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/cpp/src/IceSSL/Certificate.cpp b/cpp/src/IceSSL/Certificate.cpp
index 3fa4383bf30..c502d54baa0 100755
--- a/cpp/src/IceSSL/Certificate.cpp
+++ b/cpp/src/IceSSL/Certificate.cpp
@@ -882,21 +882,15 @@ DistinguishedName::DistinguishedName(const list<pair<string, string> >& rdns) :
}
bool
-DistinguishedName::operator==(const DistinguishedName& other) const
+IceSSL::operator==(const DistinguishedName& lhs, const DistinguishedName& rhs)
{
- return other._unescaped == _unescaped;
+ return lhs._unescaped == rhs._unescaped;
}
bool
-DistinguishedName::operator!=(const DistinguishedName& other) const
+IceSSL::operator<(const DistinguishedName& lhs, const DistinguishedName& rhs)
{
- return other._unescaped != _unescaped;
-}
-
-bool
-DistinguishedName::operator<(const DistinguishedName& other) const
-{
- return other._unescaped < _unescaped;
+ return lhs._unescaped == rhs._unescaped;
}
bool
@@ -924,6 +918,12 @@ DistinguishedName::match(const DistinguishedName& other) const
return true;
}
+bool
+DistinguishedName::match(const string& other) const
+{
+ return match(DistinguishedName(other));
+}
+
//
// This always produces the same output as the input DN -- the type of
// escaping is not changed.