// ********************************************************************** // // Copyright (c) 2001 // MutableRealms, Inc. // Huntsville, AL, USA // // All Rights Reserved // // ********************************************************************** #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" << "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 }