summaryrefslogtreecommitdiffstats
path: root/xmlsecurity/source/helper/xmlsignaturehelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlsecurity/source/helper/xmlsignaturehelper.cxx')
-rw-r--r--xmlsecurity/source/helper/xmlsignaturehelper.cxx26
1 files changed, 7 insertions, 19 deletions
diff --git a/xmlsecurity/source/helper/xmlsignaturehelper.cxx b/xmlsecurity/source/helper/xmlsignaturehelper.cxx
index 0e7a77640a68..db80016f84e0 100644
--- a/xmlsecurity/source/helper/xmlsignaturehelper.cxx
+++ b/xmlsecurity/source/helper/xmlsignaturehelper.cxx
@@ -257,32 +257,22 @@ bool XMLSignatureHelper::ReadAndVerifySignature( const css::uno::Reference< css:
SAL_WARN_IF(!xInputStream.is(), "xmlsecurity.helper", "input stream missing");
- /*
- * prepare ParserInputSrouce
- */
+ // prepare ParserInputSrouce
xml::sax::InputSource aParserInput;
aParserInput.aInputStream = xInputStream;
- /*
- * get SAX parser component
- */
+ // get SAX parser component
uno::Reference< xml::sax::XParser > xParser = xml::sax::Parser::create(mxCtx);
- /*
- * create a signature reader
- */
+ // create a signature reader
uno::Reference< xml::sax::XDocumentHandler > xHandler
= mpXSecController->createSignatureReader(*this);
- /*
- * setup the connection:
- * Parser -> SignatureReader
- */
+ // setup the connection:
+ // Parser -> SignatureReader
xParser->setDocumentHandler( xHandler );
- /*
- * parser the stream
- */
+ // parser the stream
try
{
xParser->parseStream( aParserInput );
@@ -292,9 +282,7 @@ bool XMLSignatureHelper::ReadAndVerifySignature( const css::uno::Reference< css:
mbError = true;
}
- /*
- * release the signature reader
- */
+ // release the signature reader
mpXSecController->releaseSignatureReader( );
return !mbError;