1 disable NSS/GPGMEPP dependent code.
3 --- poppler/poppler/Form.cc.orig 2023-06-05 19:29:14.000000000 +0900
4 +++ poppler/poppler/Form.cc 2023-06-17 16:51:27.873431500 +0900
9 -#include "CryptoSignBackend.h"
10 +/*#include "CryptoSignBackend.h"*/
11 #include "SignatureInfo.h"
12 #include "CertificateInfo.h"
16 return static_cast<FormFieldSignature *>(field)->validateSignature(doVerifyCert, forceRevalidation, validationTime, ocspRevocationCheck, enableAIA);
20 // update hash with the specified range of data from the file
21 static bool hashFileRange(FILE *f, CryptoSign::SigningInterface *handler, Goffset start, Goffset end)
29 bool FormWidgetSignature::signDocument(const std::string &saveFilename, const std::string &certNickname, const std::string &password, const GooString *reason, const GooString *location, const std::optional<GooString> &ownerPassword,
30 const std::optional<GooString> &userPassword)
33 auto backend = CryptoSign::Factory::createActive();
44 bool FormWidgetSignature::signDocumentWithAppearance(const std::string &saveFilename, const std::string &certNickname, const std::string &password, const GooString *reason, const GooString *location,
47 void FormFieldSignature::hashSignedDataBlock(CryptoSign::VerificationInterface *handler, Goffset block_len)
60 FormSignatureType FormWidgetSignature::signatureType() const
63 SignatureInfo *FormFieldSignature::validateSignature(bool doVerifyCert, bool forceRevalidation, time_t validationTime, bool ocspRevocationCheck, bool enableAIA)
66 auto backend = CryptoSign::Factory::createActive();
68 return signature_info;
70 const CertificateValidationStatus cert_val_state = signature_handler->validateCertificate(std::chrono::system_clock::from_time_t(validationTime), ocspRevocationCheck, enableAIA);
71 signature_info->setCertificateValStatus(cert_val_state);
74 return signature_info;