diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-10-18 10:29:45 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-11-08 14:56:49 +0100 |
commit | 728718b0fe7c5697bd7e96b008f6d911d31c7279 (patch) | |
tree | 45fe0b0f51b87f9dd72f5ee57678a7824315734d /xmlsecurity | |
parent | db4b4bdfc9b5dd7c4110668897a5eeb1910fc31a (diff) |
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>
(cherry picked from commit a113aff7add62da5f2f8ffe0be453af4b1b79866)
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/helper/xmlsignaturehelper.cxx | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/xmlsecurity/source/helper/xmlsignaturehelper.cxx b/xmlsecurity/source/helper/xmlsignaturehelper.cxx index 33406fe2a829..de2812a6fa21 100644 --- a/xmlsecurity/source/helper/xmlsignaturehelper.cxx +++ b/xmlsecurity/source/helper/xmlsignaturehelper.cxx @@ -244,32 +244,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 ); @@ -279,9 +269,7 @@ bool XMLSignatureHelper::ReadAndVerifySignature( const css::uno::Reference< css: mbError = true; } - /* - * release the signature reader - */ + // release the signature reader mpXSecController->releaseSignatureReader( ); return !mbError; |