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)->validateSignatureResult();
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::validateSignatureAsync(bool doVerifyCert, bool forceRevalidation, time_t validationTime, bool ocspRevocationCheck, bool enableAIA, const std::function<void()> &doneCallback)
68 auto backend = CryptoSign::Factory::createActive();
73 signature_handler->validateCertificateAsync(std::chrono::system_clock::from_time_t(validationTime), ocspRevocationCheck, enableAIA, doneCallback);
76 return signature_info;
79 @@ -2508,10 +2508,13 @@
81 CertificateValidationStatus FormFieldSignature::validateSignatureResult()
84 if (!signature_handler) {
85 return CERTIFICATE_GENERIC_ERROR;
87 return signature_handler->validateCertificateResult();
89 + return CERTIFICATE_GENERIC_ERROR;
92 std::vector<Goffset> FormFieldSignature::getSignedRangeBounds() const
94 --- poppler/poppler/Form.h 2024-05-13 10:18:04.303912457 +0200
95 +++ poppler/poppler/Form.h 2024-05-13 11:41:51.547002511 +0200
97 double customAppearanceLeftFontSize = 20;
98 Ref imageResource = Ref::INVALID();
99 std::unique_ptr<X509CertificateInfo> certificate_info;
100 - std::unique_ptr<CryptoSign::VerificationInterface> signature_handler;
102 void print(int indent) override;