diff options
author | Anthony Neal <aneal@zeroc.com> | 2002-03-13 20:10:07 +0000 |
---|---|---|
committer | Anthony Neal <aneal@zeroc.com> | 2002-03-13 20:10:07 +0000 |
commit | 27c5fa0a95a523c5bea82eecc420e805b4533aae (patch) | |
tree | b18f7be9632d266d7e8f6c16b02de831a3e11d57 /cpp/src/Ice/SslConfigErrorReporter.cpp | |
parent | cleanup (diff) | |
download | ice-27c5fa0a95a523c5bea82eecc420e805b4533aae.tar.bz2 ice-27c5fa0a95a523c5bea82eecc420e805b4533aae.tar.xz ice-27c5fa0a95a523c5bea82eecc420e805b4533aae.zip |
Refactor of SSL Extension, phase 1.
Diffstat (limited to 'cpp/src/Ice/SslConfigErrorReporter.cpp')
-rw-r--r-- | cpp/src/Ice/SslConfigErrorReporter.cpp | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/cpp/src/Ice/SslConfigErrorReporter.cpp b/cpp/src/Ice/SslConfigErrorReporter.cpp index 8f84627a6b9..da605e7d8e7 100644 --- a/cpp/src/Ice/SslConfigErrorReporter.cpp +++ b/cpp/src/Ice/SslConfigErrorReporter.cpp @@ -22,9 +22,9 @@ using namespace std; void -IceSecurity::Ssl::ErrorReporter::warning(const SAXParseException& toCatch) +IceSSL::ErrorReporter::warning(const SAXParseException& toCatch) { - if (_traceLevels->security >= IceSecurity::SECURITY_PARSE_WARNINGS) + if (_traceLevels->security >= IceSSL::SECURITY_PARSE_WARNINGS) { ostringstream s; @@ -40,11 +40,11 @@ IceSecurity::Ssl::ErrorReporter::warning(const SAXParseException& toCatch) } void -IceSecurity::Ssl::ErrorReporter::error(const SAXParseException& toCatch) +IceSSL::ErrorReporter::error(const SAXParseException& toCatch) { _sawErrors = true; - if (_traceLevels->security >= IceSecurity::SECURITY_PARSE_WARNINGS) + if (_traceLevels->security >= IceSSL::SECURITY_PARSE_WARNINGS) { ostringstream s; @@ -60,11 +60,11 @@ IceSecurity::Ssl::ErrorReporter::error(const SAXParseException& toCatch) } void -IceSecurity::Ssl::ErrorReporter::fatalError(const SAXParseException& toCatch) +IceSSL::ErrorReporter::fatalError(const SAXParseException& toCatch) { _sawErrors = true; - if (_traceLevels->security >= IceSecurity::SECURITY_PARSE_WARNINGS) + if (_traceLevels->security >= IceSSL::SECURITY_PARSE_WARNINGS) { ostringstream s; @@ -80,8 +80,22 @@ IceSecurity::Ssl::ErrorReporter::fatalError(const SAXParseException& toCatch) } void -IceSecurity::Ssl::ErrorReporter::resetErrors() +IceSSL::ErrorReporter::resetErrors() { // No-op in this case } +bool
+IceSSL::ErrorReporter::getSawErrors() const
+{
+ return _sawErrors;
+}
+
+std::ostream&
+IceSSL::operator << (std::ostream& target, const DOMString& s)
+{
+ char *p = s.transcode();
+ target << p;
+ delete [] p;
+ return target;
+}
|