aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_encryption.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-02-02 20:24:06 +0100
committerJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-02-02 21:07:32 +0100
commit4d507251fe99b6cdb7b97c2fbe96f4b5bb518e04 (patch)
tree6a4337312711544e9dc83424565a8494c1698590 /libqpdf/QPDF_encryption.cc
parente813176bc02c32e26e109a1b86333ae181cc0601 (diff)
downloadqpdf-4d507251fe99b6cdb7b97c2fbe96f4b5bb518e04.tar.zst
Change QPDFExc type to unsupported for /Standard filter
Diffstat (limited to 'libqpdf/QPDF_encryption.cc')
-rw-r--r--libqpdf/QPDF_encryption.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDF_encryption.cc b/libqpdf/QPDF_encryption.cc
index 2301cbb5..f6abf5ae 100644
--- a/libqpdf/QPDF_encryption.cc
+++ b/libqpdf/QPDF_encryption.cc
@@ -849,7 +849,7 @@ QPDF::initializeEncryption()
if (! (encryption_dict.getKey("/Filter").isName() &&
(encryption_dict.getKey("/Filter").getName() == "/Standard")))
{
- throw QPDFExc(qpdf_e_damaged_pdf, this->m->file->getName(),
+ throw QPDFExc(qpdf_e_unsupported, this->m->file->getName(),
"encryption dictionary", this->m->file->getLastOffset(),
"unsupported encryption filter");
}