diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-11-17 12:40:06 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-11-17 15:54:06 +0100 |
commit | 972c1e9e7239ef84611b01dad5b112af8f353d3c (patch) | |
tree | 6c14d93b01a0071d29da179dc0706ebe36fca876 /xmlsecurity/inc/pdfsignaturehelper.hxx | |
parent | 07d4f5d9e3b40025aaee12bb309317b2d267fbdc (diff) |
xmlsecurity PDF sign: handle AdES when writing SubFilter
Page 21 of "PAdES baseline signatures" specification from
<http://www.etsi.org/deliver/etsi_en/319100_319199/31914201/01.01.01_60/en_31914201v010101p.pdf>
says:
"The Signature Dictionary shall contain a value of ETSI.CAdES.detached
for the key SubFilter."
So in case the UI has the adescompliant checkbox enabled, write that
value instead of the Adobe default.
Change-Id: I69e606a32fb09bebd5e9b25b32150d1b8672f544
Diffstat (limited to 'xmlsecurity/inc/pdfsignaturehelper.hxx')
-rw-r--r-- | xmlsecurity/inc/pdfsignaturehelper.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlsecurity/inc/pdfsignaturehelper.hxx b/xmlsecurity/inc/pdfsignaturehelper.hxx index 55d8567cf8e9..7efdbfba421f 100644 --- a/xmlsecurity/inc/pdfsignaturehelper.hxx +++ b/xmlsecurity/inc/pdfsignaturehelper.hxx @@ -43,7 +43,7 @@ public: /// Comment / reason to be used next time signing is performed. void SetDescription(const OUString& rDescription); /// Append a new signature at the end of xInputStream. - bool Sign(const css::uno::Reference<css::io::XInputStream>& xInputStream); + bool Sign(const css::uno::Reference<css::io::XInputStream>& xInputStream, bool bAdES); /// Remove the signature at nPosition (and all dependent signatures) from xInputStream. static bool RemoveSignature(const css::uno::Reference<css::io::XInputStream>& xInputStream, sal_uInt16 nPosition); }; |