office-gobmx/offapi/com/sun/star
Miklos Vajna 07df95e75a cool#9992 lok doc sign: async DocumentDigitalSignatures::ImplViewSignatures()
Currently SfxObjectShell::CheckIsReadonly() has a hack for the LOK case
to show the signatures dialog read-only, as only that is async.

The next step is to make DocumentDigitalSignatures::ImplViewSignatures()
async, though that requires all callers of the function to be async, so
make DocumentDigitalSignatures::signScriptingContent() async as well.
There is also DocumentDigitalSignatures::signPackage(), but turns out
that's dead code, so just remove it.

Once this is in place, we had a problem that the callbacks tried to
interact with libxmlsec, but the dialog was still alive in
DocumentDigitalSignatures::ImplViewSignatures() by the time the callback
was running, so there were two DocumentSignatureManager instances at the
same time, and both assumes it should call the global libxmlsec
init/uninit, which resulted in failing to verify the just created
signature.

Fix this similar to how Tomaz fixed the same problem around pdfium in
commit 067a8a954c (pdfium: only init
pdfium library one and destroy on LO exit, 2020-06-03).

Change-Id: I3fb63c06195564732e1576dbd755157e676fb762
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173117
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-09-10 11:27:46 +02:00
..
accessibility a11y: Clarify XAccessibleHyperlink doc 2024-08-09 07:01:55 +02:00
animations
auth
awt Expose WorkWindow fullscreen mode via new XTopWindow3 2024-08-02 15:47:54 +02:00
chart tdf#82716 Add initial implementation of the Histogram Chart 2024-07-21 08:02:43 +02:00
chart2
configuration
cui
datatransfer
deployment
document
drawing tdf#161347 Harmonise API docs for UserDefinedAttributes a bit 2024-08-19 16:02:42 +02:00
embed
form
formula
frame tdf#161347 Harmonise API docs for UserDefinedAttributes a bit 2024-08-19 16:02:42 +02:00
gallery
geometry
graphic Add missing property to com.sun.star.graphic.MediaProperties service 2024-08-18 15:13:27 +02:00
i18n
image
inspection
ldap
linguistic2
logging
mail
media
mozilla
office
packages
presentation sd: slideshow render interface and implementation 2024-07-10 08:05:56 +02:00
qa
rdf
rendering
report
resource
scanner
script
sdb
sdbc
sdbcx
security cool#9992 lok doc sign: async DocumentDigitalSignatures::ImplViewSignatures() 2024-09-10 11:27:46 +02:00
setup
sheet Resolves: tdf#159343 Implement TableRef API token conversion 2024-07-29 16:29:19 +02:00
smarttags
style tdf#161347 Harmonise API docs for UserDefinedAttributes a bit 2024-08-19 16:02:42 +02:00
svg
system
table tdf#161347 Harmonise API docs for UserDefinedAttributes a bit 2024-08-19 16:02:42 +02:00
task
text Fix some copypaste errors in IDL documentation 2024-08-16 15:53:49 +02:00
tiledrendering
ucb
ui tdf#159040: add sign with default certificate to save dialog 2024-07-24 07:08:46 +02:00
util
view
xforms
xml
xsd
modules.idl