diff options
author | Marc Laukien <marc@zeroc.com> | 2001-11-21 14:04:20 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-11-21 14:04:20 +0000 |
commit | de7b946e476e3dbb24ccd0cbb246777ffc776b2a (patch) | |
tree | 069c894ad902ce8c8abb7c2d23c74e9dbfbd4719 /cpp/src/Ice/SslConfigErrorReporter.cpp | |
parent | Switched the protocol back to tcp for default. (diff) | |
download | ice-de7b946e476e3dbb24ccd0cbb246777ffc776b2a.tar.bz2 ice-de7b946e476e3dbb24ccd0cbb246777ffc776b2a.tar.xz ice-de7b946e476e3dbb24ccd0cbb246777ffc776b2a.zip |
fixes
Diffstat (limited to 'cpp/src/Ice/SslConfigErrorReporter.cpp')
-rw-r--r-- | cpp/src/Ice/SslConfigErrorReporter.cpp | 170 |
1 files changed, 85 insertions, 85 deletions
diff --git a/cpp/src/Ice/SslConfigErrorReporter.cpp b/cpp/src/Ice/SslConfigErrorReporter.cpp index bd466b4a611..eab3948a665 100644 --- a/cpp/src/Ice/SslConfigErrorReporter.cpp +++ b/cpp/src/Ice/SslConfigErrorReporter.cpp @@ -1,85 +1,85 @@ -// **********************************************************************
-//
-// Copyright (c) 2001
-// MutableRealms, Inc.
-// Huntsville, AL, USA
-//
-// All Rights Reserved
-//
-// **********************************************************************
-
-#include <iostream>
-#include <sstream>
-
-#include <sax/SAXParseException.hpp>
-#include <Ice/SslConfigErrorReporter.h>
-#include <stdlib.h>
-#include <string.h>
-#include <Ice/Security.h>
-
-using namespace std;
-
-void
-IceSecurity::Ssl::ErrorReporter::warning(const SAXParseException& toCatch)
-{
- if (ICE_SECURITY_LEVEL_PARSEWARNINGS)
- {
- ostringstream s;
-
- s << "SSL configuration file parse warning.\n"
- << "Xerces-c Init Exception: "<< "Warning at file \""
- << DOMString(toCatch.getSystemId())
- << "\", line " << toCatch.getLineNumber()
- << ", column " << toCatch.getColumnNumber()
- << "\n Message: " << DOMString(toCatch.getMessage()) << endl;
-
- ICE_PARSE_WARNING(s.str());
- }
-}
-
-void
-IceSecurity::Ssl::ErrorReporter::error(const SAXParseException& toCatch)
-{
- _sawErrors = true;
-
- if (ICE_SECURITY_LEVEL_PARSEWARNINGS)
- {
- ostringstream s;
-
- s << "SSL configuration file parse error.\n"
- << "Xerces-c Init Exception: "<< "Error at file \""
- << DOMString(toCatch.getSystemId())
- << "\", line " << toCatch.getLineNumber()
- << ", column " << toCatch.getColumnNumber()
- << "\n Message: " << DOMString(toCatch.getMessage()) << endl;
-
- ICE_PARSE_WARNING(s.str());
- }
-}
-
-void
-IceSecurity::Ssl::ErrorReporter::fatalError(const SAXParseException& toCatch)
-{
- _sawErrors = true;
-
- if (ICE_SECURITY_LEVEL_PARSEWARNINGS)
- {
- ostringstream s;
-
- s << "SSL configuration file parse error.\n"
- << "Xerces-c Init Exception: "<< "Fatal error at file \""
- << DOMString(toCatch.getSystemId())
- << "\", line " << toCatch.getLineNumber()
- << ", column " << toCatch.getColumnNumber()
- << "\n Message: " << DOMString(toCatch.getMessage()) << endl;
-
- ICE_PARSE_WARNING(s.str());
- }
-}
-
-void
-IceSecurity::Ssl::ErrorReporter::resetErrors()
-{
- // No-op in this case
-}
-
+// ********************************************************************** +// +// Copyright (c) 2001 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#include <iostream> +#include <sstream> + +#include <sax/SAXParseException.hpp> +#include <Ice/SslConfigErrorReporter.h> +#include <stdlib.h> +#include <string.h> +#include <Ice/Security.h> + +using namespace std; + +void +IceSecurity::Ssl::ErrorReporter::warning(const SAXParseException& toCatch) +{ + if (ICE_SECURITY_LEVEL_PARSEWARNINGS) + { + ostringstream s; + + s << "SSL configuration file parse warning.\n" + << "Xerces-c Init Exception: "<< "Warning at file \"" + << DOMString(toCatch.getSystemId()) + << "\", line " << toCatch.getLineNumber() + << ", column " << toCatch.getColumnNumber() + << "\n Message: " << DOMString(toCatch.getMessage()) << endl; + + ICE_PARSE_WARNING(s.str()); + } +} + +void +IceSecurity::Ssl::ErrorReporter::error(const SAXParseException& toCatch) +{ + _sawErrors = true; + + if (ICE_SECURITY_LEVEL_PARSEWARNINGS) + { + ostringstream s; + + s << "SSL configuration file parse error.\n" + << "Xerces-c Init Exception: "<< "Error at file \"" + << DOMString(toCatch.getSystemId()) + << "\", line " << toCatch.getLineNumber() + << ", column " << toCatch.getColumnNumber() + << "\n Message: " << DOMString(toCatch.getMessage()) << endl; + + ICE_PARSE_WARNING(s.str()); + } +} + +void +IceSecurity::Ssl::ErrorReporter::fatalError(const SAXParseException& toCatch) +{ + _sawErrors = true; + + if (ICE_SECURITY_LEVEL_PARSEWARNINGS) + { + ostringstream s; + + s << "SSL configuration file parse error.\n" + << "Xerces-c Init Exception: "<< "Fatal error at file \"" + << DOMString(toCatch.getSystemId()) + << "\", line " << toCatch.getLineNumber() + << ", column " << toCatch.getColumnNumber() + << "\n Message: " << DOMString(toCatch.getMessage()) << endl; + + ICE_PARSE_WARNING(s.str()); + } +} + +void +IceSecurity::Ssl::ErrorReporter::resetErrors() +{ + // No-op in this case +} + |