Debian Codegraph @

debian/patches/debian-changes

raw symbols SCIP
1 Description: Autogenerated patch header for a single-debian-patch file.
2 The delta against upstream is either kept as a single patch, or maintained
3 in some VCS, and exported as a single patch instead of more manageable
4 atomic patches.
5 Forwarded: not-needed
6
7 ---
8 --- libmcrypt-2.5.8.orig/Makefile.am
9 +++ libmcrypt-2.5.8/Makefile.am
10 @@ -1,9 +1,21 @@
11 ## Process this file with automake to produce Makefile.in
12 -
13 -INCLUDES = $(INCLTDL)
14 +ACLOCAL_AMFLAGS = -I m4
15 +AM_CPPFLAGS = $(INCLTDL)
16 +mcrypt.pc:
17 + echo 'prefix=$(prefix)' > $@
18 + echo 'exec_prefix=$(exec_prefix)' >> $@
19 + echo 'includedir=$(includedir)' >> $@
20 + echo 'libdir=$(libdir)' >> $@
21 + echo >> $@
22 + echo 'Name: $(PACKAGE_TARNAME)' >> $@
23 + echo 'Description: $(PACKAGE_NAME)' >> $@
24 + echo 'URL: $(PACKAGE_URL)' >> $@
25 + echo 'Version: $(PACKAGE_VERSION)' >> $@
26 + echo 'Cflags: -I${includedir}' >> $@
27 + echo 'Libs: -L${libdir} -lmcrypt' >> $@
28 + echo 'Libs.private: $(LDFLAGS) $(LIBS)' >> $@
29 +pkgconfig_DATA = mcrypt.pc
30 +MOSTLYCLEANFILES = $(pkgconfig_DATA)
31 EXTRA_DIST = KNOWN-BUGS THANKS NEWS libmcrypt.spec.in libmcrypt.spec COPYING.LIB
32 -DIST_SUBDIRS = libltdl modules include lib src doc
33 +DIST_SUBDIRS = $(LIBLTDL_DIR) modules include lib src doc
34 SUBDIRS = $(LIBLTDL_DIR) modules include lib src doc
35 -
36 -ChangeLog:
37 - cvs2cl --utc --fsf -t -S --prune
38 --- /dev/null
39 +++ libmcrypt-2.5.8/configure.ac
40 @@ -0,0 +1,240 @@
41 +dnl Process this file with autoconf to produce a configure script.
42 +AC_PREREQ([2.69])
43 +AC_INIT([libmcrypt],[2.5.8])
44 +AC_CONFIG_MACRO_DIRS([m4])
45 +AC_CONFIG_SRCDIR([lib/mcrypt.c])
46 +
47 +LIBMCRYPT_MAJOR_VERSION=2
48 +LIBMCRYPT_MINOR_VERSION=5
49 +LIBMCRYPT_MICRO_VERSION=8
50 +LIBMCRYPT_VERSION=$LIBMCRYPT_MAJOR_VERSION.$LIBMCRYPT_MINOR_VERSION.$LIBMCRYPT_MICRO_VERSION
51 +
52 +LIBMCRYPT_MOST_RECENT_INTERFACE=8
53 +LIBMCRYPT_CURRENT_INTERFACE_IMPLEMENTATION_NUMBER=$LIBMCRYPT_MICRO_VERSION
54 +LIBMCRYPT_OLDEST_INTERFACE=4
55 +
56 +AC_CANONICAL_TARGET
57 +AM_INIT_AUTOMAKE([foreign -Wall])
58 +AC_CONFIG_HEADERS([config.h])
59 +
60 +AC_PROG_MAKE_SET
61 +
62 +AC_PROG_CXX
63 +AC_PROG_CC
64 +AC_PROG_CPP
65 +AC_PROG_INSTALL
66 +AC_PROG_LN_S
67 +AC_PROG_MAKE_SET
68 +AM_PROG_AR
69 +
70 +PKG_INSTALLDIR
71 +
72 +AX_CFLAGS_WARN_ALL
73 +AX_CHECK_COMPILE_FLAG([-Wextra], [CFLAGS="${CFLAGS} -Wextra"])
74 +AX_CHECK_COMPILE_FLAG([-pedantic], [CFLAGS="${CFLAGS} -pedantic"])
75 +
76 +case "$host_os" in
77 + *w32*)
78 + LDFLAGS="$LDFLAGS -no-undefined"
79 + AC_DEFINE( WIN32, 1, [whether win32 environment])
80 + ;;
81 + *win32*)
82 + LDFLAGS="$LDFLAGS -no-undefined"
83 + AC_DEFINE( WIN32, 1, [whether win32 environment])
84 + ;;
85 + cygwin*)
86 + LDFLAGS="$LDFLAGS -enable-runtime-pseudo-reloc -no-undefined"
87 + AC_DEFINE( WIN32, 1, [whether win32 environment])
88 + ;;
89 + mingw*)
90 + LDFLAGS="$LDFLAGS -enable-runtime-pseudo-reloc -no-undefined"
91 + AC_DEFINE( WIN32, 1, [whether win32 environment])
92 + ;;
93 +esac
94 +
95 +dnl Checks for programs.
96 +AC_PROG_INSTALL
97 +AC_PROG_LN_S
98 +
99 +opt_dmalloc_mode=no
100 +AC_MSG_CHECKING([whether in dmalloc mode])
101 +AC_ARG_ENABLE(dmalloc-mode,
102 +[ --enable-dmalloc-mode enable dmalloc mode],
103 +opt_dmalloc_mode=$enableval)
104 +AC_MSG_RESULT($opt_dmalloc_mode)
105 +
106 +
107 +if test x$ac_cv_c_compiler_gnu = xyes; then
108 + if test x$opt_dmalloc_mode = xyes; then
109 + AC_CHECK_LIB( dmalloc, main)
110 + AC_DEFINE(USE_DMALLOC, 1, [dmalloc])
111 + fi
112 +fi
113 +
114 +opt_enable_ltdl=no
115 +AC_MSG_CHECKING([whether to enable dynamic module loading])
116 +AC_ARG_ENABLE(dynamic-loading,
117 +[ --enable-dynamic-loading enable dynamic module loading],
118 +opt_enable_ltdl=$enableval)
119 +AC_MSG_RESULT($opt_enable_ltdl)
120 +
121 +MCRYPT_MODE_MODULES="cbc cfb ctr ecb ncfb nofb ofb stream"
122 +MCRYPT_ALGORITHM_MODULES="threeway cast-128 gost rijndael-128 safer-sk64 twofish \
123 + arcfour cast-256 loki97 rijndael-192 saferplus wake \
124 + blowfish-compat des rijndael-256 serpent xtea \
125 + blowfish enigma rc2 safer-sk128 tripledes"
126 +
127 +
128 +LT_INIT([dlopen],[win32-dll])
129 +LT_CONFIG_LTDL_DIR([libltdl])
130 +LTDL_INIT
131 +
132 +if test "x$opt_enable_ltdl" != xno; then
133 + touch lib/mcrypt_internal.h
134 +
135 + AC_CHECK_LIB( ltdl, lt_dlmutex_register, AC_DEFINE(DLMUTEX, 1, [dlmutex]))
136 +
137 +_LTDL_CONVENIENCE
138 + _LT_CONFIG_LTDL_DIR([m4_default([], [libltdl])])
139 +_LTDL_INSTALLABLE
140 + AC_SUBST(INCLTDL)
141 + AC_SUBST(LIBLTDL)
142 + LIBLTDL_DIR=libltdl
143 + AC_SUBST(LIBLTDL_DIR)
144 +
145 + AC_DISABLE_STATIC
146 +
147 + AC_DEFINE(USE_LTDL, 1, [use libltdl])
148 +
149 + if test x$LIBLTDL = x; then
150 + :
151 + else
152 + LTLIBS="-lltdl"
153 + fi
154 + opt_include_algos=no
155 +
156 +# create the names of the .la libraries to install
157 + for i in $MCRYPT_ALGORITHM_MODULES
158 + do \
159 + INSTALL_ALGORITHM_MODULES="$INSTALL_ALGORITHM_MODULES $i.la"
160 + done
161 +
162 + for i in $MCRYPT_MODE_MODULES
163 + do \
164 + INSTALL_MODE_MODULES="$INSTALL_MODE_MODULES $i.la"
165 + done
166 +
167 + AC_SUBST(INSTALL_ALGORITHM_MODULES)
168 + AC_SUBST(INSTALL_MODE_MODULES)
169 +
170 +else
171 + for i in $MCRYPT_ALGORITHM_MODULES
172 + do \
173 + NOINSTALL_ALGORITHM_MODULES="$NOINSTALL_ALGORITHM_MODULES $i.la"
174 + done
175 +
176 + for i in $MCRYPT_MODE_MODULES
177 + do \
178 + NOINSTALL_MODE_MODULES="$NOINSTALL_MODE_MODULES $i.la"
179 + done
180 +
181 + AC_SUBST(NOINSTALL_ALGORITHM_MODULES)
182 + AC_SUBST(NOINSTALL_MODE_MODULES)
183 +
184 + opt_include_algos="$MCRYPT_MODE_MODULES $MCRYPT_ALGORITHM_MODULES"
185 + echo "***"
186 + echo "*** Dynamic loading has been disabled"
187 +fi
188 +
189 +AC_MSG_CHECKING([which algorithms to include into library])
190 +AC_ARG_WITH(included-algos,
191 +[ --with-included-algos=algo1,algo2,... include algorithms/modes into the library],
192 +touch lib/mcrypt_internal.h
193 +opt_include_algos=$withval)
194 +
195 +if test "x$opt_include_algos" = xyes; then
196 + opt_include_algos=""
197 +fi
198 +if test "x$opt_include_algos" = xno; then
199 + opt_include_algos=""
200 +fi
201 +
202 +
203 +EXTRA_OBJECTS=""
204 +ALG=`echo -n $opt_include_algos|sed "s/,/ /g"|sed "s/\n/ /g"`
205 +for i in $ALG
206 +do \
207 +test -f modules/algorithms/$i.c && EXTRA_OBJECTS="$EXTRA_OBJECTS ../modules/algorithms/$i.lo"
208 +test -f modules/modes/$i.c && EXTRA_OBJECTS="$EXTRA_OBJECTS ../modules/modes/$i.lo"
209 +done
210 +
211 +AC_MSG_RESULT($opt_include_algos)
212 +
213 +
214 +EXTRA_ALGOS=$ALG
215 +AC_SUBST(EXTRA_ALGOS)
216 +AC_SUBST(EXTRA_OBJECTS)
217 +
218 +AC_SUBST(LIBMCRYPT_MAJOR_VERSION)
219 +AC_SUBST(LIBMCRYPT_MINOR_VERSION)
220 +AC_SUBST(LIBMCRYPT_MICRO_VERSION)
221 +AC_SUBST(LIBMCRYPT_VERSION)
222 +
223 +AC_SUBST(LIBMCRYPT_MOST_RECENT_INTERFACE)
224 +AC_SUBST(LIBMCRYPT_CURRENT_INTERFACE_IMPLEMENTATION_NUMBER)
225 +AC_SUBST(LIBMCRYPT_OLDEST_INTERFACE)
226 +
227 +LT_CURRENT=$LIBMCRYPT_MOST_RECENT_INTERFACE
228 +LT_REVISION=$LIBMCRYPT_CURRENT_INTERFACE_IMPLEMENTATION_NUMBER
229 +LT_AGE=`expr $LIBMCRYPT_MOST_RECENT_INTERFACE - $LIBMCRYPT_OLDEST_INTERFACE`
230 +AC_SUBST(LT_CURRENT)
231 +AC_SUBST(LT_REVISION)
232 +AC_SUBST(LT_AGE)
233 +AC_INCLUDES_DEFAULT
234 +AC_HEADER_DIRENT
235 +AC_C_INLINE
236 +AC_C_CONST
237 +
238 +AC_CHECK_HEADERS([argz.h byteswap.h dirent.h dlfcn.h endian.h malloc.h])
239 +AC_CHECK_HEADERS([sys/endian.h sys/mman.h])
240 +AC_CHECK_HEADERS([limits.h])
241 +
242 +AC_FUNC_MALLOC
243 +AC_FUNC_MEMCMP
244 +AC_FUNC_REALLOC
245 +
246 +AC_CHECK_FUNCS([bzero memmove memset mlock readdir_r strchr strdup strrchr])
247 +AC_CHECK_FUNCS([readdir,,])
248 +AC_CHECK_FUNCS([bcopy,,])
249 +
250 +dnl Checks for libraries.
251 +AC_C_BIGENDIAN
252 +AC_CHECK_SIZEOF([unsigned long int], [4])
253 +AC_CHECK_SIZEOF([unsigned int], [4])
254 +AC_CHECK_SIZEOF([unsigned short int], [2])
255 +AC_CHECK_SIZEOF([unsigned char], [1])
256 +
257 +AC_SUBST(LIBTOOL_DEPS)
258 +
259 +
260 +LIBMCRYPT_LIBS="$LIBS -L${libdir} -lmcrypt $LTLIBS"
261 +LIBMCRYPT_CFLAGS="-I${includedir}"
262 +AC_SUBST(LIBMCRYPT_LIBS)
263 +AC_SUBST(LIBMCRYPT_CFLAGS)
264 +
265 +AC_CONFIG_COMMANDS([default-1],[[
266 + chmod +x lib/libmcrypt-config
267 +]],[[]])
268 +
269 +AC_CONFIG_FILES([Makefile
270 + libmcrypt.spec
271 + lib/Makefile
272 + doc/Makefile
273 + src/Makefile
274 + include/mutils/mcrypt.h
275 + include/Makefile
276 + modules/Makefile
277 + modules/modes/Makefile
278 + modules/algorithms/Makefile
279 + lib/libmcrypt-config])
280 +AC_OUTPUT
281 --- libmcrypt-2.5.8.orig/doc/mcrypt.3
282 +++ libmcrypt-2.5.8/doc/mcrypt.3
283 @@ -50,7 +50,7 @@ here is CAST-128 (also called CAST5) whi
284
285 .B CAST-256:
286 CAST-256 was designed by Carlisle Adams. It is a symmetric cipher designed in
287 -accordance with the CAST design procedure. It is an extention of
288 +accordance with the CAST design procedure. It is an extension of
289 the CAST-128, having a 128 bit block size, and up to 256 bit key size.
290
291 .B xTEA:
292 --- libmcrypt-2.5.8.orig/include/Makefile.am
293 +++ libmcrypt-2.5.8/include/Makefile.am
294 @@ -1,5 +1,2 @@
295 nobase_include_HEADERS = mcrypt.h mutils/mcrypt.h
296
297 -dist-hook:
298 - find $(distdir) -name CVS -o -name .cvsignore | xargs rm -rf
299 -
300 --- libmcrypt-2.5.8.orig/lib/Makefile.am
301 +++ libmcrypt-2.5.8/lib/Makefile.am
302 @@ -1,16 +1,17 @@
303 DEFS = @DEFS@ -DLIBDIR=\"$(libdir)/@PACKAGE@/\"
304 -INCLUDES = -I. -I.. $(INCLTDL) -I../modules/algorithms -I../modules/modes
305 +AM_CPPFLAGS = -I. -I.. $(INCLTDL) -I../modules/algorithms -I../modules/modes
306 EXTRA_DIST = libdefs.h bzero.h xmemory.h mcrypt_modules.h mcrypt_internal.h \
307 libmcrypt.sym win32_comp.h mcrypt.h.in libmcrypt-config.in libmcrypt.m4
308 lib_LTLIBRARIES = libmcrypt.la
309
310 -libmcrypt_la_SOURCES = mcrypt_extra.c mcrypt.c bzero.c xmemory.c mcrypt_modules.c win32_comp.c mcrypt_threads.c \
311 +libmcrypt_la_SOURCES = mcrypt_extra.c mcrypt.c bzero.c xmemory.c \
312 + mcrypt_modules.c win32_comp.c mcrypt_threads.c \
313 mcrypt_symb.c
314
315 -libmcrypt_la_LDFLAGS = \
316 +libmcrypt_la_LDFLAGS = -enable-runtime-pseudo-reloc -no-undefined \
317 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
318 - -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
319 - -export-symbols libmcrypt.sym @LIBLTDL@
320 + -export-symbols libmcrypt.sym @LIBLTDL@ \
321 + -Wl,--out-implib,libmcrypt.a
322 libmcrypt_la_LIBADD = @EXTRA_OBJECTS@
323
324 m4datadir = $(datadir)/aclocal
325 @@ -23,8 +24,8 @@ mcrypt_symb.c: mcrypt_internal.h
326 @echo "/* This is automatically created. Don't touch... */" >> mcrypt_symb.c
327 @echo "" >> mcrypt_symb.c
328 -@for i in $(EXTRA_ALGOS); do \
329 - if test -f ../modules/algorithms/$$i.c; then cat ../modules/algorithms/$$i.c 2>/dev/null|grep define|grep LTX|awk '{print "extern "$$3"();";}' >> mcrypt_symb.c 2>/dev/null; fi; \
330 - if test -f ../modules/modes/$$i.c; then cat ../modules/modes/$$i.c 2>/dev/null|grep define|grep LTX|awk '{print "extern "$$3"();";}' >> mcrypt_symb.c 2>/dev/null; fi; \
331 + if test -f ../modules/algorithms/$$i.c; then cat ../modules/algorithms/$$i.c 2>/dev/null|grep define|grep LTX|awk '{print "extern int "$$3"();";}' >> mcrypt_symb.c 2>/dev/null; fi; \
332 + if test -f ../modules/modes/$$i.c; then cat ../modules/modes/$$i.c 2>/dev/null|grep define|grep LTX|awk '{print "extern int "$$3"();";}' >> mcrypt_symb.c 2>/dev/null; fi; \
333 done
334 @echo "" >> mcrypt_symb.c
335 @echo "const mcrypt_preloaded mps[] = {" >> mcrypt_symb.c
336 --- libmcrypt-2.5.8.orig/lib/mcrypt_modules.h
337 +++ libmcrypt-2.5.8/lib/mcrypt_modules.h
338 @@ -1,7 +1,7 @@
339 -#define rotl32(x,n) (((x) << ((word32)(n))) | ((x) >> (32 - (word32)(n))))
340 -#define rotr32(x,n) (((x) >> ((word32)(n))) | ((x) << (32 - (word32)(n))))
341 -#define rotl16(x,n) (((x) << ((word16)(n))) | ((x) >> (16 - (word16)(n))))
342 -#define rotr16(x,n) (((x) >> ((word16)(n))) | ((x) << (16 - (word16)(n))))
343 +#define rotl32(x,n) (((x) << ((word32)(n & 31))) | ((x) >> (32 - (word32)(n & 31))))
344 +#define rotr32(x,n) (((x) >> ((word32)(n & 31))) | ((x) << (32 - (word32)(n & 31))))
345 +#define rotl16(x,n) (((x) << ((word16)(n & 15))) | ((x) >> (16 - (word16)(n & 15))))
346 +#define rotr16(x,n) (((x) >> ((word16)(n & 15))) | ((x) << (16 - (word16)(n & 15))))
347
348 /* Use hardware rotations.. when available */
349 #ifdef swap32
350 --- libmcrypt-2.5.8.orig/modules/algorithms/3-way.c
351 +++ libmcrypt-2.5.8/modules/algorithms/3-way.c
352 @@ -69,7 +69,7 @@ void mu(word32 * a)
353 a[2] = b[2];
354 }
355
356 -void gamma(word32 * a)
357 +void gamma3w(word32 * a)
358 { /* the nonlinear step */
359 word32 b[3];
360
361 @@ -130,7 +130,7 @@ void rho(word32 * a)
362 { /* the round function */
363 theta(a);
364 pi_1(a);
365 - gamma(a);
366 + gamma3w(a);
367 pi_2(a);
368 }
369
370 --- libmcrypt-2.5.8.orig/modules/algorithms/Makefile.am
371 +++ libmcrypt-2.5.8/modules/algorithms/Makefile.am
372 @@ -1,6 +1,6 @@
373 ## Process this file with automake to produce Makefile.in
374 DEFS = @DEFS@
375 -INCLUDES = -I. -I../.. $(INCLTDL) -I../../lib
376 +AM_CPPFLAGS = -I. -I../.. $(INCLTDL) -I../../lib
377
378 EXTRA_DIST = twofish.h saferplus.h rijndael.h \
379 rc2.h serpent.h cast-256.h blowfish.h \
380 @@ -19,48 +19,48 @@ EXTRA_LTLIBRARIES = twofish.la rijndael-
381 noinst_LTLIBRARIES = @NOINSTALL_ALGORITHM_MODULES@
382
383 twofish_la_SOURCES = twofish.c
384 -twofish_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
385 +twofish_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
386 wake_la_SOURCES = wake.c
387 -wake_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
388 +wake_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
389 panama_la_SOURCES = panama.c
390 -panama_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
391 +panama_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
392 rijndael_128_la_SOURCES = rijndael-128.c
393 -rijndael_128_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
394 +rijndael_128_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
395 rijndael_192_la_SOURCES = rijndael-192.c
396 -rijndael_192_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
397 +rijndael_192_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
398 rijndael_256_la_SOURCES = rijndael-256.c
399 -rijndael_256_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
400 +rijndael_256_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
401 saferplus_la_SOURCES = saferplus.c
402 -saferplus_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
403 +saferplus_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
404 serpent_la_SOURCES = serpent.c
405 -serpent_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
406 +serpent_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
407 xtea_la_SOURCES = xtea.c
408 -xtea_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
409 +xtea_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
410 rc2_la_SOURCES = rc2.c
411 -rc2_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
412 +rc2_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
413 safer_sk64_la_SOURCES = safer64.c
414 -safer_sk64_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
415 +safer_sk64_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
416 safer_sk128_la_SOURCES = safer128.c
417 -safer_sk128_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
418 +safer_sk128_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
419 cast_256_la_SOURCES = cast-256.c
420 -cast_256_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
421 +cast_256_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
422 loki97_la_SOURCES = loki97.c
423 -loki97_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
424 +loki97_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
425 gost_la_SOURCES = gost.c
426 -gost_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
427 +gost_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
428 threeway_la_SOURCES = 3-way.c
429 -threeway_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
430 +threeway_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
431 blowfish_la_SOURCES = blowfish.c
432 -blowfish_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
433 +blowfish_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
434 blowfish_compat_la_SOURCES = blowfish-compat.c
435 -blowfish_compat_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
436 +blowfish_compat_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
437 cast_128_la_SOURCES = cast-128.c
438 -cast_128_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
439 +cast_128_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
440 des_la_SOURCES = des.c
441 -des_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
442 +des_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
443 tripledes_la_SOURCES = tripledes.c
444 -tripledes_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
445 +tripledes_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
446 enigma_la_SOURCES = enigma.c
447 -enigma_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
448 +enigma_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
449 arcfour_la_SOURCES = arcfour.c
450 -arcfour_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
451 +arcfour_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
452 --- libmcrypt-2.5.8.orig/modules/algorithms/cast-128.c
453 +++ libmcrypt-2.5.8/modules/algorithms/cast-128.c
454 @@ -317,7 +317,7 @@ WIN32DLL_DEFINE int _mcrypt_get_key_size
455 return 16;
456 }
457
458 -static const int key_sizes[] = { 16 };
459 +static const int key_sizes[] = { 5, 10, 16 };
460 WIN32DLL_DEFINE const int *_mcrypt_get_supported_key_sizes(int *len)
461 {
462 *len = sizeof(key_sizes)/sizeof(int);
463 --- libmcrypt-2.5.8.orig/modules/algorithms/des.c
464 +++ libmcrypt-2.5.8/modules/algorithms/des.c
465 @@ -35,9 +35,12 @@
466
467 /* #define NULL 0 */
468
469 -static void permute_ip(), permute_fp(), perminit_ip(), spinit(),
470 -perminit_fp();
471 -static word32 f();
472 +static void permute_ip(char *, DES_KEY *, char *);
473 +static void permute_fp(char *, DES_KEY *, char *);
474 +static void perminit_ip(DES_KEY *);
475 +static void spinit(DES_KEY *);
476 +static void perminit_fp(DES_KEY *);
477 +static word32 f(DES_KEY *, register word32, register char *);
478
479
480 /* Tables defined in the Data Encryption Standard documents */
481 --- libmcrypt-2.5.8.orig/modules/algorithms/tripledes.c
482 +++ libmcrypt-2.5.8/modules/algorithms/tripledes.c
483 @@ -36,8 +36,10 @@
484
485 /* #define NULL 0 */
486
487 -static void permute(), perminit(), spinit();
488 -static word32 f();
489 +static void permute(char *, char[16][16][8], char *);
490 +static void perminit(char[16][16][8], char[64]);
491 +static void spinit(TRIPLEDES_KEY *, int);
492 +static word32 f(TRIPLEDES_KEY *, int, register word32, register char *);
493
494
495 /* Tables defined in the Data Encryption Standard documents */
496 @@ -199,8 +201,8 @@ static int _mcrypt_desinit(TRIPLEDES_KEY
497 spinit(key, 0);
498 spinit(key, 1);
499 spinit(key, 2);
500 - perminit(&key->iperm, ip);
501 - perminit(&key->fperm, fp);
502 + perminit(&key->iperm[0], ip);
503 + perminit(&key->fperm[0], fp);
504
505
506 return 0;
507 --- libmcrypt-2.5.8.orig/modules/algorithms/twofish.c
508 +++ libmcrypt-2.5.8/modules/algorithms/twofish.c
509 @@ -499,7 +499,7 @@ static void f_rnd(int i, word32* blk, TW
510 /* encrypt a block of text */
511 WIN32DLL_DEFINE void _mcrypt_encrypt(TWI * pkey, word32 * in_blk)
512 {
513 - word32 t0, t1, blk[4];
514 + word32 t0 = 0, t1 = 0, blk[4];
515 #ifdef WORDS_BIGENDIAN
516 blk[0] = byteswap32(in_blk[0]) ^ pkey->l_key[0];
517 blk[1] = byteswap32(in_blk[1]) ^ pkey->l_key[1];
518 --- libmcrypt-2.5.8.orig/modules/modes/Makefile.am
519 +++ libmcrypt-2.5.8/modules/modes/Makefile.am
520 @@ -1,6 +1,6 @@
521 ## Process this file with automake to produce Makefile.in
522 DEFS = @DEFS@
523 -INCLUDES = -I. -I../.. $(INCLTDL) -I../../lib
524 +AM_CPPFLAGS = -I. -I../.. $(INCLTDL) -I../../lib
525
526 EXTRA_DIST = ofb.h cfb.h nofb.h cbc.h ecb.h stream.h ncfb.h ctr.h
527 pkglib_LTLIBRARIES = @INSTALL_MODE_MODULES@
528 @@ -10,18 +10,18 @@ EXTRA_LTLIBRARIES = ofb.la cfb.la nofb.l
529 noinst_LTLIBRARIES = @NOINSTALL_MODE_MODULES@
530
531 ofb_la_SOURCES = ofb.c
532 -ofb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
533 +ofb_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
534 ctr_la_SOURCES = ctr.c
535 -ctr_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
536 +ctr_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
537 cfb_la_SOURCES = cfb.c
538 -cfb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
539 +cfb_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
540 ncfb_la_SOURCES = ncfb.c
541 -ncfb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
542 +ncfb_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
543 nofb_la_SOURCES = nofb.c
544 -nofb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
545 +nofb_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
546 ecb_la_SOURCES = ecb.c
547 -ecb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
548 +ecb_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
549 cbc_la_SOURCES = cbc.c
550 -cbc_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
551 +cbc_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)
552 stream_la_SOURCES = stream.c
553 -stream_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
554 +stream_la_LDFLAGS = -module -avoid-version -no-undefined -rpath $(pkglibdir)