aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_encryption.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2018-08-13 04:32:40 +0200
committerJay Berkenbilt <ejb@ql.org>2018-08-13 04:32:40 +0200
commit5d9d80beba1caa5828093dd1932fd806df1e644b (patch)
treeba99b5b93809b070a19b0800d52bd65715d37777 /libqpdf/QPDF_encryption.cc
parentfb1e29476c6b40ce08fbb59925da7d120099c00c (diff)
downloadqpdf-5d9d80beba1caa5828093dd1932fd806df1e644b.tar.zst
Fix fallback logic for encryption (fixes #229)
Diffstat (limited to 'libqpdf/QPDF_encryption.cc')
-rw-r--r--libqpdf/QPDF_encryption.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libqpdf/QPDF_encryption.cc b/libqpdf/QPDF_encryption.cc
index b05e070b..21cbb266 100644
--- a/libqpdf/QPDF_encryption.cc
+++ b/libqpdf/QPDF_encryption.cc
@@ -1124,6 +1124,7 @@ QPDF::decryptString(std::string& str, int objid, int generation)
// To avoid repeated warnings, reset cf_string. Assume
// we'd want to use AES if V == 4.
this->m->cf_string = e_aes;
+ use_aes = true;
break;
}
}