summaryrefslogtreecommitdiffstats
path: root/xmlsecurity
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-10-18 10:29:45 +0200
committerTomaž Vajngerl <quikee@gmail.com>2018-10-29 08:58:54 +0100
commita113aff7add62da5f2f8ffe0be453af4b1b79866 (patch)
tree0d8ab286a2432f10a7f2cc2555ac8411e698a324 /xmlsecurity
parentxmlsecurity: UNO interface to create cert. and private key (diff)
downloadcore-a113aff7add62da5f2f8ffe0be453af4b1b79866.tar.gz
core-a113aff7add62da5f2f8ffe0be453af4b1b79866.zip
xmlsignaturehelper: fix comments, no change
Change-Id: Ibfdf92712264ad37aafed53db0fe8e8c4fea4699 Reviewed-on: https://gerrit.libreoffice.org/61913 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'xmlsecurity')
-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;