office-gobmx/sfx2/CppunitTest_sfx2_view.mk
Miklos Vajna 60261557e5 cool#9992 lok doc sign: add initial serialization of external signatures
Now that the hash extract part works, the other end of this external
signature support is to be able to integrate an externally generated
(e.g. qualified) signature into our PDF file.

The problem is that we have SignDocumentContentUsingCertificate() for
non-interactive signing and we have the interactive sign dialog, but we
have no way to integrate an existing PKCS#7 blob.

Fix the problem by extending vcl::filter::PDFDocument::Sign(): if a
signature value is provided, then integrate that, instead of calling
svl::crypto::Signing::Sign() to generate a new signature.

Also extend the SigningContext documentation, since now it has 3 modes
(normal sign, hash extract, sign serialize).

Change-Id: I113fb536b1a83b8a4869a7064bb415bca6a91ae4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176623
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-11-15 12:53:47 +01:00

50 lines
1.3 KiB
Makefile

# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#*************************************************************************
#
# 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/.
#
#*************************************************************************
$(eval $(call gb_CppunitTest_CppunitTest,sfx2_view))
$(eval $(call gb_CppunitTest_use_externals,sfx2_view,\
boost_headers \
))
$(eval $(call gb_CppunitTest_add_exception_objects,sfx2_view, \
sfx2/qa/cppunit/view \
))
$(eval $(call gb_CppunitTest_use_libraries,sfx2_view, \
comphelper \
cppu \
cppuhelper \
sal \
subsequenttest \
test \
unotest \
utl \
tl \
sfx \
svl \
vcl \
))
$(eval $(call gb_CppunitTest_use_sdk_api,sfx2_view))
$(eval $(call gb_CppunitTest_use_ure,sfx2_view))
$(eval $(call gb_CppunitTest_use_vcl,sfx2_view))
$(eval $(call gb_CppunitTest_use_rdb,sfx2_view,services))
$(eval $(call gb_CppunitTest_use_custom_headers,sfx2_view,\
officecfg/registry \
))
$(eval $(call gb_CppunitTest_use_configuration,sfx2_view))
# vim: set noet sw=4 ts=4: