// ********************************************************************** // // Copyright (c) 2001 // MutableRealms, Inc. // Huntsville, AL, USA // // All Rights Reserved // // ********************************************************************** #include #include #include #include #include #include #include #include #include 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" << flush; s << "Xerces-c Init Exception: Warning at file \"" << flush; s << DOMString(toCatch.getSystemId()) << flush; s << "\", line " << toCatch.getLineNumber() << flush; s << ", column " << toCatch.getColumnNumber() << flush; s << "\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" << flush; s << "Xerces-c Init Exception: Error at file \"" << flush; s << DOMString(toCatch.getSystemId()) << flush; s << "\", line " << toCatch.getLineNumber() << flush; s << ", column " << toCatch.getColumnNumber() << flush; s << "\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" << flush; s << "Xerces-c Init Exception: Fatal error at file \"" << flush; s << DOMString(toCatch.getSystemId()) << flush; s << "\", line " << toCatch.getLineNumber() << flush; s << ", column " << toCatch.getColumnNumber() << flush; s << "\n Message: " << DOMString(toCatch.getMessage()) << endl; ICE_PARSE_WARNING(s.str()); } } void IceSecurity::Ssl::ErrorReporter::resetErrors() { // No-op in this case }