home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 110 / EnigmaAmiga110CD.iso / indispensabili / utility / apdf / xpdf-0.80 / decrypt_patch.diff < prev    next >
Text File  |  1999-07-08  |  96KB  |  1,981 lines

  1. --- xpdf-0.80-decrypt.patch.orig    Thu Jul  8 17:05:58 1999
  2. +++ xpdf-0.80-decrypt.patch    Thu Jul  8 17:05:48 1999
  3. @@ -1,12 +1,1424 @@
  4. -xpdf version 0.80 - Derek B. Noonburg
  5. -Decryption patch Leo J.B. Smiers
  6. -Decryption reworked for xpdf-0.80
  7. -Tony Nugent <Tony.Nugent@usq.edu.au>
  8. -December 1998
  9. -
  10. -diff -urN xpdf-0.80.orig/xpdf/Makefile.in xpdf-0.80/xpdf/Makefile.in
  11. ---- xpdf-0.80.orig/xpdf/Makefile.in    Sat Nov 28 13:49:23 1998
  12. -+++ xpdf-0.80/xpdf/Makefile.in    Wed Dec 16 17:03:00 1998
  13. +diff -u -b -B -r -N -w xpdf-0.80/README.decryption xpdf-0.80-decrypt/README.decryption
  14. +--- xpdf-0.80/README.decryption Thu Jan  1 00:00:00 1970
  15. ++++ xpdf-0.80-decrypt/README.decryption Wed Jul  7 21:06:59 1999
  16. +@@ -0,0 +1,103 @@
  17. ++xpdf version 0.80 with decryption patches
  18. ++
  19. ++With the release of version 0.80 of xpdf, I have retaken the decryption patch
  20. ++for this new version.
  21. ++
  22. ++Due to the changes that came with the 0.80 release, some re-working of parts of
  23. ++the decryption code became necessary in order to make it all work.
  24. ++
  25. ++Most of the comments (below) for version 0.7a still apply.
  26. ++
  27. ++DISCLAIMER:  I know next to nothing about decryption.  All I did was hack the
  28. ++code to make it work.
  29. ++
  30. ++Tony Nugent <Tony.Nugent@usq.edu.au>
  31. ++December 1998
  32. ++
  33. ++==========================================================================
  34. ++
  35. ++xpdf version 0.7a with decryption patches
  36. ++
  37. ++Author:                Derek B. Noonburg <derekn@foolabs.com>
  38. ++URL:           http://www.foolabs.com/xpdf/
  39. ++Sources:       ftp://ftp.foolabs.com/pub/xpdf/xpdf-0.7a.tar.gz
  40. ++               ftp://ftp.foolabs.com/pub/xpdf/xpdf-0.7a-patch1
  41. ++               ftp://ftp.foolabs.com/pub/xpdf/xpdf-0.7a-patch2
  42. ++               ftp://ftp.sci.usq.edu.au/pub/linux/xpdf/xpdf-0.7a-patch3
  43. ++Packager:      Tony Nugent <Tony.Nugent@usq.edu.au>
  44. ++
  45. ++This is a xpdf version 0.7a, but with the Makefile, divide-by-zero, and
  46. ++decryption patches added to it.
  47. ++
  48. ++For the reasons why xpdf, as distributed, is not capable of handling
  49. ++encrypted pdf files, please see:
  50. ++
  51. ++http://www.foolabs.com/xpdf/decryption.html
  52. ++
  53. ++What I have done is to add the decryption patches, and make all the sources
  54. ++available in a place off the US continent.
  55. ++
  56. ++This was born out of personal necessity... I had an encrypted pdf file that
  57. ++I *HAD* to read, so I went off to get the decryption patches for it from:
  58. ++
  59. ++http://people.a2000.nl/lsmiers/pdf/xpdf.html
  60. ++
  61. ++The patches were made available by Leo Smiers <L.Smiers@cable.A2000.nl> (in
  62. ++Europe, a place that also avoids problems with the senseless US exportation
  63. ++laws on encryption code).  Everything that was needed was in a file called
  64. ++"encryption.tar.gz", but I found that they didn't apply easily or cleanly,
  65. ++and it also involved "dropping in" some files into the xpdf source tree.
  66. ++
  67. ++Once I got it working, I simply retook the patch again so that all the
  68. ++source files and patches were all included in one file.
  69. ++
  70. ++Now all that is needed is "patch -p1 < patchfile" and everything is done.
  71. ++(Then you "configure" and "make" as usual).
  72. ++
  73. ++I then grabbed xpdf-0.7a-1.src.rpm from RedHat's "rawhide" ("5.2-beta")
  74. ++distribution and made some minor changes to it so that a decryption-capable
  75. ++version could be easily rebuilt from a .spec file.
  76. ++
  77. ++So that's what I did, and this is the result.  It seems to work just fine.
  78. ++
  79. ++I did some minor changes to RedHat's .spec file in the rpm so that it is
  80. ++installed into /usr/X11R6/bin rather than /usr/bin and also to put the
  81. ++ANNOUNCE file into the /usr/doc/xpdf-0.7a/ directory.
  82. ++
  83. ++I have contacted Derek (the author of xpdf) and got his blessing for what
  84. ++I've done.  I've also tried to contact Leo (from who's web site I got the
  85. ++decryption patches), but in almost two months he has not replied.
  86. ++
  87. ++I wrote this README file to document what I've done, then did some
  88. ++some teaking of the rpm spec file to get this added to the installation
  89. ++documation directory.
  90. ++
  91. ++From my understanding of the US laws on the export of encryption code,
  92. ++export of the sources for this patched version of the package is not
  93. ++permitted from the United States in electronic format.  (If you do this,
  94. ++you are considered to be an arms dealer!) As I understand it, the
  95. ++restrictions apply to taking such code *out* of the US in electronic
  96. ++format, not importing it nor taking it out in printed format.
  97. ++
  98. ++I don't live in the United States and we don't have silly laws like this
  99. ++here in Australia, so I can do what I like with these sources.
  100. ++
  101. ++I'm quite happy to put the resulting patch and the source and (glibc6)
  102. ++binary RPM files up on our web site and ftp server for general
  103. ++distribution.
  104. ++
  105. ++I will submitted the rpm packages to RedHat, leaving it up to them to do
  106. ++what they want (err... can) with it.  They might be able to use the binary
  107. ++version, but the probably won't be legally able to redistribute it (to
  108. ++places outside the US).
  109. ++
  110. ++Derek's web pages for xpdf are an excellent resource which I would strongly
  111. ++recommend a visit to it:
  112. ++
  113. ++http://www.foolabs.com/xpdf/
  114. ++
  115. ++ -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
  116. ++  Tony Nugent <Tony.Nugent@usq.edu.au>           <linux@usq.edu.au>
  117. ++  Computer Systems Officer                       Faculty of Science
  118. ++  University of Southern Queensland, Toowoomba Oueensland Australia
  119. ++ -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
  120. +diff -u -b -B -r -N -w xpdf-0.80/build020/xpdf/Makefile xpdf-0.80-decrypt/build020/xpdf/Makefile
  121. +--- xpdf-0.80/build020/xpdf/Makefile    Thu Jun 24 18:18:46 1999
  122. ++++ xpdf-0.80-decrypt/build020/xpdf/Makefile    Wed Jul  7 21:07:00 1999
  123. +@@ -59,7 +59,9 @@
  124. +    $(srcdir)/AOutputDev.cc \
  125. +    $(srcdir)/FontOutputDev.cc \
  126. +    $(srcdir)/AGfx.cc \
  127. +-       $(srcdir)/poly.cc
  128. ++       $(srcdir)/poly.cc \
  129. ++       $(srcdir)/md5.cc \
  130. ++       $(srcdir)/rc4.cc
  131. + #------------------------------------------------------------------------
  132. +@@ -73,7 +75,8 @@
  133. +    TextOutputDev.o AOutputDev.o XRef.o AGfx.o \
  134. +    GfxState.o Lexer.o Link.o Object.o OutputDev.o mystdio.o \
  135. +    Page.o Parser.o PDFDoc.o PSOutputDev.o Stream.o \
  136. +-       Apdfcommon.o Apdf.o ImageOutputDev.o poly.o FontOutputDev.o
  137. ++      Apdfcommon.o Apdf.o ImageOutputDev.o poly.o FontOutputDev.o \
  138. ++      md5.o rc4.o
  139. + APDF_LIBS = -L$(GOOLIBDIR) -lGoo $(OTHERLIBS) -lm
  140. + Apdf: $(APDF_OBJS)
  141. +@@ -96,137 +99,149 @@
  142. + Array.o: ../../xpdf/Array.cc ../../xpdf/../goo/gmem.h \
  143. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  144. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  145. +- ../../xpdf/Stream.h
  146. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  147. ++ ../../xpdf/rc4.h
  148. + Catalog.o: ../../xpdf/Catalog.cc ../../xpdf/../goo/gmem.h \
  149. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  150. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  151. +- ../../xpdf/Stream.h ../../xpdf/Page.h ../../xpdf/Error.h \
  152. +- ../../xpdf/config.h ../../xpdf/Link.h ../../xpdf/Catalog.h
  153. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  154. ++ ../../xpdf/rc4.h ../../xpdf/Page.h ../../xpdf/Link.h \
  155. ++ ../../xpdf/Catalog.h
  156. + Dict.o: ../../xpdf/Dict.cc ../../xpdf/../goo/gmem.h \
  157. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  158. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  159. +- ../../xpdf/Stream.h ../../xpdf/XRef.h
  160. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  161. ++ ../../xpdf/rc4.h ../../xpdf/XRef.h
  162. + Error.o: ../../xpdf/Error.cc ../../xpdf/../goo/gtypes.h \
  163. +  ../../xpdf/Params.h ../../xpdf/Error.h ../../xpdf/config.h
  164. + Gfx.o: ../../xpdf/Gfx.cc ../../xpdf/../goo/gmem.h ../../xpdf/Object.h \
  165. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  166. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  167. +- ../../xpdf/Stream.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  168. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  169. ++ ../../xpdf/rc4.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  170. +  ../../xpdf/GfxFont.h ../../xpdf/GfxState.h ../../xpdf/OutputDev.h \
  171. +- ../../xpdf/Params.h ../../xpdf/Error.h ../../xpdf/config.h \
  172. +- ../../xpdf/Gfx.h
  173. ++ ../../xpdf/Params.h ../../xpdf/Gfx.h
  174. + GfxFont.o: ../../xpdf/GfxFont.cc ../../xpdf/../goo/GString.h \
  175. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/gfile.h \
  176. +  ../../xpdf/../goo/gtypes.h ../../xpdf/config.h ../../xpdf/Object.h \
  177. +  ../../xpdf/mystdio.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  178. +- ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/Params.h \
  179. +- ../../xpdf/GfxFont.h ../../xpdf/FontInfo.h
  180. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/rc4.h \
  181. ++ ../../xpdf/Params.h ../../xpdf/GfxFont.h ../../xpdf/FontInfo.h
  182. + GfxState.o: ../../xpdf/GfxState.cc ../../xpdf/../goo/gmem.h \
  183. +  ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/Object.h \
  184. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  185. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  186. +- ../../xpdf/Stream.h ../../xpdf/GfxState.h
  187. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/GfxState.h
  188. + ImageOutputDev.o: ../../xpdf/ImageOutputDev.cc \
  189. +  ../../xpdf/../goo/gmem.h ../../xpdf/config.h ../../xpdf/Error.h \
  190. +  ../../xpdf/GfxState.h ../../xpdf/../goo/gtypes.h ../../xpdf/Object.h \
  191. +  ../../xpdf/mystdio.h ../../xpdf/../goo/GString.h ../../xpdf/Array.h \
  192. +- ../../xpdf/Dict.h ../../xpdf/Stream.h ../../xpdf/ImageOutputDev.h \
  193. +- ../../xpdf/OutputDev.h
  194. ++ ../../xpdf/Dict.h ../../xpdf/Stream.h ../../xpdf/rc4.h \
  195. ++ ../../xpdf/ImageOutputDev.h ../../xpdf/OutputDev.h
  196. + Lexer.o: ../../xpdf/Lexer.cc ../../xpdf/Lexer.h ../../xpdf/Object.h \
  197. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  198. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  199. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  200. +- ../../xpdf/Error.h ../../xpdf/config.h
  201. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h
  202. + Link.o: ../../xpdf/Link.cc ../../xpdf/../goo/gmem.h \
  203. +  ../../xpdf/../goo/GString.h ../../xpdf/Error.h ../../xpdf/config.h \
  204. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  205. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  206. +- ../../xpdf/Link.h
  207. ++ ../../xpdf/rc4.h ../../xpdf/Link.h
  208. + Object.o: ../../xpdf/Object.cc ../../xpdf/Object.h \
  209. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  210. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  211. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  212. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/XRef.h
  213. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  214. ++ ../../xpdf/XRef.h
  215. + OutputDev.o: ../../xpdf/OutputDev.cc ../../xpdf/Object.h \
  216. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  217. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  218. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  219. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  220. +  ../../xpdf/GfxState.h ../../xpdf/OutputDev.h
  221. + Page.o: ../../xpdf/Page.cc ../../xpdf/Object.h ../../xpdf/mystdio.h \
  222. +  ../../xpdf/../goo/gtypes.h ../../xpdf/../goo/gmem.h \
  223. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  224. +- ../../xpdf/Stream.h ../../xpdf/XRef.h ../../xpdf/OutputDev.h \
  225. +- ../../xpdf/Gfx.h ../../xpdf/Error.h ../../xpdf/config.h \
  226. +- ../../xpdf/Params.h ../../xpdf/Page.h
  227. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  228. ++ ../../xpdf/rc4.h ../../xpdf/XRef.h ../../xpdf/OutputDev.h \
  229. ++ ../../xpdf/Gfx.h ../../xpdf/Params.h ../../xpdf/Page.h
  230. + Parser.o: ../../xpdf/Parser.cc ../../xpdf/Object.h \
  231. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  232. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  233. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  234. +- ../../xpdf/Parser.h ../../xpdf/Lexer.h ../../xpdf/Error.h \
  235. +- ../../xpdf/config.h
  236. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  237. ++ ../../xpdf/Parser.h ../../xpdf/Lexer.h ../../xpdf/md5.h \
  238. ++ ../../xpdf/XRef.h
  239. + PBMOutputDev.o: ../../xpdf/PBMOutputDev.cc ../../xpdf/../goo/gmem.h \
  240. +  ../../xpdf/../goo/GString.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  241. +  ../../xpdf/../goo/gtypes.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  242. +- ../../xpdf/Stream.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  243. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/Params.h \
  244. +- ../../xpdf/PBMOutputDev.h ../../xpdf/XOutputDev.h \
  245. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  246. ++ ../../xpdf/rc4.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  247. ++ ../../xpdf/Params.h ../../xpdf/PBMOutputDev.h ../../xpdf/XOutputDev.h \
  248. +  ../../xpdf/OutputDev.h
  249. + PDFDoc.o: ../../xpdf/PDFDoc.cc ../../xpdf/../goo/GString.h \
  250. +  ../../xpdf/config.h ../../xpdf/Page.h ../../xpdf/Object.h \
  251. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  252. +  ../../xpdf/../goo/gmem.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  253. +- ../../xpdf/Stream.h ../../xpdf/Catalog.h ../../xpdf/XRef.h \
  254. +- ../../xpdf/Link.h ../../xpdf/OutputDev.h ../../xpdf/Params.h \
  255. +- ../../xpdf/Error.h ../../xpdf/PDFDoc.h
  256. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/rc4.h \
  257. ++ ../../xpdf/Catalog.h ../../xpdf/XRef.h ../../xpdf/Link.h \
  258. ++ ../../xpdf/OutputDev.h ../../xpdf/Params.h ../../xpdf/PDFDoc.h
  259. + PSOutputDev.o: ../../xpdf/PSOutputDev.cc ../../xpdf/../goo/GString.h \
  260. +  ../../xpdf/config.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  261. +  ../../xpdf/../goo/gtypes.h ../../xpdf/../goo/gmem.h \
  262. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  263. +- ../../xpdf/Error.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  264. +- ../../xpdf/Catalog.h ../../xpdf/Page.h ../../xpdf/PSOutputDev.h \
  265. +- ../../xpdf/OutputDev.h
  266. ++ ../../xpdf/Error.h ../../xpdf/rc4.h ../../xpdf/GfxState.h \
  267. ++ ../../xpdf/GfxFont.h ../../xpdf/Catalog.h ../../xpdf/Page.h \
  268. ++ ../../xpdf/PSOutputDev.h ../../xpdf/OutputDev.h
  269. + Stream.o: ../../xpdf/Stream.cc ../../xpdf/../goo/gmem.h \
  270. +  ../../xpdf/config.h ../../xpdf/Error.h ../../xpdf/Object.h \
  271. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  272. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  273. +- ../../xpdf/Stream.h ../../xpdf/Stream-CCITT.h
  274. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/Stream-CCITT.h
  275. + TextOutputDev.o: ../../xpdf/TextOutputDev.cc \
  276. +  ../../xpdf/../goo/GString.h ../../xpdf/../goo/gmem.h \
  277. +  ../../xpdf/config.h ../../xpdf/Error.h ../../xpdf/GfxState.h \
  278. +  ../../xpdf/../goo/gtypes.h ../../xpdf/GfxFont.h ../../xpdf/Object.h \
  279. +  ../../xpdf/mystdio.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  280. +- ../../xpdf/Stream.h ../../xpdf/TextOutputDev.h ../../xpdf/OutputDev.h \
  281. +- ../../xpdf/TextOutputFontInfo.h
  282. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/TextOutputDev.h \
  283. ++ ../../xpdf/OutputDev.h ../../xpdf/TextOutputFontInfo.h
  284. + XRef.o: ../../xpdf/XRef.cc ../../xpdf/../goo/gmem.h \
  285. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  286. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  287. +- ../../xpdf/Stream.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  288. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/XRef.h
  289. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  290. ++ ../../xpdf/rc4.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  291. ++ ../../xpdf/XRef.h ../../xpdf/md5.h
  292. + Apdf.o: ../../xpdf/Apdf.c ../../xpdf/config.h ../../xpdf/AComm.h
  293. + Apdfcommon.o: ../../xpdf/Apdfcommon.cc ../../xpdf/../goo/parseargs.h \
  294. +  ../../xpdf/../goo/gtypes.h ../../xpdf/../goo/GString.h \
  295. +  ../../xpdf/../goo/gmem.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  296. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  297. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  298. +  ../../xpdf/XRef.h ../../xpdf/Catalog.h ../../xpdf/Page.h \
  299. +  ../../xpdf/Link.h ../../xpdf/PDFDoc.h ../../xpdf/AOutputDev.h \
  300. +- ../../xpdf/config.h ../../xpdf/OutputDev.h ../../xpdf/AGfx.h \
  301. +- ../../xpdf/poly.h ../../xpdf/TextOutputDev.h ../../xpdf/PSOutputDev.h \
  302. ++ ../../xpdf/OutputDev.h ../../xpdf/AGfx.h ../../xpdf/poly.h \
  303. ++ ../../xpdf/TextOutputDev.h ../../xpdf/PSOutputDev.h \
  304. +  ../../xpdf/ImageOutputDev.h ../../xpdf/FontOutputDev.h \
  305. +- ../../xpdf/GfxFont.h ../../xpdf/Error.h ../../xpdf/AComm.h
  306. ++ ../../xpdf/GfxFont.h ../../xpdf/AComm.h
  307. + AOutputDev.o: ../../xpdf/AOutputDev.cc ../../xpdf/../goo/gmem.h \
  308. +  ../../xpdf/../goo/GString.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  309. +  ../../xpdf/../goo/gtypes.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  310. +- ../../xpdf/Stream.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  311. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/TextOutputDev.h \
  312. +- ../../xpdf/OutputDev.h ../../xpdf/AOutputDev.h ../../xpdf/AGfx.h \
  313. +- ../../xpdf/poly.h ../../xpdf/FontOutputDev.h
  314. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  315. ++ ../../xpdf/rc4.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  316. ++ ../../xpdf/TextOutputDev.h ../../xpdf/OutputDev.h \
  317. ++ ../../xpdf/AOutputDev.h ../../xpdf/AGfx.h ../../xpdf/poly.h \
  318. ++ ../../xpdf/FontOutputDev.h
  319. + FontOutputDev.o: ../../xpdf/FontOutputDev.cc \
  320. +  ../../xpdf/../goo/GString.h ../../xpdf/../goo/gmem.h \
  321. +  ../../xpdf/config.h ../../xpdf/Error.h ../../xpdf/GfxState.h \
  322. +  ../../xpdf/../goo/gtypes.h ../../xpdf/GfxFont.h ../../xpdf/Object.h \
  323. +  ../../xpdf/mystdio.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  324. +- ../../xpdf/Stream.h ../../xpdf/FontOutputDev.h ../../xpdf/OutputDev.h \
  325. +- ../../xpdf/XOutputFontInfo.h
  326. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/FontOutputDev.h \
  327. ++ ../../xpdf/OutputDev.h ../../xpdf/XOutputFontInfo.h
  328. + AGfx.o: ../../xpdf/AGfx.cc ../../xpdf/../goo/gmem.h ../../xpdf/AGfx.h \
  329. +  ../../xpdf/poly.h
  330. + poly.o: ../../xpdf/poly.cc ../../xpdf/poly.h
  331. ++md5.o: ../../xpdf/md5.cc ../../xpdf/md5.h ../../xpdf/Error.h \
  332. ++ ../../xpdf/config.h
  333. ++rc4.o: ../../xpdf/rc4.cc ../../xpdf/rc4.h
  334. +diff -u -b -B -r -N -w xpdf-0.80/build040/xpdf/Makefile xpdf-0.80-decrypt/build040/xpdf/Makefile
  335. +--- xpdf-0.80/build040/xpdf/Makefile    Fri Jul  2 21:48:37 1999
  336. ++++ xpdf-0.80-decrypt/build040/xpdf/Makefile    Wed Jul  7 21:07:00 1999
  337. +@@ -59,7 +59,9 @@
  338. +    $(srcdir)/AOutputDev.cc \
  339. +    $(srcdir)/FontOutputDev.cc \
  340. +    $(srcdir)/AGfx.cc \
  341. +-       $(srcdir)/poly.cc
  342. ++       $(srcdir)/poly.cc \
  343. ++       $(srcdir)/md5.cc \
  344. ++       $(srcdir)/rc4.cc
  345. + #------------------------------------------------------------------------
  346. +@@ -73,7 +75,8 @@
  347. +    TextOutputDev.o AOutputDev.o XRef.o AGfx.o \
  348. +    GfxState.o Lexer.o Link.o Object.o OutputDev.o mystdio.o \
  349. +    Page.o Parser.o PDFDoc.o PSOutputDev.o Stream.o \
  350. +-       Apdfcommon.o Apdf.o ImageOutputDev.o poly.o FontOutputDev.o
  351. ++      Apdfcommon.o Apdf.o ImageOutputDev.o poly.o FontOutputDev.o \
  352. ++      md5.o rc4.o
  353. + APDF_LIBS = -L$(GOOLIBDIR) -lGoo $(OTHERLIBS) -lm
  354. + Apdf: $(APDF_OBJS)
  355. +@@ -96,137 +99,149 @@
  356. + Array.o: ../../xpdf/Array.cc ../../xpdf/../goo/gmem.h \
  357. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  358. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  359. +- ../../xpdf/Stream.h
  360. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  361. ++ ../../xpdf/rc4.h
  362. + Catalog.o: ../../xpdf/Catalog.cc ../../xpdf/../goo/gmem.h \
  363. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  364. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  365. +- ../../xpdf/Stream.h ../../xpdf/Page.h ../../xpdf/Error.h \
  366. +- ../../xpdf/config.h ../../xpdf/Link.h ../../xpdf/Catalog.h
  367. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  368. ++ ../../xpdf/rc4.h ../../xpdf/Page.h ../../xpdf/Link.h \
  369. ++ ../../xpdf/Catalog.h
  370. + Dict.o: ../../xpdf/Dict.cc ../../xpdf/../goo/gmem.h \
  371. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  372. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  373. +- ../../xpdf/Stream.h ../../xpdf/XRef.h
  374. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  375. ++ ../../xpdf/rc4.h ../../xpdf/XRef.h
  376. + Error.o: ../../xpdf/Error.cc ../../xpdf/../goo/gtypes.h \
  377. +  ../../xpdf/Params.h ../../xpdf/Error.h ../../xpdf/config.h
  378. + Gfx.o: ../../xpdf/Gfx.cc ../../xpdf/../goo/gmem.h ../../xpdf/Object.h \
  379. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  380. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  381. +- ../../xpdf/Stream.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  382. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  383. ++ ../../xpdf/rc4.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  384. +  ../../xpdf/GfxFont.h ../../xpdf/GfxState.h ../../xpdf/OutputDev.h \
  385. +- ../../xpdf/Params.h ../../xpdf/Error.h ../../xpdf/config.h \
  386. +- ../../xpdf/Gfx.h
  387. ++ ../../xpdf/Params.h ../../xpdf/Gfx.h
  388. + GfxFont.o: ../../xpdf/GfxFont.cc ../../xpdf/../goo/GString.h \
  389. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/gfile.h \
  390. +  ../../xpdf/../goo/gtypes.h ../../xpdf/config.h ../../xpdf/Object.h \
  391. +  ../../xpdf/mystdio.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  392. +- ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/Params.h \
  393. +- ../../xpdf/GfxFont.h ../../xpdf/FontInfo.h
  394. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/rc4.h \
  395. ++ ../../xpdf/Params.h ../../xpdf/GfxFont.h ../../xpdf/FontInfo.h
  396. + GfxState.o: ../../xpdf/GfxState.cc ../../xpdf/../goo/gmem.h \
  397. +  ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/Object.h \
  398. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  399. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  400. +- ../../xpdf/Stream.h ../../xpdf/GfxState.h
  401. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/GfxState.h
  402. + ImageOutputDev.o: ../../xpdf/ImageOutputDev.cc \
  403. +  ../../xpdf/../goo/gmem.h ../../xpdf/config.h ../../xpdf/Error.h \
  404. +  ../../xpdf/GfxState.h ../../xpdf/../goo/gtypes.h ../../xpdf/Object.h \
  405. +  ../../xpdf/mystdio.h ../../xpdf/../goo/GString.h ../../xpdf/Array.h \
  406. +- ../../xpdf/Dict.h ../../xpdf/Stream.h ../../xpdf/ImageOutputDev.h \
  407. +- ../../xpdf/OutputDev.h
  408. ++ ../../xpdf/Dict.h ../../xpdf/Stream.h ../../xpdf/rc4.h \
  409. ++ ../../xpdf/ImageOutputDev.h ../../xpdf/OutputDev.h
  410. + Lexer.o: ../../xpdf/Lexer.cc ../../xpdf/Lexer.h ../../xpdf/Object.h \
  411. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  412. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  413. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  414. +- ../../xpdf/Error.h ../../xpdf/config.h
  415. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h
  416. + Link.o: ../../xpdf/Link.cc ../../xpdf/../goo/gmem.h \
  417. +  ../../xpdf/../goo/GString.h ../../xpdf/Error.h ../../xpdf/config.h \
  418. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  419. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  420. +- ../../xpdf/Link.h
  421. ++ ../../xpdf/rc4.h ../../xpdf/Link.h
  422. + Object.o: ../../xpdf/Object.cc ../../xpdf/Object.h \
  423. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  424. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  425. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  426. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/XRef.h
  427. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  428. ++ ../../xpdf/XRef.h
  429. + OutputDev.o: ../../xpdf/OutputDev.cc ../../xpdf/Object.h \
  430. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  431. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  432. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  433. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  434. +  ../../xpdf/GfxState.h ../../xpdf/OutputDev.h
  435. + Page.o: ../../xpdf/Page.cc ../../xpdf/Object.h ../../xpdf/mystdio.h \
  436. +  ../../xpdf/../goo/gtypes.h ../../xpdf/../goo/gmem.h \
  437. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  438. +- ../../xpdf/Stream.h ../../xpdf/XRef.h ../../xpdf/OutputDev.h \
  439. +- ../../xpdf/Gfx.h ../../xpdf/Error.h ../../xpdf/config.h \
  440. +- ../../xpdf/Params.h ../../xpdf/Page.h
  441. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  442. ++ ../../xpdf/rc4.h ../../xpdf/XRef.h ../../xpdf/OutputDev.h \
  443. ++ ../../xpdf/Gfx.h ../../xpdf/Params.h ../../xpdf/Page.h
  444. + Parser.o: ../../xpdf/Parser.cc ../../xpdf/Object.h \
  445. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  446. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  447. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  448. +- ../../xpdf/Parser.h ../../xpdf/Lexer.h ../../xpdf/Error.h \
  449. +- ../../xpdf/config.h
  450. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  451. ++ ../../xpdf/Parser.h ../../xpdf/Lexer.h ../../xpdf/md5.h \
  452. ++ ../../xpdf/XRef.h
  453. + PBMOutputDev.o: ../../xpdf/PBMOutputDev.cc ../../xpdf/../goo/gmem.h \
  454. +  ../../xpdf/../goo/GString.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  455. +  ../../xpdf/../goo/gtypes.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  456. +- ../../xpdf/Stream.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  457. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/Params.h \
  458. +- ../../xpdf/PBMOutputDev.h ../../xpdf/XOutputDev.h \
  459. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  460. ++ ../../xpdf/rc4.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  461. ++ ../../xpdf/Params.h ../../xpdf/PBMOutputDev.h ../../xpdf/XOutputDev.h \
  462. +  ../../xpdf/OutputDev.h
  463. + PDFDoc.o: ../../xpdf/PDFDoc.cc ../../xpdf/../goo/GString.h \
  464. +  ../../xpdf/config.h ../../xpdf/Page.h ../../xpdf/Object.h \
  465. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  466. +  ../../xpdf/../goo/gmem.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  467. +- ../../xpdf/Stream.h ../../xpdf/Catalog.h ../../xpdf/XRef.h \
  468. +- ../../xpdf/Link.h ../../xpdf/OutputDev.h ../../xpdf/Params.h \
  469. +- ../../xpdf/Error.h ../../xpdf/PDFDoc.h
  470. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/rc4.h \
  471. ++ ../../xpdf/Catalog.h ../../xpdf/XRef.h ../../xpdf/Link.h \
  472. ++ ../../xpdf/OutputDev.h ../../xpdf/Params.h ../../xpdf/PDFDoc.h
  473. + PSOutputDev.o: ../../xpdf/PSOutputDev.cc ../../xpdf/../goo/GString.h \
  474. +  ../../xpdf/config.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  475. +  ../../xpdf/../goo/gtypes.h ../../xpdf/../goo/gmem.h \
  476. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  477. +- ../../xpdf/Error.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  478. +- ../../xpdf/Catalog.h ../../xpdf/Page.h ../../xpdf/PSOutputDev.h \
  479. +- ../../xpdf/OutputDev.h
  480. ++ ../../xpdf/Error.h ../../xpdf/rc4.h ../../xpdf/GfxState.h \
  481. ++ ../../xpdf/GfxFont.h ../../xpdf/Catalog.h ../../xpdf/Page.h \
  482. ++ ../../xpdf/PSOutputDev.h ../../xpdf/OutputDev.h
  483. + Stream.o: ../../xpdf/Stream.cc ../../xpdf/../goo/gmem.h \
  484. +  ../../xpdf/config.h ../../xpdf/Error.h ../../xpdf/Object.h \
  485. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  486. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  487. +- ../../xpdf/Stream.h ../../xpdf/Stream-CCITT.h
  488. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/Stream-CCITT.h
  489. + TextOutputDev.o: ../../xpdf/TextOutputDev.cc \
  490. +  ../../xpdf/../goo/GString.h ../../xpdf/../goo/gmem.h \
  491. +  ../../xpdf/config.h ../../xpdf/Error.h ../../xpdf/GfxState.h \
  492. +  ../../xpdf/../goo/gtypes.h ../../xpdf/GfxFont.h ../../xpdf/Object.h \
  493. +  ../../xpdf/mystdio.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  494. +- ../../xpdf/Stream.h ../../xpdf/TextOutputDev.h ../../xpdf/OutputDev.h \
  495. +- ../../xpdf/TextOutputFontInfo.h
  496. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/TextOutputDev.h \
  497. ++ ../../xpdf/OutputDev.h ../../xpdf/TextOutputFontInfo.h
  498. + XRef.o: ../../xpdf/XRef.cc ../../xpdf/../goo/gmem.h \
  499. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  500. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  501. +- ../../xpdf/Stream.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  502. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/XRef.h
  503. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  504. ++ ../../xpdf/rc4.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  505. ++ ../../xpdf/XRef.h ../../xpdf/md5.h
  506. + Apdf.o: ../../xpdf/Apdf.c ../../xpdf/config.h ../../xpdf/AComm.h
  507. + Apdfcommon.o: ../../xpdf/Apdfcommon.cc ../../xpdf/../goo/parseargs.h \
  508. +  ../../xpdf/../goo/gtypes.h ../../xpdf/../goo/GString.h \
  509. +  ../../xpdf/../goo/gmem.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  510. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  511. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  512. +  ../../xpdf/XRef.h ../../xpdf/Catalog.h ../../xpdf/Page.h \
  513. +  ../../xpdf/Link.h ../../xpdf/PDFDoc.h ../../xpdf/AOutputDev.h \
  514. +- ../../xpdf/config.h ../../xpdf/OutputDev.h ../../xpdf/AGfx.h \
  515. +- ../../xpdf/poly.h ../../xpdf/TextOutputDev.h ../../xpdf/PSOutputDev.h \
  516. ++ ../../xpdf/OutputDev.h ../../xpdf/AGfx.h ../../xpdf/poly.h \
  517. ++ ../../xpdf/TextOutputDev.h ../../xpdf/PSOutputDev.h \
  518. +  ../../xpdf/ImageOutputDev.h ../../xpdf/FontOutputDev.h \
  519. +- ../../xpdf/GfxFont.h ../../xpdf/Error.h ../../xpdf/AComm.h
  520. ++ ../../xpdf/GfxFont.h ../../xpdf/AComm.h
  521. + AOutputDev.o: ../../xpdf/AOutputDev.cc ../../xpdf/../goo/gmem.h \
  522. +  ../../xpdf/../goo/GString.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  523. +  ../../xpdf/../goo/gtypes.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  524. +- ../../xpdf/Stream.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  525. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/TextOutputDev.h \
  526. +- ../../xpdf/OutputDev.h ../../xpdf/AOutputDev.h ../../xpdf/AGfx.h \
  527. +- ../../xpdf/poly.h ../../xpdf/FontOutputDev.h
  528. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  529. ++ ../../xpdf/rc4.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  530. ++ ../../xpdf/TextOutputDev.h ../../xpdf/OutputDev.h \
  531. ++ ../../xpdf/AOutputDev.h ../../xpdf/AGfx.h ../../xpdf/poly.h \
  532. ++ ../../xpdf/FontOutputDev.h
  533. + FontOutputDev.o: ../../xpdf/FontOutputDev.cc \
  534. +  ../../xpdf/../goo/GString.h ../../xpdf/../goo/gmem.h \
  535. +  ../../xpdf/config.h ../../xpdf/Error.h ../../xpdf/GfxState.h \
  536. +  ../../xpdf/../goo/gtypes.h ../../xpdf/GfxFont.h ../../xpdf/Object.h \
  537. +  ../../xpdf/mystdio.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  538. +- ../../xpdf/Stream.h ../../xpdf/FontOutputDev.h ../../xpdf/OutputDev.h \
  539. +- ../../xpdf/XOutputFontInfo.h
  540. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/FontOutputDev.h \
  541. ++ ../../xpdf/OutputDev.h ../../xpdf/XOutputFontInfo.h
  542. + AGfx.o: ../../xpdf/AGfx.cc ../../xpdf/../goo/gmem.h ../../xpdf/AGfx.h \
  543. +  ../../xpdf/poly.h
  544. + poly.o: ../../xpdf/poly.cc ../../xpdf/poly.h
  545. ++md5.o: ../../xpdf/md5.cc ../../xpdf/md5.h ../../xpdf/Error.h \
  546. ++ ../../xpdf/config.h
  547. ++rc4.o: ../../xpdf/rc4.cc ../../xpdf/rc4.h
  548. +diff -u -b -B -r -N -w xpdf-0.80/build060/xpdf/Makefile xpdf-0.80-decrypt/build060/xpdf/Makefile
  549. +--- xpdf-0.80/build060/xpdf/Makefile    Thu Jun 24 18:18:12 1999
  550. ++++ xpdf-0.80-decrypt/build060/xpdf/Makefile    Wed Jul  7 21:07:00 1999
  551. +@@ -59,7 +59,10 @@
  552. +    $(srcdir)/AOutputDev.cc \
  553. +    $(srcdir)/FontOutputDev.cc \
  554. +    $(srcdir)/AGfx.cc \
  555. +-       $(srcdir)/poly.cc
  556. ++       $(srcdir)/poly.cc \
  557. ++       $(srcdir)/md5.cc \
  558. ++       $(srcdir)/rc4.cc
  559. ++
  560. + #------------------------------------------------------------------------
  561. +@@ -73,7 +76,8 @@
  562. +    TextOutputDev.o AOutputDev.o XRef.o AGfx.o \
  563. +    GfxState.o Lexer.o Link.o Object.o OutputDev.o mystdio.o \
  564. +    Page.o Parser.o PDFDoc.o PSOutputDev.o Stream.o \
  565. +-       Apdfcommon.o Apdf.o ImageOutputDev.o poly.o FontOutputDev.o
  566. ++       Apdfcommon.o Apdf.o ImageOutputDev.o poly.o FontOutputDev.o \
  567. ++       md5.o rc4.o
  568. + APDF_LIBS = -L$(GOOLIBDIR) -lGoo $(OTHERLIBS) -lm
  569. + Apdf: $(APDF_OBJS)
  570. +@@ -96,137 +100,149 @@
  571. + Array.o: ../../xpdf/Array.cc ../../xpdf/../goo/gmem.h \
  572. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  573. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  574. +- ../../xpdf/Stream.h
  575. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  576. ++ ../../xpdf/rc4.h
  577. + Catalog.o: ../../xpdf/Catalog.cc ../../xpdf/../goo/gmem.h \
  578. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  579. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  580. +- ../../xpdf/Stream.h ../../xpdf/Page.h ../../xpdf/Error.h \
  581. +- ../../xpdf/config.h ../../xpdf/Link.h ../../xpdf/Catalog.h
  582. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  583. ++ ../../xpdf/rc4.h ../../xpdf/Page.h ../../xpdf/Link.h \
  584. ++ ../../xpdf/Catalog.h
  585. + Dict.o: ../../xpdf/Dict.cc ../../xpdf/../goo/gmem.h \
  586. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  587. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  588. +- ../../xpdf/Stream.h ../../xpdf/XRef.h
  589. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  590. ++ ../../xpdf/rc4.h ../../xpdf/XRef.h
  591. + Error.o: ../../xpdf/Error.cc ../../xpdf/../goo/gtypes.h \
  592. +  ../../xpdf/Params.h ../../xpdf/Error.h ../../xpdf/config.h
  593. + Gfx.o: ../../xpdf/Gfx.cc ../../xpdf/../goo/gmem.h ../../xpdf/Object.h \
  594. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  595. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  596. +- ../../xpdf/Stream.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  597. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  598. ++ ../../xpdf/rc4.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  599. +  ../../xpdf/GfxFont.h ../../xpdf/GfxState.h ../../xpdf/OutputDev.h \
  600. +- ../../xpdf/Params.h ../../xpdf/Error.h ../../xpdf/config.h \
  601. +- ../../xpdf/Gfx.h
  602. ++ ../../xpdf/Params.h ../../xpdf/Gfx.h
  603. + GfxFont.o: ../../xpdf/GfxFont.cc ../../xpdf/../goo/GString.h \
  604. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/gfile.h \
  605. +  ../../xpdf/../goo/gtypes.h ../../xpdf/config.h ../../xpdf/Object.h \
  606. +  ../../xpdf/mystdio.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  607. +- ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/Params.h \
  608. +- ../../xpdf/GfxFont.h ../../xpdf/FontInfo.h
  609. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/rc4.h \
  610. ++ ../../xpdf/Params.h ../../xpdf/GfxFont.h ../../xpdf/FontInfo.h
  611. + GfxState.o: ../../xpdf/GfxState.cc ../../xpdf/../goo/gmem.h \
  612. +  ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/Object.h \
  613. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  614. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  615. +- ../../xpdf/Stream.h ../../xpdf/GfxState.h
  616. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/GfxState.h
  617. + ImageOutputDev.o: ../../xpdf/ImageOutputDev.cc \
  618. +  ../../xpdf/../goo/gmem.h ../../xpdf/config.h ../../xpdf/Error.h \
  619. +  ../../xpdf/GfxState.h ../../xpdf/../goo/gtypes.h ../../xpdf/Object.h \
  620. +  ../../xpdf/mystdio.h ../../xpdf/../goo/GString.h ../../xpdf/Array.h \
  621. +- ../../xpdf/Dict.h ../../xpdf/Stream.h ../../xpdf/ImageOutputDev.h \
  622. +- ../../xpdf/OutputDev.h
  623. ++ ../../xpdf/Dict.h ../../xpdf/Stream.h ../../xpdf/rc4.h \
  624. ++ ../../xpdf/ImageOutputDev.h ../../xpdf/OutputDev.h
  625. + Lexer.o: ../../xpdf/Lexer.cc ../../xpdf/Lexer.h ../../xpdf/Object.h \
  626. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  627. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  628. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  629. +- ../../xpdf/Error.h ../../xpdf/config.h
  630. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h
  631. + Link.o: ../../xpdf/Link.cc ../../xpdf/../goo/gmem.h \
  632. +  ../../xpdf/../goo/GString.h ../../xpdf/Error.h ../../xpdf/config.h \
  633. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  634. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  635. +- ../../xpdf/Link.h
  636. ++ ../../xpdf/rc4.h ../../xpdf/Link.h
  637. + Object.o: ../../xpdf/Object.cc ../../xpdf/Object.h \
  638. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  639. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  640. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  641. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/XRef.h
  642. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  643. ++ ../../xpdf/XRef.h
  644. + OutputDev.o: ../../xpdf/OutputDev.cc ../../xpdf/Object.h \
  645. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  646. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  647. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  648. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  649. +  ../../xpdf/GfxState.h ../../xpdf/OutputDev.h
  650. + Page.o: ../../xpdf/Page.cc ../../xpdf/Object.h ../../xpdf/mystdio.h \
  651. +  ../../xpdf/../goo/gtypes.h ../../xpdf/../goo/gmem.h \
  652. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  653. +- ../../xpdf/Stream.h ../../xpdf/XRef.h ../../xpdf/OutputDev.h \
  654. +- ../../xpdf/Gfx.h ../../xpdf/Error.h ../../xpdf/config.h \
  655. +- ../../xpdf/Params.h ../../xpdf/Page.h
  656. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  657. ++ ../../xpdf/rc4.h ../../xpdf/XRef.h ../../xpdf/OutputDev.h \
  658. ++ ../../xpdf/Gfx.h ../../xpdf/Params.h ../../xpdf/Page.h
  659. + Parser.o: ../../xpdf/Parser.cc ../../xpdf/Object.h \
  660. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  661. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  662. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  663. +- ../../xpdf/Parser.h ../../xpdf/Lexer.h ../../xpdf/Error.h \
  664. +- ../../xpdf/config.h
  665. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  666. ++ ../../xpdf/Parser.h ../../xpdf/Lexer.h ../../xpdf/md5.h \
  667. ++ ../../xpdf/XRef.h
  668. + PBMOutputDev.o: ../../xpdf/PBMOutputDev.cc ../../xpdf/../goo/gmem.h \
  669. +  ../../xpdf/../goo/GString.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  670. +  ../../xpdf/../goo/gtypes.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  671. +- ../../xpdf/Stream.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  672. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/Params.h \
  673. +- ../../xpdf/PBMOutputDev.h ../../xpdf/XOutputDev.h \
  674. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  675. ++ ../../xpdf/rc4.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  676. ++ ../../xpdf/Params.h ../../xpdf/PBMOutputDev.h ../../xpdf/XOutputDev.h \
  677. +  ../../xpdf/OutputDev.h
  678. + PDFDoc.o: ../../xpdf/PDFDoc.cc ../../xpdf/../goo/GString.h \
  679. +  ../../xpdf/config.h ../../xpdf/Page.h ../../xpdf/Object.h \
  680. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  681. +  ../../xpdf/../goo/gmem.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  682. +- ../../xpdf/Stream.h ../../xpdf/Catalog.h ../../xpdf/XRef.h \
  683. +- ../../xpdf/Link.h ../../xpdf/OutputDev.h ../../xpdf/Params.h \
  684. +- ../../xpdf/Error.h ../../xpdf/PDFDoc.h
  685. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/rc4.h \
  686. ++ ../../xpdf/Catalog.h ../../xpdf/XRef.h ../../xpdf/Link.h \
  687. ++ ../../xpdf/OutputDev.h ../../xpdf/Params.h ../../xpdf/PDFDoc.h
  688. + PSOutputDev.o: ../../xpdf/PSOutputDev.cc ../../xpdf/../goo/GString.h \
  689. +  ../../xpdf/config.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  690. +  ../../xpdf/../goo/gtypes.h ../../xpdf/../goo/gmem.h \
  691. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  692. +- ../../xpdf/Error.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  693. +- ../../xpdf/Catalog.h ../../xpdf/Page.h ../../xpdf/PSOutputDev.h \
  694. +- ../../xpdf/OutputDev.h
  695. ++ ../../xpdf/Error.h ../../xpdf/rc4.h ../../xpdf/GfxState.h \
  696. ++ ../../xpdf/GfxFont.h ../../xpdf/Catalog.h ../../xpdf/Page.h \
  697. ++ ../../xpdf/PSOutputDev.h ../../xpdf/OutputDev.h
  698. + Stream.o: ../../xpdf/Stream.cc ../../xpdf/../goo/gmem.h \
  699. +  ../../xpdf/config.h ../../xpdf/Error.h ../../xpdf/Object.h \
  700. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  701. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  702. +- ../../xpdf/Stream.h ../../xpdf/Stream-CCITT.h
  703. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/Stream-CCITT.h
  704. + TextOutputDev.o: ../../xpdf/TextOutputDev.cc \
  705. +  ../../xpdf/../goo/GString.h ../../xpdf/../goo/gmem.h \
  706. +  ../../xpdf/config.h ../../xpdf/Error.h ../../xpdf/GfxState.h \
  707. +  ../../xpdf/../goo/gtypes.h ../../xpdf/GfxFont.h ../../xpdf/Object.h \
  708. +  ../../xpdf/mystdio.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  709. +- ../../xpdf/Stream.h ../../xpdf/TextOutputDev.h ../../xpdf/OutputDev.h \
  710. +- ../../xpdf/TextOutputFontInfo.h
  711. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/TextOutputDev.h \
  712. ++ ../../xpdf/OutputDev.h ../../xpdf/TextOutputFontInfo.h
  713. + XRef.o: ../../xpdf/XRef.cc ../../xpdf/../goo/gmem.h \
  714. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  715. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  716. +- ../../xpdf/Stream.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  717. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/XRef.h
  718. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  719. ++ ../../xpdf/rc4.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  720. ++ ../../xpdf/XRef.h ../../xpdf/md5.h
  721. + Apdf.o: ../../xpdf/Apdf.c ../../xpdf/config.h ../../xpdf/AComm.h
  722. + Apdfcommon.o: ../../xpdf/Apdfcommon.cc ../../xpdf/../goo/parseargs.h \
  723. +  ../../xpdf/../goo/gtypes.h ../../xpdf/../goo/GString.h \
  724. +  ../../xpdf/../goo/gmem.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  725. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  726. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  727. +  ../../xpdf/XRef.h ../../xpdf/Catalog.h ../../xpdf/Page.h \
  728. +  ../../xpdf/Link.h ../../xpdf/PDFDoc.h ../../xpdf/AOutputDev.h \
  729. +- ../../xpdf/config.h ../../xpdf/OutputDev.h ../../xpdf/AGfx.h \
  730. +- ../../xpdf/poly.h ../../xpdf/TextOutputDev.h ../../xpdf/PSOutputDev.h \
  731. ++ ../../xpdf/OutputDev.h ../../xpdf/AGfx.h ../../xpdf/poly.h \
  732. ++ ../../xpdf/TextOutputDev.h ../../xpdf/PSOutputDev.h \
  733. +  ../../xpdf/ImageOutputDev.h ../../xpdf/FontOutputDev.h \
  734. +- ../../xpdf/GfxFont.h ../../xpdf/Error.h ../../xpdf/AComm.h
  735. ++ ../../xpdf/GfxFont.h ../../xpdf/AComm.h
  736. + AOutputDev.o: ../../xpdf/AOutputDev.cc ../../xpdf/../goo/gmem.h \
  737. +  ../../xpdf/../goo/GString.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  738. +  ../../xpdf/../goo/gtypes.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  739. +- ../../xpdf/Stream.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  740. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/TextOutputDev.h \
  741. +- ../../xpdf/OutputDev.h ../../xpdf/AOutputDev.h ../../xpdf/AGfx.h \
  742. +- ../../xpdf/poly.h ../../xpdf/FontOutputDev.h
  743. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  744. ++ ../../xpdf/rc4.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  745. ++ ../../xpdf/TextOutputDev.h ../../xpdf/OutputDev.h \
  746. ++ ../../xpdf/AOutputDev.h ../../xpdf/AGfx.h ../../xpdf/poly.h \
  747. ++ ../../xpdf/FontOutputDev.h
  748. + FontOutputDev.o: ../../xpdf/FontOutputDev.cc \
  749. +  ../../xpdf/../goo/GString.h ../../xpdf/../goo/gmem.h \
  750. +  ../../xpdf/config.h ../../xpdf/Error.h ../../xpdf/GfxState.h \
  751. +  ../../xpdf/../goo/gtypes.h ../../xpdf/GfxFont.h ../../xpdf/Object.h \
  752. +  ../../xpdf/mystdio.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  753. +- ../../xpdf/Stream.h ../../xpdf/FontOutputDev.h ../../xpdf/OutputDev.h \
  754. +- ../../xpdf/XOutputFontInfo.h
  755. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/FontOutputDev.h \
  756. ++ ../../xpdf/OutputDev.h ../../xpdf/XOutputFontInfo.h
  757. + AGfx.o: ../../xpdf/AGfx.cc ../../xpdf/../goo/gmem.h ../../xpdf/AGfx.h \
  758. +  ../../xpdf/poly.h
  759. + poly.o: ../../xpdf/poly.cc ../../xpdf/poly.h
  760. ++md5.o: ../../xpdf/md5.cc ../../xpdf/md5.h ../../xpdf/Error.h \
  761. ++ ../../xpdf/config.h
  762. ++rc4.o: ../../xpdf/rc4.cc ../../xpdf/rc4.h
  763. +diff -u -b -B -r -N -w xpdf-0.80/buildnofpu/xpdf/Makefile xpdf-0.80-decrypt/buildnofpu/xpdf/Makefile
  764. +--- xpdf-0.80/buildnofpu/xpdf/Makefile  Thu Jun 24 18:19:20 1999
  765. ++++ xpdf-0.80-decrypt/buildnofpu/xpdf/Makefile  Wed Jul  7 21:07:01 1999
  766. +@@ -59,7 +59,10 @@
  767. +    $(srcdir)/AOutputDev.cc \
  768. +    $(srcdir)/FontOutputDev.cc \
  769. +    $(srcdir)/AGfx.cc \
  770. +-       $(srcdir)/poly.cc
  771. ++       $(srcdir)/poly.cc \
  772. ++       $(srcdir)/md5.cc \
  773. ++       $(srcdir)/rc4.cc
  774. ++
  775. + #------------------------------------------------------------------------
  776. +@@ -73,7 +76,8 @@
  777. +    TextOutputDev.o AOutputDev.o XRef.o AGfx.o \
  778. +    GfxState.o Lexer.o Link.o Object.o OutputDev.o mystdio.o \
  779. +    Page.o Parser.o PDFDoc.o PSOutputDev.o Stream.o \
  780. +-       Apdfcommon.o Apdf.o ImageOutputDev.o poly.o FontOutputDev.o
  781. ++       Apdfcommon.o Apdf.o ImageOutputDev.o poly.o FontOutputDev.o \
  782. ++       md5.o rc4.o
  783. + APDF_LIBS = -L$(GOOLIBDIR) -lGoo $(OTHERLIBS) -lm
  784. + Apdf: $(APDF_OBJS)
  785. +@@ -96,137 +100,149 @@
  786. + Array.o: ../../xpdf/Array.cc ../../xpdf/../goo/gmem.h \
  787. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  788. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  789. +- ../../xpdf/Stream.h
  790. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  791. ++ ../../xpdf/rc4.h
  792. + Catalog.o: ../../xpdf/Catalog.cc ../../xpdf/../goo/gmem.h \
  793. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  794. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  795. +- ../../xpdf/Stream.h ../../xpdf/Page.h ../../xpdf/Error.h \
  796. +- ../../xpdf/config.h ../../xpdf/Link.h ../../xpdf/Catalog.h
  797. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  798. ++ ../../xpdf/rc4.h ../../xpdf/Page.h ../../xpdf/Link.h \
  799. ++ ../../xpdf/Catalog.h
  800. + Dict.o: ../../xpdf/Dict.cc ../../xpdf/../goo/gmem.h \
  801. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  802. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  803. +- ../../xpdf/Stream.h ../../xpdf/XRef.h
  804. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  805. ++ ../../xpdf/rc4.h ../../xpdf/XRef.h
  806. + Error.o: ../../xpdf/Error.cc ../../xpdf/../goo/gtypes.h \
  807. +  ../../xpdf/Params.h ../../xpdf/Error.h ../../xpdf/config.h
  808. + Gfx.o: ../../xpdf/Gfx.cc ../../xpdf/../goo/gmem.h ../../xpdf/Object.h \
  809. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  810. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  811. +- ../../xpdf/Stream.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  812. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  813. ++ ../../xpdf/rc4.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  814. +  ../../xpdf/GfxFont.h ../../xpdf/GfxState.h ../../xpdf/OutputDev.h \
  815. +- ../../xpdf/Params.h ../../xpdf/Error.h ../../xpdf/config.h \
  816. +- ../../xpdf/Gfx.h
  817. ++ ../../xpdf/Params.h ../../xpdf/Gfx.h
  818. + GfxFont.o: ../../xpdf/GfxFont.cc ../../xpdf/../goo/GString.h \
  819. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/gfile.h \
  820. +  ../../xpdf/../goo/gtypes.h ../../xpdf/config.h ../../xpdf/Object.h \
  821. +  ../../xpdf/mystdio.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  822. +- ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/Params.h \
  823. +- ../../xpdf/GfxFont.h ../../xpdf/FontInfo.h
  824. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/rc4.h \
  825. ++ ../../xpdf/Params.h ../../xpdf/GfxFont.h ../../xpdf/FontInfo.h
  826. + GfxState.o: ../../xpdf/GfxState.cc ../../xpdf/../goo/gmem.h \
  827. +  ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/Object.h \
  828. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  829. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  830. +- ../../xpdf/Stream.h ../../xpdf/GfxState.h
  831. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/GfxState.h
  832. + ImageOutputDev.o: ../../xpdf/ImageOutputDev.cc \
  833. +  ../../xpdf/../goo/gmem.h ../../xpdf/config.h ../../xpdf/Error.h \
  834. +  ../../xpdf/GfxState.h ../../xpdf/../goo/gtypes.h ../../xpdf/Object.h \
  835. +  ../../xpdf/mystdio.h ../../xpdf/../goo/GString.h ../../xpdf/Array.h \
  836. +- ../../xpdf/Dict.h ../../xpdf/Stream.h ../../xpdf/ImageOutputDev.h \
  837. +- ../../xpdf/OutputDev.h
  838. ++ ../../xpdf/Dict.h ../../xpdf/Stream.h ../../xpdf/rc4.h \
  839. ++ ../../xpdf/ImageOutputDev.h ../../xpdf/OutputDev.h
  840. + Lexer.o: ../../xpdf/Lexer.cc ../../xpdf/Lexer.h ../../xpdf/Object.h \
  841. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  842. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  843. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  844. +- ../../xpdf/Error.h ../../xpdf/config.h
  845. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h
  846. + Link.o: ../../xpdf/Link.cc ../../xpdf/../goo/gmem.h \
  847. +  ../../xpdf/../goo/GString.h ../../xpdf/Error.h ../../xpdf/config.h \
  848. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  849. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  850. +- ../../xpdf/Link.h
  851. ++ ../../xpdf/rc4.h ../../xpdf/Link.h
  852. + Object.o: ../../xpdf/Object.cc ../../xpdf/Object.h \
  853. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  854. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  855. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  856. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/XRef.h
  857. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  858. ++ ../../xpdf/XRef.h
  859. + OutputDev.o: ../../xpdf/OutputDev.cc ../../xpdf/Object.h \
  860. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  861. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  862. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  863. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  864. +  ../../xpdf/GfxState.h ../../xpdf/OutputDev.h
  865. + Page.o: ../../xpdf/Page.cc ../../xpdf/Object.h ../../xpdf/mystdio.h \
  866. +  ../../xpdf/../goo/gtypes.h ../../xpdf/../goo/gmem.h \
  867. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  868. +- ../../xpdf/Stream.h ../../xpdf/XRef.h ../../xpdf/OutputDev.h \
  869. +- ../../xpdf/Gfx.h ../../xpdf/Error.h ../../xpdf/config.h \
  870. +- ../../xpdf/Params.h ../../xpdf/Page.h
  871. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  872. ++ ../../xpdf/rc4.h ../../xpdf/XRef.h ../../xpdf/OutputDev.h \
  873. ++ ../../xpdf/Gfx.h ../../xpdf/Params.h ../../xpdf/Page.h
  874. + Parser.o: ../../xpdf/Parser.cc ../../xpdf/Object.h \
  875. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  876. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  877. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  878. +- ../../xpdf/Parser.h ../../xpdf/Lexer.h ../../xpdf/Error.h \
  879. +- ../../xpdf/config.h
  880. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  881. ++ ../../xpdf/Parser.h ../../xpdf/Lexer.h ../../xpdf/md5.h \
  882. ++ ../../xpdf/XRef.h
  883. + PBMOutputDev.o: ../../xpdf/PBMOutputDev.cc ../../xpdf/../goo/gmem.h \
  884. +  ../../xpdf/../goo/GString.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  885. +  ../../xpdf/../goo/gtypes.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  886. +- ../../xpdf/Stream.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  887. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/Params.h \
  888. +- ../../xpdf/PBMOutputDev.h ../../xpdf/XOutputDev.h \
  889. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  890. ++ ../../xpdf/rc4.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  891. ++ ../../xpdf/Params.h ../../xpdf/PBMOutputDev.h ../../xpdf/XOutputDev.h \
  892. +  ../../xpdf/OutputDev.h
  893. + PDFDoc.o: ../../xpdf/PDFDoc.cc ../../xpdf/../goo/GString.h \
  894. +  ../../xpdf/config.h ../../xpdf/Page.h ../../xpdf/Object.h \
  895. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  896. +  ../../xpdf/../goo/gmem.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  897. +- ../../xpdf/Stream.h ../../xpdf/Catalog.h ../../xpdf/XRef.h \
  898. +- ../../xpdf/Link.h ../../xpdf/OutputDev.h ../../xpdf/Params.h \
  899. +- ../../xpdf/Error.h ../../xpdf/PDFDoc.h
  900. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/rc4.h \
  901. ++ ../../xpdf/Catalog.h ../../xpdf/XRef.h ../../xpdf/Link.h \
  902. ++ ../../xpdf/OutputDev.h ../../xpdf/Params.h ../../xpdf/PDFDoc.h
  903. + PSOutputDev.o: ../../xpdf/PSOutputDev.cc ../../xpdf/../goo/GString.h \
  904. +  ../../xpdf/config.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  905. +  ../../xpdf/../goo/gtypes.h ../../xpdf/../goo/gmem.h \
  906. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  907. +- ../../xpdf/Error.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  908. +- ../../xpdf/Catalog.h ../../xpdf/Page.h ../../xpdf/PSOutputDev.h \
  909. +- ../../xpdf/OutputDev.h
  910. ++ ../../xpdf/Error.h ../../xpdf/rc4.h ../../xpdf/GfxState.h \
  911. ++ ../../xpdf/GfxFont.h ../../xpdf/Catalog.h ../../xpdf/Page.h \
  912. ++ ../../xpdf/PSOutputDev.h ../../xpdf/OutputDev.h
  913. + Stream.o: ../../xpdf/Stream.cc ../../xpdf/../goo/gmem.h \
  914. +  ../../xpdf/config.h ../../xpdf/Error.h ../../xpdf/Object.h \
  915. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  916. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  917. +- ../../xpdf/Stream.h ../../xpdf/Stream-CCITT.h
  918. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/Stream-CCITT.h
  919. + TextOutputDev.o: ../../xpdf/TextOutputDev.cc \
  920. +  ../../xpdf/../goo/GString.h ../../xpdf/../goo/gmem.h \
  921. +  ../../xpdf/config.h ../../xpdf/Error.h ../../xpdf/GfxState.h \
  922. +  ../../xpdf/../goo/gtypes.h ../../xpdf/GfxFont.h ../../xpdf/Object.h \
  923. +  ../../xpdf/mystdio.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  924. +- ../../xpdf/Stream.h ../../xpdf/TextOutputDev.h ../../xpdf/OutputDev.h \
  925. +- ../../xpdf/TextOutputFontInfo.h
  926. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/TextOutputDev.h \
  927. ++ ../../xpdf/OutputDev.h ../../xpdf/TextOutputFontInfo.h
  928. + XRef.o: ../../xpdf/XRef.cc ../../xpdf/../goo/gmem.h \
  929. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  930. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  931. +- ../../xpdf/Stream.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  932. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/XRef.h
  933. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  934. ++ ../../xpdf/rc4.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  935. ++ ../../xpdf/XRef.h ../../xpdf/md5.h
  936. + Apdf.o: ../../xpdf/Apdf.c ../../xpdf/config.h ../../xpdf/AComm.h
  937. + Apdfcommon.o: ../../xpdf/Apdfcommon.cc ../../xpdf/../goo/parseargs.h \
  938. +  ../../xpdf/../goo/gtypes.h ../../xpdf/../goo/GString.h \
  939. +  ../../xpdf/../goo/gmem.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  940. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  941. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  942. +  ../../xpdf/XRef.h ../../xpdf/Catalog.h ../../xpdf/Page.h \
  943. +  ../../xpdf/Link.h ../../xpdf/PDFDoc.h ../../xpdf/AOutputDev.h \
  944. +- ../../xpdf/config.h ../../xpdf/OutputDev.h ../../xpdf/AGfx.h \
  945. +- ../../xpdf/poly.h ../../xpdf/TextOutputDev.h ../../xpdf/PSOutputDev.h \
  946. ++ ../../xpdf/OutputDev.h ../../xpdf/AGfx.h ../../xpdf/poly.h \
  947. ++ ../../xpdf/TextOutputDev.h ../../xpdf/PSOutputDev.h \
  948. +  ../../xpdf/ImageOutputDev.h ../../xpdf/FontOutputDev.h \
  949. +- ../../xpdf/GfxFont.h ../../xpdf/Error.h ../../xpdf/AComm.h
  950. ++ ../../xpdf/GfxFont.h ../../xpdf/AComm.h
  951. + AOutputDev.o: ../../xpdf/AOutputDev.cc ../../xpdf/../goo/gmem.h \
  952. +  ../../xpdf/../goo/GString.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  953. +  ../../xpdf/../goo/gtypes.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  954. +- ../../xpdf/Stream.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  955. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/TextOutputDev.h \
  956. +- ../../xpdf/OutputDev.h ../../xpdf/AOutputDev.h ../../xpdf/AGfx.h \
  957. +- ../../xpdf/poly.h ../../xpdf/FontOutputDev.h
  958. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  959. ++ ../../xpdf/rc4.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  960. ++ ../../xpdf/TextOutputDev.h ../../xpdf/OutputDev.h \
  961. ++ ../../xpdf/AOutputDev.h ../../xpdf/AGfx.h ../../xpdf/poly.h \
  962. ++ ../../xpdf/FontOutputDev.h
  963. + FontOutputDev.o: ../../xpdf/FontOutputDev.cc \
  964. +  ../../xpdf/../goo/GString.h ../../xpdf/../goo/gmem.h \
  965. +  ../../xpdf/config.h ../../xpdf/Error.h ../../xpdf/GfxState.h \
  966. +  ../../xpdf/../goo/gtypes.h ../../xpdf/GfxFont.h ../../xpdf/Object.h \
  967. +  ../../xpdf/mystdio.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  968. +- ../../xpdf/Stream.h ../../xpdf/FontOutputDev.h ../../xpdf/OutputDev.h \
  969. +- ../../xpdf/XOutputFontInfo.h
  970. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/FontOutputDev.h \
  971. ++ ../../xpdf/OutputDev.h ../../xpdf/XOutputFontInfo.h
  972. + AGfx.o: ../../xpdf/AGfx.cc ../../xpdf/../goo/gmem.h ../../xpdf/AGfx.h \
  973. +  ../../xpdf/poly.h
  974. + poly.o: ../../xpdf/poly.cc ../../xpdf/poly.h
  975. ++md5.o: ../../xpdf/md5.cc ../../xpdf/md5.h ../../xpdf/Error.h \
  976. ++ ../../xpdf/config.h
  977. ++rc4.o: ../../xpdf/rc4.cc ../../xpdf/rc4.h
  978. +diff -u -b -B -r -N -w xpdf-0.80/buildppc/xpdf/Makefile xpdf-0.80-decrypt/buildppc/xpdf/Makefile
  979. +--- xpdf-0.80/buildppc/xpdf/Makefile    Fri Jul  2 21:55:27 1999
  980. ++++ xpdf-0.80-decrypt/buildppc/xpdf/Makefile    Wed Jul  7 21:07:01 1999
  981. +@@ -68,7 +68,10 @@
  982. +    $(srcdir)/FontOutputDev.cc \
  983. +    $(srcdir)/AGfx.cc \
  984. +    $(srcdir)/stub.cc \
  985. +-       $(srcdir)/poly.cc
  986. ++       $(srcdir)/poly.cc \
  987. ++       $(srcdir)/md5.cc \
  988. ++       $(srcdir)/rc4.cc
  989. ++
  990. + #------------------------------------------------------------------------
  991. +@@ -87,7 +90,8 @@
  992. +    TextOutputDev.o AOutputDev.o XRef.o apdfppcserv.o AGfx.o \
  993. +    GfxState.o Lexer.o Link.o Object.o OutputDev.o mystdio.o \
  994. +    Page.o Parser.o PDFDoc.o PSOutputDev.o Stream.o \
  995. +-       apdfcommon.o ImageOutputDev.o poly.o FontOutputDev.o
  996. ++       apdfcommon.o ImageOutputDev.o poly.o FontOutputDev.o \
  997. ++       md5.o rc4.o
  998. + APDF_LIBS = -L$(GOOLIBDIR) -lGoo $(XLIBS) $(OTHERLIBS) -lm
  999. + Apdf.elf: $(APDF_OBJS)
  1000. +@@ -114,112 +118,119 @@
  1001. + Array.o: ../../xpdf/Array.cc ../../xpdf/../goo/gmem.h \
  1002. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  1003. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  1004. +- ../../xpdf/Stream.h
  1005. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  1006. ++ ../../xpdf/rc4.h
  1007. + Catalog.o: ../../xpdf/Catalog.cc ../../xpdf/../goo/gmem.h \
  1008. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  1009. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  1010. +- ../../xpdf/Stream.h ../../xpdf/Page.h ../../xpdf/Error.h \
  1011. +- ../../xpdf/config.h ../../xpdf/Link.h ../../xpdf/Catalog.h
  1012. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  1013. ++ ../../xpdf/rc4.h ../../xpdf/Page.h ../../xpdf/Link.h \
  1014. ++ ../../xpdf/Catalog.h
  1015. + Dict.o: ../../xpdf/Dict.cc ../../xpdf/../goo/gmem.h \
  1016. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  1017. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  1018. +- ../../xpdf/Stream.h ../../xpdf/XRef.h
  1019. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  1020. ++ ../../xpdf/rc4.h ../../xpdf/XRef.h
  1021. + Error.o: ../../xpdf/Error.cc ../../xpdf/../goo/gtypes.h \
  1022. +  ../../xpdf/Params.h ../../xpdf/Error.h ../../xpdf/config.h
  1023. + Gfx.o: ../../xpdf/Gfx.cc ../../xpdf/../goo/gmem.h ../../xpdf/Object.h \
  1024. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  1025. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  1026. +- ../../xpdf/Stream.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  1027. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  1028. ++ ../../xpdf/rc4.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  1029. +  ../../xpdf/GfxFont.h ../../xpdf/GfxState.h ../../xpdf/OutputDev.h \
  1030. +- ../../xpdf/Params.h ../../xpdf/Error.h ../../xpdf/config.h \
  1031. +- ../../xpdf/Gfx.h
  1032. ++ ../../xpdf/Params.h ../../xpdf/Gfx.h
  1033. + GfxFont.o: ../../xpdf/GfxFont.cc ../../xpdf/../goo/GString.h \
  1034. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/gfile.h \
  1035. +  ../../xpdf/../goo/gtypes.h ../../xpdf/config.h ../../xpdf/Object.h \
  1036. +  ../../xpdf/mystdio.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  1037. +- ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/Params.h \
  1038. +- ../../xpdf/GfxFont.h ../../xpdf/FontInfo.h
  1039. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/rc4.h \
  1040. ++ ../../xpdf/Params.h ../../xpdf/GfxFont.h ../../xpdf/FontInfo.h
  1041. + GfxState.o: ../../xpdf/GfxState.cc ../../xpdf/../goo/gmem.h \
  1042. +  ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/Object.h \
  1043. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  1044. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  1045. +- ../../xpdf/Stream.h ../../xpdf/GfxState.h
  1046. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/GfxState.h
  1047. + ImageOutputDev.o: ../../xpdf/ImageOutputDev.cc \
  1048. +  ../../xpdf/../goo/gmem.h ../../xpdf/config.h ../../xpdf/Error.h \
  1049. +  ../../xpdf/GfxState.h ../../xpdf/../goo/gtypes.h ../../xpdf/Object.h \
  1050. +  ../../xpdf/mystdio.h ../../xpdf/../goo/GString.h ../../xpdf/Array.h \
  1051. +- ../../xpdf/Dict.h ../../xpdf/Stream.h ../../xpdf/ImageOutputDev.h \
  1052. +- ../../xpdf/OutputDev.h
  1053. ++ ../../xpdf/Dict.h ../../xpdf/Stream.h ../../xpdf/rc4.h \
  1054. ++ ../../xpdf/ImageOutputDev.h ../../xpdf/OutputDev.h
  1055. + Lexer.o: ../../xpdf/Lexer.cc ../../xpdf/Lexer.h ../../xpdf/Object.h \
  1056. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  1057. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  1058. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  1059. +- ../../xpdf/Error.h ../../xpdf/config.h
  1060. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h
  1061. + Link.o: ../../xpdf/Link.cc ../../xpdf/../goo/gmem.h \
  1062. +  ../../xpdf/../goo/GString.h ../../xpdf/Error.h ../../xpdf/config.h \
  1063. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  1064. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  1065. +- ../../xpdf/Link.h
  1066. ++ ../../xpdf/rc4.h ../../xpdf/Link.h
  1067. + Object.o: ../../xpdf/Object.cc ../../xpdf/Object.h \
  1068. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  1069. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  1070. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  1071. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/XRef.h
  1072. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  1073. ++ ../../xpdf/XRef.h
  1074. + OutputDev.o: ../../xpdf/OutputDev.cc ../../xpdf/Object.h \
  1075. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  1076. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  1077. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  1078. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  1079. +  ../../xpdf/GfxState.h ../../xpdf/OutputDev.h
  1080. + Page.o: ../../xpdf/Page.cc ../../xpdf/Object.h ../../xpdf/mystdio.h \
  1081. +  ../../xpdf/../goo/gtypes.h ../../xpdf/../goo/gmem.h \
  1082. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  1083. +- ../../xpdf/Stream.h ../../xpdf/XRef.h ../../xpdf/OutputDev.h \
  1084. +- ../../xpdf/Gfx.h ../../xpdf/Error.h ../../xpdf/config.h \
  1085. +- ../../xpdf/Params.h ../../xpdf/Page.h
  1086. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  1087. ++ ../../xpdf/rc4.h ../../xpdf/XRef.h ../../xpdf/OutputDev.h \
  1088. ++ ../../xpdf/Gfx.h ../../xpdf/Params.h ../../xpdf/Page.h
  1089. + Parser.o: ../../xpdf/Parser.cc ../../xpdf/Object.h \
  1090. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  1091. +  ../../xpdf/../goo/gmem.h ../../xpdf/../goo/GString.h \
  1092. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  1093. +- ../../xpdf/Parser.h ../../xpdf/Lexer.h ../../xpdf/Error.h \
  1094. +- ../../xpdf/config.h
  1095. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  1096. ++ ../../xpdf/Parser.h ../../xpdf/Lexer.h ../../xpdf/md5.h \
  1097. ++ ../../xpdf/XRef.h
  1098. + PBMOutputDev.o: ../../xpdf/PBMOutputDev.cc ../../xpdf/../goo/gmem.h \
  1099. +  ../../xpdf/../goo/GString.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  1100. +  ../../xpdf/../goo/gtypes.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  1101. +- ../../xpdf/Stream.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  1102. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/Params.h \
  1103. +- ../../xpdf/PBMOutputDev.h ../../xpdf/XOutputDev.h \
  1104. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  1105. ++ ../../xpdf/rc4.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  1106. ++ ../../xpdf/Params.h ../../xpdf/PBMOutputDev.h ../../xpdf/XOutputDev.h \
  1107. +  ../../xpdf/OutputDev.h
  1108. + PDFDoc.o: ../../xpdf/PDFDoc.cc ../../xpdf/../goo/GString.h \
  1109. +  ../../xpdf/config.h ../../xpdf/Page.h ../../xpdf/Object.h \
  1110. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  1111. +  ../../xpdf/../goo/gmem.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  1112. +- ../../xpdf/Stream.h ../../xpdf/Catalog.h ../../xpdf/XRef.h \
  1113. +- ../../xpdf/Link.h ../../xpdf/OutputDev.h ../../xpdf/Params.h \
  1114. +- ../../xpdf/Error.h ../../xpdf/PDFDoc.h
  1115. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/rc4.h \
  1116. ++ ../../xpdf/Catalog.h ../../xpdf/XRef.h ../../xpdf/Link.h \
  1117. ++ ../../xpdf/OutputDev.h ../../xpdf/Params.h ../../xpdf/PDFDoc.h
  1118. + PSOutputDev.o: ../../xpdf/PSOutputDev.cc ../../xpdf/../goo/GString.h \
  1119. +  ../../xpdf/config.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  1120. +  ../../xpdf/../goo/gtypes.h ../../xpdf/../goo/gmem.h \
  1121. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  1122. +- ../../xpdf/Error.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  1123. +- ../../xpdf/Catalog.h ../../xpdf/Page.h ../../xpdf/PSOutputDev.h \
  1124. +- ../../xpdf/OutputDev.h
  1125. ++ ../../xpdf/Error.h ../../xpdf/rc4.h ../../xpdf/GfxState.h \
  1126. ++ ../../xpdf/GfxFont.h ../../xpdf/Catalog.h ../../xpdf/Page.h \
  1127. ++ ../../xpdf/PSOutputDev.h ../../xpdf/OutputDev.h
  1128. + Stream.o: ../../xpdf/Stream.cc ../../xpdf/../goo/gmem.h \
  1129. +  ../../xpdf/config.h ../../xpdf/Error.h ../../xpdf/Object.h \
  1130. +  ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  1131. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  1132. +- ../../xpdf/Stream.h ../../xpdf/Stream-CCITT.h
  1133. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/Stream-CCITT.h
  1134. + TextOutputDev.o: ../../xpdf/TextOutputDev.cc \
  1135. +  ../../xpdf/../goo/GString.h ../../xpdf/../goo/gmem.h \
  1136. +  ../../xpdf/config.h ../../xpdf/Error.h ../../xpdf/GfxState.h \
  1137. +  ../../xpdf/../goo/gtypes.h ../../xpdf/GfxFont.h ../../xpdf/Object.h \
  1138. +  ../../xpdf/mystdio.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  1139. +- ../../xpdf/Stream.h ../../xpdf/TextOutputDev.h ../../xpdf/OutputDev.h \
  1140. +- ../../xpdf/TextOutputFontInfo.h
  1141. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/TextOutputDev.h \
  1142. ++ ../../xpdf/OutputDev.h ../../xpdf/TextOutputFontInfo.h
  1143. + XRef.o: ../../xpdf/XRef.cc ../../xpdf/../goo/gmem.h \
  1144. +  ../../xpdf/Object.h ../../xpdf/mystdio.h ../../xpdf/../goo/gtypes.h \
  1145. +  ../../xpdf/../goo/GString.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  1146. +- ../../xpdf/Stream.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  1147. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/XRef.h
  1148. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  1149. ++ ../../xpdf/rc4.h ../../xpdf/Lexer.h ../../xpdf/Parser.h \
  1150. ++ ../../xpdf/XRef.h ../../xpdf/md5.h
  1151. + Apdf.o: ../../xpdf/Apdf.c ../../xpdf/config.h ../../xpdf/AComm.h \
  1152. +  ../../xpdf/AGfxcomm.h
  1153. + Apdfppcserv.o: ../../xpdf/Apdfppcserv.cc ../../xpdf/AComm.h \
  1154. +@@ -228,29 +239,32 @@
  1155. +  ../../xpdf/../goo/gtypes.h ../../xpdf/../goo/GString.h \
  1156. +  ../../xpdf/../goo/gmem.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  1157. +  ../../xpdf/Array.h ../../xpdf/Dict.h ../../xpdf/Stream.h \
  1158. ++ ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/rc4.h \
  1159. +  ../../xpdf/XRef.h ../../xpdf/Catalog.h ../../xpdf/Page.h \
  1160. +  ../../xpdf/Link.h ../../xpdf/PDFDoc.h ../../xpdf/AOutputDev.h \
  1161. +- ../../xpdf/config.h ../../xpdf/OutputDev.h ../../xpdf/AGfx.h \
  1162. +- ../../xpdf/poly.h ../../xpdf/AComm.h ../../xpdf/AGfxcomm.h \
  1163. +- ../../xpdf/TextOutputDev.h ../../xpdf/PSOutputDev.h \
  1164. +- ../../xpdf/ImageOutputDev.h ../../xpdf/FontOutputDev.h \
  1165. +- ../../xpdf/GfxFont.h ../../xpdf/Error.h
  1166. ++ ../../xpdf/OutputDev.h ../../xpdf/AGfx.h ../../xpdf/poly.h \
  1167. ++ ../../xpdf/AComm.h ../../xpdf/AGfxcomm.h ../../xpdf/TextOutputDev.h \
  1168. ++ ../../xpdf/PSOutputDev.h ../../xpdf/ImageOutputDev.h \
  1169. ++ ../../xpdf/FontOutputDev.h ../../xpdf/GfxFont.h
  1170. + AOutputDev.o: ../../xpdf/AOutputDev.cc ../../xpdf/../goo/gmem.h \
  1171. +  ../../xpdf/../goo/GString.h ../../xpdf/Object.h ../../xpdf/mystdio.h \
  1172. +  ../../xpdf/../goo/gtypes.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  1173. +- ../../xpdf/Stream.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  1174. +- ../../xpdf/Error.h ../../xpdf/config.h ../../xpdf/TextOutputDev.h \
  1175. +- ../../xpdf/OutputDev.h ../../xpdf/AOutputDev.h ../../xpdf/AGfx.h \
  1176. +- ../../xpdf/poly.h ../../xpdf/AComm.h ../../xpdf/AGfxcomm.h \
  1177. +- ../../xpdf/FontOutputDev.h
  1178. ++ ../../xpdf/Stream.h ../../xpdf/Error.h ../../xpdf/config.h \
  1179. ++ ../../xpdf/rc4.h ../../xpdf/GfxState.h ../../xpdf/GfxFont.h \
  1180. ++ ../../xpdf/TextOutputDev.h ../../xpdf/OutputDev.h \
  1181. ++ ../../xpdf/AOutputDev.h ../../xpdf/AGfx.h ../../xpdf/poly.h \
  1182. ++ ../../xpdf/AComm.h ../../xpdf/AGfxcomm.h ../../xpdf/FontOutputDev.h
  1183. + FontOutputDev.o: ../../xpdf/FontOutputDev.cc \
  1184. +  ../../xpdf/../goo/GString.h ../../xpdf/../goo/gmem.h \
  1185. +  ../../xpdf/config.h ../../xpdf/Error.h ../../xpdf/GfxState.h \
  1186. +  ../../xpdf/../goo/gtypes.h ../../xpdf/GfxFont.h ../../xpdf/Object.h \
  1187. +  ../../xpdf/mystdio.h ../../xpdf/Array.h ../../xpdf/Dict.h \
  1188. +- ../../xpdf/Stream.h ../../xpdf/FontOutputDev.h ../../xpdf/OutputDev.h \
  1189. +- ../../xpdf/XOutputFontInfo.h
  1190. ++ ../../xpdf/Stream.h ../../xpdf/rc4.h ../../xpdf/FontOutputDev.h \
  1191. ++ ../../xpdf/OutputDev.h ../../xpdf/XOutputFontInfo.h
  1192. + AGfx.o: ../../xpdf/AGfx.cc ../../xpdf/../goo/gmem.h ../../xpdf/AGfx.h \
  1193. +  ../../xpdf/poly.h ../../xpdf/AComm.h ../../xpdf/AGfxcomm.h
  1194. + stub.o: ../../xpdf/stub.cc
  1195. + poly.o: ../../xpdf/poly.cc ../../xpdf/poly.h
  1196. ++md5.o: ../../xpdf/md5.cc ../../xpdf/md5.h ../../xpdf/Error.h \
  1197. ++ ../../xpdf/config.h
  1198. ++rc4.o: ../../xpdf/rc4.cc ../../xpdf/rc4.h
  1199. +diff -u -b -B -r -N -w xpdf-0.80/buildsas/xpdf/SMakefile xpdf-0.80-decrypt/buildsas/xpdf/SMakefile
  1200. +--- xpdf-0.80/buildsas/xpdf/SMakefile   Thu Jun 24 18:20:30 1999
  1201. ++++ xpdf-0.80-decrypt/buildsas/xpdf/SMakefile   Wed Jul  7 21:07:01 1999
  1202. +@@ -67,7 +67,10 @@
  1203. +    $(srcdir)/AOutputDev.cc \
  1204. +    $(srcdir)/FontOutputDev.cc \
  1205. +    $(srcdir)/AGfx.cc \
  1206. +-       $(srcdir)/poly.cc
  1207. ++       $(srcdir)/poly.cc \
  1208. ++       $(srcdir)/md5.cc \
  1209. ++       $(srcdir)/rc4.cc
  1210. ++
  1211. + #------------------------------------------------------------------------
  1212. +@@ -82,7 +85,7 @@
  1213. +    GfxState.o Lexer.o Link.o Object.o OutputDev.o mystdio.o \
  1214. +    Page.o Parser.o PDFDoc.o PSOutputDev.o Stream.o \
  1215. +    Apdfcommon.o Apdf.o ImageOutputDev.o poly.o stub.o \
  1216. +-       FontOutputDev.o
  1217. ++       FontOutputDev.o md5.o rc4.o
  1218. + APDF_LIBS = lib /goo/goo.lib $(OTHERLIBS)
  1219. + Apdf: $(APDF_OBJS)
  1220. +@@ -112,137 +115,149 @@
  1221. + Array.o: //xpdf/Array.cc //goo/gmem.h \
  1222. +  //xpdf/Object.h //xpdf/mystdio.h //goo/gtypes.h \
  1223. +  //goo/GString.h //xpdf/Array.h //xpdf/Dict.h \
  1224. +- //xpdf/Stream.h
  1225. ++ //xpdf/Stream.h //xpdf/Error.h //xpdf/config.h \
  1226. ++ //xpdf/rc4.h
  1227. + Catalog.o: //xpdf/Catalog.cc //goo/gmem.h \
  1228. +  //xpdf/Object.h //xpdf/mystdio.h //goo/gtypes.h \
  1229. +  //goo/GString.h //xpdf/Array.h //xpdf/Dict.h \
  1230. +- //xpdf/Stream.h //xpdf/Page.h //xpdf/Error.h \
  1231. +- //xpdf/config.h //xpdf/Link.h //xpdf/Catalog.h
  1232. ++ //xpdf/Stream.h //xpdf/Error.h //xpdf/config.h \
  1233. ++ //xpdf/rc4.h //xpdf/Page.h //xpdf/Link.h \
  1234. ++ //xpdf/Catalog.h
  1235. + Dict.o: //xpdf/Dict.cc //goo/gmem.h \
  1236. +  //xpdf/Object.h //xpdf/mystdio.h //goo/gtypes.h \
  1237. +  //goo/GString.h //xpdf/Array.h //xpdf/Dict.h \
  1238. +- //xpdf/Stream.h //xpdf/XRef.h
  1239. ++ //xpdf/Stream.h //xpdf/Error.h //xpdf/config.h \
  1240. ++ //xpdf/rc4.h //xpdf/XRef.h
  1241. + Error.o: //xpdf/Error.cc //goo/gtypes.h \
  1242. +  //xpdf/Params.h //xpdf/Error.h //xpdf/config.h
  1243. + Gfx.o: //xpdf/Gfx.cc //goo/gmem.h //xpdf/Object.h \
  1244. +  //xpdf/mystdio.h //goo/gtypes.h \
  1245. +  //goo/GString.h //xpdf/Array.h //xpdf/Dict.h \
  1246. +- //xpdf/Stream.h //xpdf/Lexer.h //xpdf/Parser.h \
  1247. ++ //xpdf/Stream.h //xpdf/Error.h //xpdf/config.h \
  1248. ++ //xpdf/rc4.h //xpdf/Lexer.h //xpdf/Parser.h \
  1249. +  //xpdf/GfxFont.h //xpdf/GfxState.h //xpdf/OutputDev.h \
  1250. +- //xpdf/Params.h //xpdf/Error.h //xpdf/config.h \
  1251. +- //xpdf/Gfx.h
  1252. ++ //xpdf/Params.h //xpdf/Gfx.h
  1253. + GfxFont.o: //xpdf/GfxFont.cc //goo/GString.h \
  1254. +  //goo/gmem.h //goo/gfile.h \
  1255. +  //goo/gtypes.h //xpdf/config.h //xpdf/Object.h \
  1256. +  //xpdf/mystdio.h //xpdf/Array.h //xpdf/Dict.h \
  1257. +- //xpdf/Stream.h //xpdf/Error.h //xpdf/Params.h \
  1258. +- //xpdf/GfxFont.h //xpdf/FontInfo.h
  1259. ++ //xpdf/Stream.h //xpdf/Error.h //xpdf/rc4.h \
  1260. ++ //xpdf/Params.h //xpdf/GfxFont.h //xpdf/FontInfo.h
  1261. + GfxState.o: //xpdf/GfxState.cc //goo/gmem.h \
  1262. +  //xpdf/Error.h //xpdf/config.h //xpdf/Object.h \
  1263. +  //xpdf/mystdio.h //goo/gtypes.h \
  1264. +  //goo/GString.h //xpdf/Array.h //xpdf/Dict.h \
  1265. +- //xpdf/Stream.h //xpdf/GfxState.h
  1266. ++ //xpdf/Stream.h //xpdf/rc4.h //xpdf/GfxState.h
  1267. + ImageOutputDev.o: //xpdf/ImageOutputDev.cc \
  1268. +  //goo/gmem.h //xpdf/config.h //xpdf/Error.h \
  1269. +  //xpdf/GfxState.h //goo/gtypes.h //xpdf/Object.h \
  1270. +  //xpdf/mystdio.h //goo/GString.h //xpdf/Array.h \
  1271. +- //xpdf/Dict.h //xpdf/Stream.h //xpdf/ImageOutputDev.h \
  1272. +- //xpdf/OutputDev.h
  1273. ++ //xpdf/Dict.h //xpdf/Stream.h //xpdf/rc4.h \
  1274. ++ //xpdf/ImageOutputDev.h //xpdf/OutputDev.h
  1275. + Lexer.o: //xpdf/Lexer.cc //xpdf/Lexer.h //xpdf/Object.h \
  1276. +  //xpdf/mystdio.h //goo/gtypes.h \
  1277. +  //goo/gmem.h //goo/GString.h \
  1278. +  //xpdf/Array.h //xpdf/Dict.h //xpdf/Stream.h \
  1279. +- //xpdf/Error.h //xpdf/config.h
  1280. ++ //xpdf/Error.h //xpdf/config.h //xpdf/rc4.h
  1281. + Link.o: //xpdf/Link.cc //goo/gmem.h \
  1282. +  //goo/GString.h //xpdf/Error.h //xpdf/config.h \
  1283. +  //xpdf/Object.h //xpdf/mystdio.h //goo/gtypes.h \
  1284. +  //xpdf/Array.h //xpdf/Dict.h //xpdf/Stream.h \
  1285. +- //xpdf/Link.h
  1286. ++ //xpdf/rc4.h //xpdf/Link.h
  1287. + Object.o: //xpdf/Object.cc //xpdf/Object.h \
  1288. +  //xpdf/mystdio.h //goo/gtypes.h \
  1289. +  //goo/gmem.h //goo/GString.h \
  1290. +  //xpdf/Array.h //xpdf/Dict.h //xpdf/Stream.h \
  1291. +- //xpdf/Error.h //xpdf/config.h //xpdf/XRef.h
  1292. ++ //xpdf/Error.h //xpdf/config.h //xpdf/rc4.h \
  1293. ++ //xpdf/XRef.h
  1294. + OutputDev.o: //xpdf/OutputDev.cc //xpdf/Object.h \
  1295. +  //xpdf/mystdio.h //goo/gtypes.h \
  1296. +  //goo/gmem.h //goo/GString.h \
  1297. +  //xpdf/Array.h //xpdf/Dict.h //xpdf/Stream.h \
  1298. ++ //xpdf/Error.h //xpdf/config.h //xpdf/rc4.h \
  1299. +  //xpdf/GfxState.h //xpdf/OutputDev.h
  1300. + Page.o: //xpdf/Page.cc //xpdf/Object.h //xpdf/mystdio.h \
  1301. +  //goo/gtypes.h //goo/gmem.h \
  1302. +  //goo/GString.h //xpdf/Array.h //xpdf/Dict.h \
  1303. +- //xpdf/Stream.h //xpdf/XRef.h //xpdf/OutputDev.h \
  1304. +- //xpdf/Gfx.h //xpdf/Error.h //xpdf/config.h \
  1305. +- //xpdf/Params.h //xpdf/Page.h
  1306. ++ //xpdf/Stream.h //xpdf/Error.h //xpdf/config.h \
  1307. ++ //xpdf/rc4.h //xpdf/XRef.h //xpdf/OutputDev.h \
  1308. ++ //xpdf/Gfx.h //xpdf/Params.h //xpdf/Page.h
  1309. + Parser.o: //xpdf/Parser.cc //xpdf/Object.h \
  1310. +  //xpdf/mystdio.h //goo/gtypes.h \
  1311. +  //goo/gmem.h //goo/GString.h \
  1312. +  //xpdf/Array.h //xpdf/Dict.h //xpdf/Stream.h \
  1313. +- //xpdf/Parser.h //xpdf/Lexer.h //xpdf/Error.h \
  1314. +- //xpdf/config.h
  1315. ++ //xpdf/Error.h //xpdf/config.h //xpdf/rc4.h \
  1316. ++ //xpdf/Parser.h //xpdf/Lexer.h //xpdf/md5.h \
  1317. ++ //xpdf/XRef.h
  1318. + PBMOutputDev.o: //xpdf/PBMOutputDev.cc //goo/gmem.h \
  1319. +  //goo/GString.h //xpdf/Object.h //xpdf/mystdio.h \
  1320. +  //goo/gtypes.h //xpdf/Array.h //xpdf/Dict.h \
  1321. +- //xpdf/Stream.h //xpdf/GfxState.h //xpdf/GfxFont.h \
  1322. +- //xpdf/Error.h //xpdf/config.h //xpdf/Params.h \
  1323. +- //xpdf/PBMOutputDev.h //xpdf/XOutputDev.h \
  1324. ++ //xpdf/Stream.h //xpdf/Error.h //xpdf/config.h \
  1325. ++ //xpdf/rc4.h //xpdf/GfxState.h //xpdf/GfxFont.h \
  1326. ++ //xpdf/Params.h //xpdf/PBMOutputDev.h //xpdf/XOutputDev.h \
  1327. +  //xpdf/OutputDev.h
  1328. + PDFDoc.o: //xpdf/PDFDoc.cc //goo/GString.h \
  1329. +  //xpdf/config.h //xpdf/Page.h //xpdf/Object.h \
  1330. +  //xpdf/mystdio.h //goo/gtypes.h \
  1331. +  //goo/gmem.h //xpdf/Array.h //xpdf/Dict.h \
  1332. +- //xpdf/Stream.h //xpdf/Catalog.h //xpdf/XRef.h \
  1333. +- //xpdf/Link.h //xpdf/OutputDev.h //xpdf/Params.h \
  1334. +- //xpdf/Error.h //xpdf/PDFDoc.h
  1335. ++ //xpdf/Stream.h //xpdf/Error.h //xpdf/rc4.h \
  1336. ++ //xpdf/Catalog.h //xpdf/XRef.h //xpdf/Link.h \
  1337. ++ //xpdf/OutputDev.h //xpdf/Params.h //xpdf/PDFDoc.h
  1338. + PSOutputDev.o: //xpdf/PSOutputDev.cc //goo/GString.h \
  1339. +  //xpdf/config.h //xpdf/Object.h //xpdf/mystdio.h \
  1340. +  //goo/gtypes.h //goo/gmem.h \
  1341. +  //xpdf/Array.h //xpdf/Dict.h //xpdf/Stream.h \
  1342. +- //xpdf/Error.h //xpdf/GfxState.h //xpdf/GfxFont.h \
  1343. +- //xpdf/Catalog.h //xpdf/Page.h //xpdf/PSOutputDev.h \
  1344. +- //xpdf/OutputDev.h
  1345. ++ //xpdf/Error.h //xpdf/rc4.h //xpdf/GfxState.h \
  1346. ++ //xpdf/GfxFont.h //xpdf/Catalog.h //xpdf/Page.h \
  1347. ++ //xpdf/PSOutputDev.h //xpdf/OutputDev.h
  1348. + Stream.o: //xpdf/Stream.cc //goo/gmem.h \
  1349. +  //xpdf/config.h //xpdf/Error.h //xpdf/Object.h \
  1350. +  //xpdf/mystdio.h //goo/gtypes.h \
  1351. +  //goo/GString.h //xpdf/Array.h //xpdf/Dict.h \
  1352. +- //xpdf/Stream.h //xpdf/Stream-CCITT.h
  1353. ++ //xpdf/Stream.h //xpdf/rc4.h //xpdf/Stream-CCITT.h
  1354. + TextOutputDev.o: //xpdf/TextOutputDev.cc \
  1355. +  //goo/GString.h //goo/gmem.h \
  1356. +  //xpdf/config.h //xpdf/Error.h //xpdf/GfxState.h \
  1357. +  //goo/gtypes.h //xpdf/GfxFont.h //xpdf/Object.h \
  1358. +  //xpdf/mystdio.h //xpdf/Array.h //xpdf/Dict.h \
  1359. +- //xpdf/Stream.h //xpdf/TextOutputDev.h //xpdf/OutputDev.h \
  1360. +- //xpdf/TextOutputFontInfo.h
  1361. ++ //xpdf/Stream.h //xpdf/rc4.h //xpdf/TextOutputDev.h \
  1362. ++ //xpdf/OutputDev.h //xpdf/TextOutputFontInfo.h
  1363. + XRef.o: //xpdf/XRef.cc //goo/gmem.h \
  1364. +  //xpdf/Object.h //xpdf/mystdio.h //goo/gtypes.h \
  1365. +  //goo/GString.h //xpdf/Array.h //xpdf/Dict.h \
  1366. +- //xpdf/Stream.h //xpdf/Lexer.h //xpdf/Parser.h \
  1367. +- //xpdf/Error.h //xpdf/config.h //xpdf/XRef.h
  1368. ++ //xpdf/Stream.h //xpdf/Error.h //xpdf/config.h \
  1369. ++ //xpdf/rc4.h //xpdf/Lexer.h //xpdf/Parser.h \
  1370. ++ //xpdf/XRef.h //xpdf/md5.h
  1371. + Apdf.o: //xpdf/Apdf.c //xpdf/config.h //xpdf/AComm.h
  1372. + Apdfcommon.o: //xpdf/Apdfcommon.cc //goo/parseargs.h \
  1373. +  //goo/gtypes.h //goo/GString.h \
  1374. +  //goo/gmem.h //xpdf/Object.h //xpdf/mystdio.h \
  1375. +  //xpdf/Array.h //xpdf/Dict.h //xpdf/Stream.h \
  1376. ++ //xpdf/Error.h //xpdf/config.h //xpdf/rc4.h \
  1377. +  //xpdf/XRef.h //xpdf/Catalog.h //xpdf/Page.h \
  1378. +  //xpdf/Link.h //xpdf/PDFDoc.h //xpdf/AOutputDev.h \
  1379. +- //xpdf/config.h //xpdf/OutputDev.h //xpdf/AGfx.h \
  1380. +- //xpdf/poly.h //xpdf/TextOutputDev.h //xpdf/PSOutputDev.h \
  1381. ++ //xpdf/OutputDev.h //xpdf/AGfx.h //xpdf/poly.h \
  1382. ++ //xpdf/TextOutputDev.h //xpdf/PSOutputDev.h \
  1383. +  //xpdf/ImageOutputDev.h //xpdf/FontOutputDev.h \
  1384. +- //xpdf/GfxFont.h //xpdf/Error.h //xpdf/AComm.h
  1385. ++ //xpdf/GfxFont.h //xpdf/AComm.h
  1386. + AOutputDev.o: //xpdf/AOutputDev.cc //goo/gmem.h \
  1387. +  //goo/GString.h //xpdf/Object.h //xpdf/mystdio.h \
  1388. +  //goo/gtypes.h //xpdf/Array.h //xpdf/Dict.h \
  1389. +- //xpdf/Stream.h //xpdf/GfxState.h //xpdf/GfxFont.h \
  1390. +- //xpdf/Error.h //xpdf/config.h //xpdf/TextOutputDev.h \
  1391. +- //xpdf/OutputDev.h //xpdf/AOutputDev.h //xpdf/AGfx.h \
  1392. +- //xpdf/poly.h //xpdf/FontOutputDev.h
  1393. ++ //xpdf/Stream.h //xpdf/Error.h //xpdf/config.h \
  1394. ++ //xpdf/rc4.h //xpdf/GfxState.h //xpdf/GfxFont.h \
  1395. ++ //xpdf/TextOutputDev.h //xpdf/OutputDev.h \
  1396. ++ //xpdf/AOutputDev.h //xpdf/AGfx.h //xpdf/poly.h \
  1397. ++ //xpdf/FontOutputDev.h
  1398. + FontOutputDev.o: //xpdf/FontOutputDev.cc \
  1399. +  //goo/GString.h //goo/gmem.h \
  1400. +  //xpdf/config.h //xpdf/Error.h //xpdf/GfxState.h \
  1401. +  //goo/gtypes.h //xpdf/GfxFont.h //xpdf/Object.h \
  1402. +  //xpdf/mystdio.h //xpdf/Array.h //xpdf/Dict.h \
  1403. +- //xpdf/Stream.h //xpdf/FontOutputDev.h //xpdf/OutputDev.h \
  1404. +- //xpdf/XOutputFontInfo.h
  1405. ++ //xpdf/Stream.h //xpdf/rc4.h //xpdf/FontOutputDev.h \
  1406. ++ //xpdf/OutputDev.h //xpdf/XOutputFontInfo.h
  1407. + AGfx.o: //xpdf/AGfx.cc //goo/gmem.h //xpdf/AGfx.h \
  1408. +  //xpdf/poly.h
  1409. + poly.o: //xpdf/poly.cc //xpdf/poly.h
  1410. ++md5.o: //xpdf/md5.cc //xpdf/md5.h //xpdf/Error.h \
  1411. ++ //xpdf/config.h
  1412. ++rc4.o: //xpdf/rc4.cc //xpdf/rc4.h
  1413. +diff -u -b -B -r -N -w xpdf-0.80/xpdf/Makefile.in xpdf-0.80-decrypt/xpdf/Makefile.in
  1414. +--- xpdf-0.80/xpdf/Makefile.in  Tue Apr 27 18:54:12 1999
  1415. ++++ xpdf-0.80-decrypt/xpdf/Makefile.in  Wed Jul  7 21:07:02 1999
  1416.  @@ -76,7 +76,7 @@
  1417.   XPDF_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
  1418.       GfxState.o Lexer.o Link.o LTKOutputDev.o Object.o OutputDev.o \
  1419. @@ -16,7 +1428,7 @@
  1420.   XPDF_LIBS = -L$(LTKLIBDIR) -lLTK -L$(GOOLIBDIR) -lGoo $(XLIBS) $(OTHERLIBS) -lm
  1421.   
  1422.   xpdf$(EXE): $(XPDF_OBJS)
  1423. -@@ -92,7 +92,7 @@
  1424. +@@ -104,7 +104,7 @@
  1425.   
  1426.   PDFTOPS_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
  1427.       GfxState.o Lexer.o Link.o Object.o OutputDev.o Page.o Params.o \
  1428. @@ -25,7 +1437,7 @@
  1429.   PDFTOPS_LIBS = -L$(GOOLIBDIR) -lGoo $(OTHERLIBS) -lm
  1430.   
  1431.   pdftops$(EXE): $(PDFTOPS_OBJS)
  1432. -@@ -103,7 +103,7 @@
  1433. +@@ -115,7 +115,7 @@
  1434.   
  1435.   PDFTOTEXT_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
  1436.       GfxState.o Lexer.o Link.o Object.o OutputDev.o Page.o Params.o \
  1437. @@ -34,7 +1446,7 @@
  1438.   PDFTOTEXT_LIBS = -L$(GOOLIBDIR) -lGoo $(OTHERLIBS) -lm
  1439.   
  1440.   pdftotext$(EXE): $(PDFTOTEXT_OBJS)
  1441. -@@ -115,7 +115,7 @@
  1442. +@@ -127,7 +127,7 @@
  1443.   
  1444.   PDFINFO_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
  1445.       GfxState.o Lexer.o Link.o Object.o OutputDev.o Page.o \
  1446. @@ -43,7 +1455,7 @@
  1447.   PDFINFO_LIBS = -L$(GOOLIBDIR) -lGoo $(OTHERLIBS) -lm
  1448.   
  1449.   pdfinfo$(EXE): $(PDFINFO_OBJS)
  1450. -@@ -127,7 +127,7 @@
  1451. +@@ -139,7 +139,7 @@
  1452.   PDFTOPBM_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
  1453.       GfxState.o Lexer.o Link.o Object.o OutputDev.o PBMOutputDev.o \
  1454.       Page.o Params.o Parser.o PDFDoc.o Stream.o TextOutputDev.o \
  1455. @@ -52,7 +1464,7 @@
  1456.   PDFTOPBM_LIBS = -L$(GOOLIBDIR) -lGoo $(XLIBS) $(OTHERLIBS) -lm
  1457.   
  1458.   pdftopbm$(EXE): $(PDFTOPBM_OBJS)
  1459. -@@ -138,7 +138,7 @@
  1460. +@@ -150,7 +150,7 @@
  1461.   
  1462.   PDFIMAGES_OBJS = Array.o Catalog.o Dict.o Error.o Gfx.o GfxFont.o \
  1463.       GfxState.o ImageOutputDev.o Lexer.o Link.o Object.o OutputDev.o \
  1464. @@ -61,9 +1473,9 @@
  1465.   PDFIMAGES_LIBS = -L$(GOOLIBDIR) -lGoo $(OTHERLIBS) -lm
  1466.   
  1467.   pdfimages$(EXE): $(PDFIMAGES_OBJS)
  1468. -diff -urN xpdf-0.80.orig/xpdf/Parser.cc xpdf-0.80/xpdf/Parser.cc
  1469. ---- xpdf-0.80.orig/xpdf/Parser.cc    Sat Nov 28 13:47:03 1998
  1470. -+++ xpdf-0.80/xpdf/Parser.cc    Thu Dec 17 23:28:17 1998
  1471. +diff -u -b -B -r -N -w xpdf-0.80/xpdf/Parser.cc xpdf-0.80-decrypt/xpdf/Parser.cc
  1472. +--- xpdf-0.80/xpdf/Parser.cc    Tue Apr 27 18:54:12 1999
  1473. ++++ xpdf-0.80-decrypt/xpdf/Parser.cc    Wed Jul  7 21:07:02 1999
  1474.  @@ -16,6 +16,8 @@
  1475.   #include "Dict.h"
  1476.   #include "Parser.h"
  1477. @@ -196,9 +1608,9 @@
  1478.  +
  1479.  +  return obj;
  1480.   }
  1481. -diff -urN xpdf-0.80.orig/xpdf/Parser.h xpdf-0.80/xpdf/Parser.h
  1482. ---- xpdf-0.80.orig/xpdf/Parser.h    Sat Nov 28 13:47:09 1998
  1483. -+++ xpdf-0.80/xpdf/Parser.h    Thu Dec 17 23:28:17 1998
  1484. +diff -u -b -B -r -N -w xpdf-0.80/xpdf/Parser.h xpdf-0.80-decrypt/xpdf/Parser.h
  1485. +--- xpdf-0.80/xpdf/Parser.h     Tue Apr 27 18:54:12 1999
  1486. ++++ xpdf-0.80-decrypt/xpdf/Parser.h     Wed Jul  7 21:07:02 1999
  1487.  @@ -30,6 +30,8 @@
  1488.   
  1489.     // Get the next object from the input stream.
  1490. @@ -208,9 +1620,9 @@
  1491.   
  1492.     // Get stream.
  1493.     Stream *getStream() { return lexer->getStream(); }
  1494. -diff -urN xpdf-0.80.orig/xpdf/Stream.cc xpdf-0.80/xpdf/Stream.cc
  1495. ---- xpdf-0.80.orig/xpdf/Stream.cc    Sat Nov 28 13:47:24 1998
  1496. -+++ xpdf-0.80/xpdf/Stream.cc    Wed Dec 16 17:03:01 1998
  1497. +diff -u -b -B -r -N -w xpdf-0.80/xpdf/Stream.cc xpdf-0.80-decrypt/xpdf/Stream.cc
  1498. +--- xpdf-0.80/xpdf/Stream.cc    Sat Jul  3 11:08:50 1999
  1499. ++++ xpdf-0.80-decrypt/xpdf/Stream.cc    Wed Jul  7 21:07:03 1999
  1500.  @@ -415,6 +415,7 @@
  1501.     bufPos = start;
  1502.     savePos = -1;
  1503. @@ -221,7 +1633,7 @@
  1504.   FileStream::~FileStream() {
  1505.  @@ -443,9 +444,19 @@
  1506.       n = 256;
  1507. -   n = fread(buf, 1, n, f);
  1508. +   n = myfread(buf, 1, n, f);
  1509.     bufEnd = buf + n;
  1510.  +  if (encryption == gTrue) {
  1511.  +    rc4Crypt(&rc4Key, (unsigned char *)buf, n);
  1512. @@ -239,11 +1651,11 @@
  1513.   }
  1514.   
  1515.   void FileStream::setPos(int pos1) {
  1516. -diff -urN xpdf-0.80.orig/xpdf/Stream.h xpdf-0.80/xpdf/Stream.h
  1517. ---- xpdf-0.80.orig/xpdf/Stream.h    Sat Nov 28 13:47:33 1998
  1518. -+++ xpdf-0.80/xpdf/Stream.h    Thu Dec 17 23:28:17 1998
  1519. -@@ -16,6 +16,8 @@
  1520. - #include <stdio.h>
  1521. +diff -u -b -B -r -N -w xpdf-0.80/xpdf/Stream.h xpdf-0.80-decrypt/xpdf/Stream.h
  1522. +--- xpdf-0.80/xpdf/Stream.h     Sun Jun 20 16:33:20 1999
  1523. ++++ xpdf-0.80-decrypt/xpdf/Stream.h     Wed Jul  7 21:07:03 1999
  1524. +@@ -17,6 +17,8 @@
  1525. + #include "mystdio.h"
  1526.   #include "gtypes.h"
  1527.   #include "Object.h"
  1528.  +#include "Error.h"
  1529. @@ -251,7 +1663,7 @@
  1530.   
  1531.   //------------------------------------------------------------------------
  1532.   
  1533. -@@ -104,6 +106,8 @@
  1534. +@@ -105,6 +107,8 @@
  1535.     // Returns the new stream.
  1536.     Stream *addFilters(Object *dict);
  1537.   
  1538. @@ -260,7 +1672,7 @@
  1539.   private:
  1540.   
  1541.     Stream *makeFilter(char *name, Stream *str, Object *params);
  1542. -@@ -156,8 +160,12 @@
  1543. +@@ -157,8 +161,12 @@
  1544.   
  1545.   private:
  1546.   
  1547. @@ -270,12 +1682,12 @@
  1548.   
  1549.  +  RC4KEY rc4Key;
  1550.  +  GBool encryption;
  1551. -   FILE *f;
  1552. +   myFILE *f;
  1553.     int start;
  1554.     int length;
  1555. -diff -urN xpdf-0.80.orig/xpdf/XRef.cc xpdf-0.80/xpdf/XRef.cc
  1556. ---- xpdf-0.80.orig/xpdf/XRef.cc    Sat Nov 28 13:48:14 1998
  1557. -+++ xpdf-0.80/xpdf/XRef.cc    Thu Dec 17 23:28:17 1998
  1558. +diff -u -b -B -r -N -w xpdf-0.80/xpdf/XRef.cc xpdf-0.80-decrypt/xpdf/XRef.cc
  1559. +--- xpdf-0.80/xpdf/XRef.cc      Tue Apr 27 18:54:13 1999
  1560. ++++ xpdf-0.80-decrypt/xpdf/XRef.cc      Wed Jul  7 21:07:03 1999
  1561.  @@ -22,6 +22,8 @@
  1562.   #include "Dict.h"
  1563.   #include "Error.h"
  1564. @@ -302,16 +1714,13 @@
  1565.  +  m_okToChange = gTrue;
  1566.  +  m_okToAddNotes = gTrue;
  1567.     if (checkEncrypted()) {
  1568. --    ok = gFalse;
  1569. --    xref = oldXref;
  1570. --    return;
  1571.  +    if (setupDecryption() == gFalse) {
  1572. -+      ok = gFalse;
  1573. -+      xref = oldXref;
  1574. -+      return;
  1575. -+    }
  1576. +     ok = gFalse;
  1577. +     xref = oldXref;
  1578. +     return;
  1579.     }
  1580.   }
  1581. ++}
  1582.   
  1583.   XRef::~XRef() {
  1584.     gfree(entries);
  1585. @@ -363,11 +1772,10 @@
  1586.       if (obj1.isInt() && obj1.getInt() == num &&
  1587.       obj2.isInt() && obj2.getInt() == gen &&
  1588.       obj3.isCmd("obj")) {
  1589. --      parser->getObj(obj);
  1590.  +      if (encrypted) {
  1591.  +        parser->getEncryptedObj(obj, num, gen);
  1592.  +      } else {
  1593. -+        parser->getObj(obj);
  1594. +       parser->getObj(obj);
  1595.  +      }
  1596.       } else {
  1597.         obj->initNull();
  1598. @@ -522,10 +1930,10 @@
  1599.  +  preparedPassword->append(&acFill[0], 32);
  1600.  +  return gTrue;
  1601.   }
  1602. -diff -urN xpdf-0.80.orig/xpdf/XRef.h xpdf-0.80/xpdf/XRef.h
  1603. ---- xpdf-0.80.orig/xpdf/XRef.h    Sat Nov 28 13:48:39 1998
  1604. -+++ xpdf-0.80/xpdf/XRef.h    Thu Dec 17 23:03:08 1998
  1605. -@@ -43,15 +43,20 @@
  1606. +diff -u -b -B -r -N -w xpdf-0.80/xpdf/XRef.h xpdf-0.80-decrypt/xpdf/XRef.h
  1607. +--- xpdf-0.80/xpdf/XRef.h       Sun Jun 20 16:26:50 1999
  1608. ++++ xpdf-0.80-decrypt/xpdf/XRef.h       Wed Jul  7 21:07:03 1999
  1609. +@@ -44,15 +44,20 @@
  1610.     GBool isOk() { return ok; }
  1611.   
  1612.     // Is the file encrypted?
  1613. @@ -547,7 +1955,7 @@
  1614.     // Fetch an indirect reference.
  1615.     Object *fetch(int num, int gen, Object *obj);
  1616.   
  1617. -@@ -68,6 +73,19 @@
  1618. +@@ -69,6 +74,19 @@
  1619.     int rootNum, rootGen;        // catalog dict
  1620.     GBool ok;            // true if xref table is valid
  1621.     Object trailerDict;        // trailer dictionary
  1622. @@ -567,9 +1975,9 @@
  1623.   
  1624.     int readTrailer(FileStream *str);
  1625.     GBool readXRef(FileStream *str, int *pos);
  1626. -diff -urN xpdf-0.80.orig/xpdf/config.h xpdf-0.80/xpdf/config.h
  1627. ---- xpdf-0.80.orig/xpdf/config.h    Sat Nov 28 13:42:17 1998
  1628. -+++ xpdf-0.80/xpdf/config.h    Thu Dec 17 23:28:17 1998
  1629. +diff -u -b -B -r -N -w xpdf-0.80/xpdf/config.h xpdf-0.80-decrypt/xpdf/config.h
  1630. +--- xpdf-0.80/xpdf/config.h     Wed Jul  7 16:05:47 1999
  1631. ++++ xpdf-0.80-decrypt/xpdf/config.h     Wed Jul  7 21:07:05 1999
  1632.  @@ -4,6 +4,9 @@
  1633.   //
  1634.   // Copyright 1996 Derek B. Noonburg
  1635. @@ -580,26 +1988,28 @@
  1636.   //========================================================================
  1637.   
  1638.   #ifndef CONFIG_H
  1639. -@@ -14,7 +17,7 @@
  1640. +@@ -14,8 +17,8 @@
  1641.   //------------------------------------------------------------------------
  1642.   
  1643.   // xpdf version
  1644.  -#define xpdfVersion "0.80"
  1645. +-#define apdfVersion "1.3"
  1646.  +#define xpdfVersion "0.80 (decryption)"
  1647. ++#define apdfVersion "1.3 (decryption)"
  1648. + #define apdfVerString "Apdf 1.3 (7.7.99)"
  1649.   
  1650.   // supported PDF version
  1651. - #define pdfVersion "1.2"
  1652. -@@ -22,6 +25,7 @@
  1653. +@@ -23,6 +26,7 @@
  1654. + #define pdfVersionNum 1.2
  1655.   // copyright notice
  1656.   #define xpdfCopyright "Copyright \251 1996-1998 Derek B. Noonburg"
  1657.  +#define xpdfCopyright_Encryption "Decryption (originally) by Leo J.B. Smiers"
  1658.   
  1659.   // default paper size (in points) for PostScript output
  1660.   #ifdef A4_PAPER
  1661. -diff -urN xpdf-0.80.orig/xpdf/md5.cc xpdf-0.80/xpdf/md5.cc
  1662. ---- xpdf-0.80.orig/xpdf/md5.cc    Thu Jan  1 10:00:00 1970
  1663. -+++ xpdf-0.80/xpdf/md5.cc    Wed Dec 16 17:03:01 1998
  1664. +diff -u -b -B -r -N -w xpdf-0.80/xpdf/md5.cc xpdf-0.80-decrypt/xpdf/md5.cc
  1665. +--- xpdf-0.80/xpdf/md5.cc       Thu Jan  1 00:00:00 1970
  1666. ++++ xpdf-0.80-decrypt/xpdf/md5.cc       Wed Jul  7 21:07:05 1999
  1667.  @@ -0,0 +1,544 @@
  1668.  +// MD5.CC - source code for the C++/object oriented translation and
  1669.  +//          modification of MD5.
  1670. @@ -647,8 +2057,8 @@
  1671.  +
  1672.  +
  1673.  +
  1674. -+
  1675.  +#include "md5.h"
  1676. ++#include "Error.h"
  1677.  +
  1678.  +#include <assert.h>
  1679.  +#include <strings.h>
  1680. @@ -678,7 +2088,7 @@
  1681.  +  uint4 buffer_space;                // how much space is left in buffer
  1682.  +
  1683.  +  if (finalized){  // so we can't update!
  1684. -+    cerr << "MD5::update:  Can't update a finalized digest!" << endl;
  1685. ++    error(-1, "MD5::update:  Can't update a finalized digest!\n");
  1686.  +    return;
  1687.  +  }
  1688.  +
  1689. @@ -716,7 +2126,7 @@
  1690.  +}
  1691.  +
  1692.  +
  1693. -+
  1694. ++#if 0
  1695.  +// MD5 update for files.
  1696.  +// Like above, except that it works on files (and uses above as a primitive.)
  1697.  +
  1698. @@ -774,7 +2184,7 @@
  1699.  +
  1700.  +}
  1701.  +
  1702. -+
  1703. ++#endif
  1704.  +
  1705.  +
  1706.  +
  1707. @@ -794,7 +2204,7 @@
  1708.  +    };
  1709.  +
  1710.  +  if (finalized){
  1711. -+    cerr << "MD5::finalize:  Already finalized this digest!" << endl;
  1712. ++    error(-1, "MD5::finalize:  Already finalized this digest!\n");
  1713.  +    return;
  1714.  +  }
  1715.  +
  1716. @@ -820,7 +2230,7 @@
  1717.  +}
  1718.  +
  1719.  +
  1720. -+
  1721. ++#if 0
  1722.  +
  1723.  +MD5::MD5(FILE *file){
  1724.  +
  1725. @@ -848,15 +2258,15 @@
  1726.  +  finalize();
  1727.  +}
  1728.  +
  1729. -+
  1730. ++#endif
  1731.  +
  1732.  +unsigned char *MD5::raw_digest(){
  1733.  +
  1734.  +  uint1 *s = new uint1[16];
  1735.  +
  1736.  +  if (!finalized){
  1737. -+    cerr << "MD5::raw_digest:  Can't get digest if you haven't "<<
  1738. -+      "finalized the digest!" <<endl;
  1739. ++    error(-1, "MD5::raw_digest:  Can't get digest if you haven't "
  1740. ++      "finalized the digest!\n");
  1741.  +    return ( (unsigned char*) "");
  1742.  +  }
  1743.  +
  1744. @@ -872,8 +2282,8 @@
  1745.  +  char *s= new char[33];
  1746.  +
  1747.  +  if (!finalized){
  1748. -+    cerr << "MD5::hex_digest:  Can't get digest if you haven't "<<
  1749. -+      "finalized the digest!" <<endl;
  1750. ++    error(-1, "MD5::hex_digest:  Can't get digest if you haven't "
  1751. ++      "finalized the digest!\n");
  1752.  +    return "";
  1753.  +  }
  1754.  +
  1755. @@ -887,7 +2297,7 @@
  1756.  +
  1757.  +
  1758.  +
  1759. -+
  1760. ++#if 0
  1761.  +
  1762.  +ostream& operator<<(ostream &stream, MD5 context){
  1763.  +
  1764. @@ -895,7 +2305,7 @@
  1765.  +  return stream;
  1766.  +}
  1767.  +
  1768. -+
  1769. ++#endif
  1770.  +
  1771.  +
  1772.  +// PRIVATE METHODS:
  1773. @@ -1145,9 +2555,9 @@
  1774.  + a += I(b, c, d) + x + ac;
  1775.  + a = rotate_left (a, s) +b;
  1776.  +}
  1777. -diff -urN xpdf-0.80.orig/xpdf/md5.h xpdf-0.80/xpdf/md5.h
  1778. ---- xpdf-0.80.orig/xpdf/md5.h    Thu Jan  1 10:00:00 1970
  1779. -+++ xpdf-0.80/xpdf/md5.h    Wed Dec 16 17:03:01 1998
  1780. +diff -u -b -B -r -N -w xpdf-0.80/xpdf/md5.h xpdf-0.80-decrypt/xpdf/md5.h
  1781. +--- xpdf-0.80/xpdf/md5.h        Thu Jan  1 00:00:00 1970
  1782. ++++ xpdf-0.80-decrypt/xpdf/md5.h        Wed Jul  7 21:07:05 1999
  1783.  @@ -0,0 +1,109 @@
  1784.  +// MD5.CC - source code for the C++/object oriented translation and 
  1785.  +//          modification of MD5.
  1786. @@ -1258,9 +2668,9 @@
  1787.  +                uint4 s, uint4 ac);
  1788.  +
  1789.  +};
  1790. -diff -urN xpdf-0.80.orig/xpdf/pdftops.cc xpdf-0.80/xpdf/pdftops.cc
  1791. ---- xpdf-0.80.orig/xpdf/pdftops.cc    Sat Nov 28 13:42:16 1998
  1792. -+++ xpdf-0.80/xpdf/pdftops.cc    Wed Dec 16 17:03:01 1998
  1793. +diff -u -b -B -r -N -w xpdf-0.80/xpdf/pdftops.cc xpdf-0.80-decrypt/xpdf/pdftops.cc
  1794. +--- xpdf-0.80/xpdf/pdftops.cc   Tue Apr 27 18:54:22 1999
  1795. ++++ xpdf-0.80-decrypt/xpdf/pdftops.cc   Wed Jul  7 21:07:05 1999
  1796.  @@ -68,6 +68,7 @@
  1797.     if (!ok || argc < 2 || argc > 3 || printHelp) {
  1798.       fprintf(stderr, "pdftops version %s\n", xpdfVersion);
  1799. @@ -1269,9 +2679,9 @@
  1800.       printUsage("pdftops", "<PDF-file> [<PS-file>]", argDesc);
  1801.       exit(1);
  1802.     }
  1803. -diff -urN xpdf-0.80.orig/xpdf/pdftotext.cc xpdf-0.80/xpdf/pdftotext.cc
  1804. ---- xpdf-0.80.orig/xpdf/pdftotext.cc    Sat Nov 28 13:42:16 1998
  1805. -+++ xpdf-0.80/xpdf/pdftotext.cc    Wed Dec 16 17:03:01 1998
  1806. +diff -u -b -B -r -N -w xpdf-0.80/xpdf/pdftotext.cc xpdf-0.80-decrypt/xpdf/pdftotext.cc
  1807. +--- xpdf-0.80/xpdf/pdftotext.cc Tue Apr 27 18:54:22 1999
  1808. ++++ xpdf-0.80-decrypt/xpdf/pdftotext.cc Wed Jul  7 21:07:06 1999
  1809.  @@ -59,6 +59,7 @@
  1810.     if (!ok || argc < 2 || argc > 3 || printHelp) {
  1811.       fprintf(stderr, "pdftotext version %s\n", xpdfVersion);
  1812. @@ -1280,9 +2690,9 @@
  1813.       printUsage("pdftotext", "<PDF-file> [<text-file>]", argDesc);
  1814.       exit(1);
  1815.     }
  1816. -diff -urN xpdf-0.80.orig/xpdf/rc4.cc xpdf-0.80/xpdf/rc4.cc
  1817. ---- xpdf-0.80.orig/xpdf/rc4.cc    Thu Jan  1 10:00:00 1970
  1818. -+++ xpdf-0.80/xpdf/rc4.cc    Wed Dec 16 17:03:01 1998
  1819. +diff -u -b -B -r -N -w xpdf-0.80/xpdf/rc4.cc xpdf-0.80-decrypt/xpdf/rc4.cc
  1820. +--- xpdf-0.80/xpdf/rc4.cc       Thu Jan  1 00:00:00 1970
  1821. ++++ xpdf-0.80-decrypt/xpdf/rc4.cc       Wed Jul  7 21:07:06 1999
  1822.  @@ -0,0 +1,70 @@
  1823.  +/************************************************************************
  1824.  + *                                    *
  1825. @@ -1354,9 +2764,9 @@
  1826.  +    rc4->x = x;
  1827.  +    rc4->y = y;
  1828.  +}
  1829. -diff -urN xpdf-0.80.orig/xpdf/rc4.h xpdf-0.80/xpdf/rc4.h
  1830. ---- xpdf-0.80.orig/xpdf/rc4.h    Thu Jan  1 10:00:00 1970
  1831. -+++ xpdf-0.80/xpdf/rc4.h    Wed Dec 16 17:03:01 1998
  1832. +diff -u -b -B -r -N -w xpdf-0.80/xpdf/rc4.h xpdf-0.80-decrypt/xpdf/rc4.h
  1833. +--- xpdf-0.80/xpdf/rc4.h        Thu Jan  1 00:00:00 1970
  1834. ++++ xpdf-0.80-decrypt/xpdf/rc4.h        Wed Jul  7 21:07:06 1999
  1835.  @@ -0,0 +1,25 @@
  1836.  +#include <limits.h>
  1837.  +
  1838. @@ -1383,9 +2793,9 @@
  1839.  +void rc4ExpandKey( RC4KEY *rc4, unsigned char const *key, int keylen );
  1840.  +void rc4Crypt( RC4KEY *rc4, unsigned char *data, int len );
  1841.  +#endif
  1842. -diff -urN xpdf-0.80.orig/xpdf/xpdf.cc xpdf-0.80/xpdf/xpdf.cc
  1843. ---- xpdf-0.80.orig/xpdf/xpdf.cc    Sat Nov 28 13:42:16 1998
  1844. -+++ xpdf-0.80/xpdf/xpdf.cc    Wed Dec 16 17:03:01 1998
  1845. +diff -u -b -B -r -N -w xpdf-0.80/xpdf/xpdf.cc xpdf-0.80-decrypt/xpdf/xpdf.cc
  1846. +--- xpdf-0.80/xpdf/xpdf.cc      Tue Apr 27 18:54:23 1999
  1847. ++++ xpdf-0.80-decrypt/xpdf/xpdf.cc      Wed Jul  7 21:07:06 1999
  1848.  @@ -334,6 +334,7 @@
  1849.     if (!ok || printHelp) {
  1850.       fprintf(stderr, "xpdf version %s\n", xpdfVersion);
  1851. @@ -1402,110 +2812,3 @@
  1852.   
  1853.     // open PDF file
  1854.     defPSFileName = app->getStringResource("psFile", NULL);
  1855. -diff -urN xpdf-0.80.orig/README.decryption xpdf-0.80/README.decryption
  1856. ---- xpdf-0.80.orig/README.decryption    Thu Jan  1 10:00:00 1970
  1857. -+++ xpdf-0.80/README.decryption    Wed Dec 16 17:03:01 1998
  1858. -@@ -0,0 +1,103 @@
  1859. -+xpdf version 0.80 with decryption patches
  1860. -+
  1861. -+With the release of version 0.80 of xpdf, I have retaken the decryption patch
  1862. -+for this new version.
  1863. -+
  1864. -+Due to the changes that came with the 0.80 release, some re-working of parts of
  1865. -+the decryption code became necessary in order to make it all work.
  1866. -+
  1867. -+Most of the comments (below) for version 0.7a still apply.
  1868. -+
  1869. -+DISCLAIMER:  I know next to nothing about decryption.  All I did was hack the
  1870. -+code to make it work.
  1871. -+
  1872. -+Tony Nugent <Tony.Nugent@usq.edu.au>
  1873. -+December 1998
  1874. -+
  1875. -+==========================================================================
  1876. -+
  1877. -+xpdf version 0.7a with decryption patches
  1878. -+
  1879. -+Author:        Derek B. Noonburg <derekn@foolabs.com>
  1880. -+URL:        http://www.foolabs.com/xpdf/
  1881. -+Sources:    ftp://ftp.foolabs.com/pub/xpdf/xpdf-0.7a.tar.gz
  1882. -+        ftp://ftp.foolabs.com/pub/xpdf/xpdf-0.7a-patch1
  1883. -+        ftp://ftp.foolabs.com/pub/xpdf/xpdf-0.7a-patch2
  1884. -+        ftp://ftp.sci.usq.edu.au/pub/linux/xpdf/xpdf-0.7a-patch3
  1885. -+Packager:    Tony Nugent <Tony.Nugent@usq.edu.au>
  1886. -+
  1887. -+This is a xpdf version 0.7a, but with the Makefile, divide-by-zero, and
  1888. -+decryption patches added to it.
  1889. -+
  1890. -+For the reasons why xpdf, as distributed, is not capable of handling
  1891. -+encrypted pdf files, please see:
  1892. -+
  1893. -+http://www.foolabs.com/xpdf/decryption.html
  1894. -+
  1895. -+What I have done is to add the decryption patches, and make all the sources
  1896. -+available in a place off the US continent.
  1897. -+
  1898. -+This was born out of personal necessity... I had an encrypted pdf file that
  1899. -+I *HAD* to read, so I went off to get the decryption patches for it from:
  1900. -+
  1901. -+http://people.a2000.nl/lsmiers/pdf/xpdf.html
  1902. -+
  1903. -+The patches were made available by Leo Smiers <L.Smiers@cable.A2000.nl> (in
  1904. -+Europe, a place that also avoids problems with the senseless US exportation
  1905. -+laws on encryption code).  Everything that was needed was in a file called
  1906. -+"encryption.tar.gz", but I found that they didn't apply easily or cleanly,
  1907. -+and it also involved "dropping in" some files into the xpdf source tree.
  1908. -+
  1909. -+Once I got it working, I simply retook the patch again so that all the
  1910. -+source files and patches were all included in one file.
  1911. -+
  1912. -+Now all that is needed is "patch -p1 < patchfile" and everything is done.
  1913. -+(Then you "configure" and "make" as usual).
  1914. -+
  1915. -+I then grabbed xpdf-0.7a-1.src.rpm from RedHat's "rawhide" ("5.2-beta")
  1916. -+distribution and made some minor changes to it so that a decryption-capable
  1917. -+version could be easily rebuilt from a .spec file.
  1918. -+
  1919. -+So that's what I did, and this is the result.  It seems to work just fine.
  1920. -+
  1921. -+I did some minor changes to RedHat's .spec file in the rpm so that it is
  1922. -+installed into /usr/X11R6/bin rather than /usr/bin and also to put the
  1923. -+ANNOUNCE file into the /usr/doc/xpdf-0.7a/ directory.
  1924. -+
  1925. -+I have contacted Derek (the author of xpdf) and got his blessing for what
  1926. -+I've done.  I've also tried to contact Leo (from who's web site I got the
  1927. -+decryption patches), but in almost two months he has not replied.
  1928. -+
  1929. -+I wrote this README file to document what I've done, then did some
  1930. -+some teaking of the rpm spec file to get this added to the installation
  1931. -+documation directory.
  1932. -+
  1933. -+From my understanding of the US laws on the export of encryption code,
  1934. -+export of the sources for this patched version of the package is not
  1935. -+permitted from the United States in electronic format.  (If you do this,
  1936. -+you are considered to be an arms dealer!) As I understand it, the
  1937. -+restrictions apply to taking such code *out* of the US in electronic
  1938. -+format, not importing it nor taking it out in printed format.
  1939. -+
  1940. -+I don't live in the United States and we don't have silly laws like this
  1941. -+here in Australia, so I can do what I like with these sources.
  1942. -+
  1943. -+I'm quite happy to put the resulting patch and the source and (glibc6)
  1944. -+binary RPM files up on our web site and ftp server for general
  1945. -+distribution.
  1946. -+
  1947. -+I will submitted the rpm packages to RedHat, leaving it up to them to do
  1948. -+what they want (err... can) with it.  They might be able to use the binary
  1949. -+version, but the probably won't be legally able to redistribute it (to
  1950. -+places outside the US).
  1951. -+
  1952. -+Derek's web pages for xpdf are an excellent resource which I would strongly
  1953. -+recommend a visit to it:
  1954. -+
  1955. -+http://www.foolabs.com/xpdf/
  1956. -+
  1957. -+ -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
  1958. -+  Tony Nugent <Tony.Nugent@usq.edu.au>           <linux@usq.edu.au>
  1959. -+  Computer Systems Officer                       Faculty of Science
  1960. -+  University of Southern Queensland, Toowoomba Oueensland Australia
  1961. -+ -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
  1962.