summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/source/lib/init.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 8d2c594bc3b3..f6462057cd9d 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3934,6 +3934,8 @@ static bool doc_insertCertificate(LibreOfficeKitDocument* pThis,
if (!xCertificate.is())
return false;
+ SolarMutexGuard aGuard;
+
return pObjectShell->SignDocumentContentUsingCertificate(xCertificate);
}
@@ -4011,6 +4013,8 @@ static int doc_getSignatureState(LibreOfficeKitDocument* pThis)
if (!pObjectShell)
return int(SignatureState::UNKNOWN);
+ SolarMutexGuard aGuard;
+
pObjectShell->RecheckSignature(false);
return int(pObjectShell->GetDocumentSignatureState());