office-gobmx/sfx2/sdi
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
..
appslots.sdi tdf#163291 Fix AdditionsDialog in start center 2024-10-04 13:04:38 +02:00
docslots.sdi tdf#163291 Fix AdditionsDialog in start center 2024-10-04 13:04:38 +02:00
frmslots.sdi tdf#153587 Display CTRL+F in the keyboard shortcuts list 2023-05-04 08:15:27 +02:00
sfx.sdi cool#9992 lok doc sign: add initial serialization of external signatures 2024-11-15 12:53:47 +01:00
sfxitems.sdi
sfxslots.sdi
viwslots.sdi