From a237e9244512951e47cca0251aed00d8094de469 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 18 Oct 2013 09:18:45 -0400 Subject: Warn when -accessibility=n will be ignored Also accept -accessibility=n with 256 bit keys even though it will be ignored. --- libqpdf/QPDFWriter.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libqpdf') 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); } -- cgit v1.2.3-54-g00ecf