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();
37 signatureField->setSignature(*signature);
46 static std::tuple<double, double> calculateDxDy(int rot, const PDFRectangle *rect)
49 void FormFieldSignature::hashSignedDataBlock(CryptoSign::VerificationInterface *handler, Goffset block_len)
62 FormSignatureType FormWidgetSignature::signatureType() const
65 SignatureInfo *FormFieldSignature::validateSignature(bool doVerifyCert, bool forceRevalidation, time_t validationTime, bool ocspRevocationCheck, bool enableAIA)
68 auto backend = CryptoSign::Factory::createActive();
70 return signature_info;
72 const CertificateValidationStatus cert_val_state = signature_handler->validateCertificate(std::chrono::system_clock::from_time_t(validationTime), ocspRevocationCheck, enableAIA);
73 signature_info->setCertificateValStatus(cert_val_state);
76 return signature_info;