• Miklos Vajna's avatar
    xmlsecurity: verify certificate of PDF signatures · d67a7ff3
    Miklos Vajna yazdı
    We patch xmlsec to not verify certificates, and the PDF tokenizer in
    xmlsecurity doesn't do that, either. The point of doing so, is that the
    DocumentSignatureInformation UNO struct has separate CertificateStatus
    and SignatureIsValid fields for the validity of the certificate and the
    signature.
    
    That means the certificate has to be validated somewhere as well.
    ZIP-based formats do that in
    DocumentDigitalSignatures::ImplVerifySignatures(), and this commit
    implements the same for PDF signatures, too.
    
    Change-Id: Ic486afc8f392625b1efcad989fd9053b014a261b
    Reviewed-on: https://gerrit.libreoffice.org/29889Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
    d67a7ff3
pdfsignaturehelper.cxx 3.6 KB