summaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFWriter.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2013-10-18 15:18:45 +0200
committerJay Berkenbilt <ejb@ql.org>2013-10-18 16:45:15 +0200
commita237e9244512951e47cca0251aed00d8094de469 (patch)
treeb432b39abd85cff023d7587a5880ed087ff56fc6 /libqpdf/QPDFWriter.cc
parentac9c1f0d560540fda821b2775a475c71b47cb3a0 (diff)
downloadqpdf-a237e9244512951e47cca0251aed00d8094de469.tar.zst
Warn when -accessibility=n will be ignored
Also accept -accessibility=n with 256 bit keys even though it will be ignored.
Diffstat (limited to 'libqpdf/QPDFWriter.cc')
-rw-r--r--libqpdf/QPDFWriter.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc
index 833637d3..4e917469 100644
--- a/libqpdf/QPDFWriter.cc
+++ b/libqpdf/QPDFWriter.cc
@@ -462,7 +462,9 @@ QPDFWriter::setEncryptionParameters(
if (R > 3)
{
- // Bit 10 is deprecated and should always be set.
+ // Bit 10 is deprecated and should always be set. This used
+ // to mean accessibility. There is no way to disable
+ // accessibility with R > 3.
bits_to_clear.erase(10);
}