From f68b1541ea2f26a1137d4d20ceb23d036d0a00b7 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 9 Nov 2016 16:32:48 +0100 Subject: xmlsecurity PDF sign: improve suggested signature ID So that when we have a single signature with ID="Signature2", then we use "Signature3" for the next ID, not "Signature2". (Acrobat uses that ID for the first signature.) Change-Id: I7032fbf014184da2a5be24730a92abc32a9a1258 Reviewed-on: https://gerrit.libreoffice.org/30725 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- xmlsecurity/inc/pdfio/pdfdocument.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xmlsecurity/inc') diff --git a/xmlsecurity/inc/pdfio/pdfdocument.hxx b/xmlsecurity/inc/pdfio/pdfdocument.hxx index d90fdf50245b..79ef60b2e8c0 100644 --- a/xmlsecurity/inc/pdfio/pdfdocument.hxx +++ b/xmlsecurity/inc/pdfio/pdfdocument.hxx @@ -113,6 +113,8 @@ class XMLSECURITY_DLLPUBLIC PDFDocument static int AsHex(char ch); /// Decode a hex dump. static std::vector DecodeHexString(PDFHexStringElement* pElement); + /// Suggest a minimal, yet free signature ID to use for the next signature. + sal_uInt32 GetNextSignature(); public: PDFDocument(); -- cgit v1.2.3