summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/gpg/XMLSignature.hxx
diff options
context:
space:
mode:
authorThorsten Behrens <Thorsten.Behrens@CIB.de>2017-05-12 00:26:06 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2017-05-18 09:18:47 +0200
commitcae5f2a543b31552ccd9765aca5eb514fa694e07 (patch)
treec9d76324302dff75f9f89605ee5e62d431d89707 /xmlsecurity/source/gpg/XMLSignature.hxx
parent4c05834a363535804d2cf5892704e19a5bb4f966 (diff)
gpg4libre: initial GPG signature generation
* takes XML-Sec signature template * calculates digest for all added reference streams * produces signature value over canonicalized signature template * writes same as detached signature into template, streams that out Change-Id: I303e080dc25c440175fe1ae897f03cf356d5d0f2 Reviewed-on: https://gerrit.libreoffice.org/36106 Reviewed-by: Siegmund Gorr <siegmund.gorr@cib.de> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'xmlsecurity/source/gpg/XMLSignature.hxx')
-rw-r--r--xmlsecurity/source/gpg/XMLSignature.hxx44
1 files changed, 0 insertions, 44 deletions
diff --git a/xmlsecurity/source/gpg/XMLSignature.hxx b/xmlsecurity/source/gpg/XMLSignature.hxx
deleted file mode 100644
index 8e8a49cb3ad5..000000000000
--- a/xmlsecurity/source/gpg/XMLSignature.hxx
+++ /dev/null
@@ -1,44 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-#ifndef INCLUDED_XMLSECURITY_SOURCE_XMLSEC_GPG_XMLSIGNATURE_HXX
-#define INCLUDED_XMLSECURITY_SOURCE_XMLSEC_GPG_XMLSIGNATURE_HXX
-
-#include <sal/config.h>
-#include <rtl/ustring.hxx>
-#include <cppuhelper/implbase.hxx>
-#include <com/sun/star/uno/Exception.hpp>
-
-#include <com/sun/star/uno/Reference.hxx>
-#include <com/sun/star/xml/crypto/XXMLSignature.hpp>
-#include <com/sun/star/xml/crypto/XXMLSignatureTemplate.hpp>
-#include <com/sun/star/xml/crypto/XXMLSecurityContext.hpp>
-#include <com/sun/star/xml/crypto/XMLSignatureException.hpp>
-
-class XMLSignatureGpg : public cppu::WeakImplHelper< css::xml::crypto::XXMLSignature >
-{
-public:
- explicit XMLSignatureGpg();
- virtual ~XMLSignatureGpg() override;
-
- // XXMLSignature
- virtual css::uno::Reference< css::xml::crypto::XXMLSignatureTemplate > SAL_CALL generate(
- const css::uno::Reference< css::xml::crypto::XXMLSignatureTemplate >& aTemplate ,
- const css::uno::Reference< css::xml::crypto::XSecurityEnvironment >& aEnvironment
- ) override;
-
- virtual css::uno::Reference< css::xml::crypto::XXMLSignatureTemplate > SAL_CALL validate(
- const css::uno::Reference< css::xml::crypto::XXMLSignatureTemplate >& aTemplate ,
- const css::uno::Reference< css::xml::crypto::XXMLSecurityContext >& aContext
- ) override;
-};
-
-#endif // INCLUDED_XMLSECURITY_SOURCE_XMLSEC_GPG_XMLSIGNATURE_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */