summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/pdfencrypt.c
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2018-02-17 08:41:35 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2018-02-17 08:41:35 +0000
commit77cea4c016ed732551b4b94fc5c452180a894123 (patch)
tree73c4ebafd79c155c763829277f5255212c36f6d1 /Build/source/texk/dvipdfm-x/pdfencrypt.c
parent9c6def6021823454892b24da379284c7487992d9 (diff)
dvipdfm-x version 20180217: Accept PDF version tag 2.0. (S. Hirata)
git-svn-id: svn://tug.org/texlive/trunk@46658 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/pdfencrypt.c')
-rw-r--r--Build/source/texk/dvipdfm-x/pdfencrypt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdfencrypt.c b/Build/source/texk/dvipdfm-x/pdfencrypt.c
index c29543f7e25..d5cb1cf046e 100644
--- a/Build/source/texk/dvipdfm-x/pdfencrypt.c
+++ b/Build/source/texk/dvipdfm-x/pdfencrypt.c
@@ -1,6 +1,6 @@
/* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
- Copyright (C) 2002-2016 by Jin-Hwan Cho and Shunsaku Hirata,
+ Copyright (C) 2002-2018 by Jin-Hwan Cho and Shunsaku Hirata,
the dvipdfmx project team.
This program is free software; you can redistribute it and/or modify
@@ -463,14 +463,14 @@ getpass (const char *prompt)
static void
check_version (struct pdf_sec *p, int version)
{
- if (p->V > 2 && version < 4) {
+ if (p->V > 2 && version < 14) {
WARN("Current encryption setting requires PDF version >= 1.4.");
p->V = 1;
p->key_size = 5;
- } else if (p->V == 4 && version < 5) {
+ } else if (p->V == 4 && version < 15) {
WARN("Current encryption setting requires PDF version >= 1.5.");
p->V = 2;
- } else if (p->V ==5 && version < 7) {
+ } else if (p->V ==5 && version < 17) {
WARN("Current encryption setting requires PDF version >= 1.7" \
" (plus Adobe Extension Level 3).");
p->V = 4;