summaryrefslogtreecommitdiff
path: root/xmlsecurity/inc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-10-14 15:38:57 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-10-14 15:39:41 +0200
commitd550f5e6b670e75907be5ea81e8fd5c0f4f67401 (patch)
tree1355079e43beab3c4e06977218d6d9da6f299d46 /xmlsecurity/inc
parentb3722cd9d33317c202b8492348cb4c75d02640f3 (diff)
xmlsecurity: expose reason string of PDF signatures
Also known as comment or description. And since then we need the hex decoding mechanism for this and Content as well, extract that to a new DecodeHexString(). Change-Id: Ie260b470c951661c80c0921b5ce2aa4c461f692c
Diffstat (limited to 'xmlsecurity/inc')
-rw-r--r--xmlsecurity/inc/pdfio/pdfdocument.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmlsecurity/inc/pdfio/pdfdocument.hxx b/xmlsecurity/inc/pdfio/pdfdocument.hxx
index 79cd7168a364..0eaaa0954801 100644
--- a/xmlsecurity/inc/pdfio/pdfdocument.hxx
+++ b/xmlsecurity/inc/pdfio/pdfdocument.hxx
@@ -25,6 +25,7 @@ namespace pdfio
class PDFTrailerElement;
class PDFObjectElement;
+class PDFHexStringElement;
/// A byte range in a PDF file.
class PDFElement
@@ -44,6 +45,8 @@ class XMLSECURITY_DLLPUBLIC PDFDocument
PDFTrailerElement* m_pTrailer;
static int AsHex(char ch);
+ /// Decode a hex dump.
+ static std::vector<unsigned char> DecodeHexString(PDFHexStringElement* pElement);
public:
PDFDocument();