aboutsummaryrefslogtreecommitdiffstats
path: root/manual
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-02-04 21:55:41 +0100
committerJay Berkenbilt <ejb@ql.org>2021-02-04 21:57:13 +0100
commit21b0f4acfc0d6827f3d2d9a85873b7b649dc96f0 (patch)
treedfdba5b04e3cca31c0243cdc9032d2e30738c3e9 /manual
parentfaa2e3ddfd7e5bfd0922deb49b9c88e8eee08fbd (diff)
downloadqpdf-21b0f4acfc0d6827f3d2d9a85873b7b649dc96f0.tar.zst
Require --allow-insecure to create certain encrypted files (fixes #501)
For now, --allow-insecure allows creation of files with the owner passwords empty or matching the user password.
Diffstat (limited to 'manual')
-rw-r--r--manual/qpdf-manual.xml48
1 files changed, 46 insertions, 2 deletions
diff --git a/manual/qpdf-manual.xml b/manual/qpdf-manual.xml
index fda9c1fd..0d9fd489 100644
--- a/manual/qpdf-manual.xml
+++ b/manual/qpdf-manual.xml
@@ -1214,7 +1214,11 @@ make
</para>
<para>
Either or both of the user password and the owner password may be
- empty strings.
+ empty strings. Starting in qpdf 10.2, qpdf defaults to not
+ allowing creation of PDF files with an empty owner password or an
+ owner password that matches the user password. If you want to
+ create such files, specify the encryption option
+ <option>--allow-insecure</option>, as described below.
</para>
<para>
The value for
@@ -1224,6 +1228,25 @@ make
fully permissive.
</para>
<para>
+ For all key lengths, the following options are available:
+ <variablelist>
+ <varlistentry>
+ <term><option>--allow-insecure</option></term>
+ <listitem>
+ <para>
+ From qpdf 10.2, qpdf defaults to not allowing creation of PDF
+ files where the owner password is blank or matches the user
+ password. Files created in this way are insecure and can't be
+ opened by some viewers. Users would ordinarily never want to
+ create such files. If you are using qpdf to intentionally
+ created strange files for testing (a definite valid use of
+ qpdf!), this option allows you to create such insecure files.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ <para>
If <option><replaceable>key-length</replaceable></option> is 40,
the following restriction options are available:
<variablelist>
@@ -4824,7 +4847,28 @@ print "\n";
<itemizedlist>
<listitem>
<para>
- Behavior Changes
+ CLI Behavior Changes
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ By default, <command>qpdf</command> no longer allows
+ creation of encrypted PDF files whose owner password is
+ empty or matches the user password. The
+ <option>--allow-insecure</option>, specified inside the
+ <option>--encrypt</option> options, allows creation of such
+ files. Behavior changes in the CLI are avoided when
+ possible, but an exception was made here because this is
+ security-related. qpdf must always allow creation of weird
+ files for testing purposes, but it should not default to
+ letting users unknowingly create insecure files.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para>
+ Library Behavior Changes
</para>
<itemizedlist>
<listitem>