Segfault bugfix thanks to Oliver Metz.
[platform/upstream/cryptsetup.git] / ChangeLog
1 2007-05-01  Clemens Fruhwirth  <clemens@endorphin.org>
2
3         * lib/backends.c, man/cryptsetup.8: Apply patch from Ludwig Nussel
4         <ludwig.nussel@suse.de>, for old SuSE compat hashing.
5
6
7 2007-04-16  Clemens Fruhwirth  <clemens@endorphin.org>
8
9         * Summary of changes in subversion:
10         Fix segfault for key size > 32 bytes.
11         Kick ancient header version conversion. 
12         Fix http://bugs.debian.org/403075
13         No passwort retrying for I/O errors.
14         Fix hang on "-i 0".
15         Fix parenthesization error that prevented --tries from working
16         correctly.
17         
18
19 2006-11-28  gettextize  <bug-gnu-gettext@gnu.org>
20
21         * m4/gettext.m4: Upgrade to gettext-0.15.
22         * m4/glibc2.m4: New file, from gettext-0.15.
23         * m4/intmax.m4: New file, from gettext-0.15.
24         * m4/inttypes-h.m4: New file, from gettext-0.15.
25         * m4/inttypes-pri.m4: Upgrade to gettext-0.15.
26         * m4/lib-link.m4: Upgrade to gettext-0.15.
27         * m4/lib-prefix.m4: Upgrade to gettext-0.15.
28         * m4/lock.m4: New file, from gettext-0.15.
29         * m4/longdouble.m4: New file, from gettext-0.15.
30         * m4/longlong.m4: New file, from gettext-0.15.
31         * m4/nls.m4: Upgrade to gettext-0.15.
32         * m4/po.m4: Upgrade to gettext-0.15.
33         * m4/printf-posix.m4: New file, from gettext-0.15.
34         * m4/signed.m4: New file, from gettext-0.15.
35         * m4/size_max.m4: New file, from gettext-0.15.
36         * m4/visibility.m4: New file, from gettext-0.15.
37         * m4/wchar_t.m4: New file, from gettext-0.15.
38         * m4/wint_t.m4: New file, from gettext-0.15.
39         * m4/xsize.m4: New file, from gettext-0.15.
40         * m4/Makefile.am: New file.
41         * configure.in (AC_OUTPUT): Add m4/Makefile.
42         (AM_GNU_GETTEXT_VERSION): Bump to 0.15.
43
44 2006-10-22  David Härdeman  <david@hardeman.nu>
45
46         * Allow hashing of keys passed through stdin.
47
48 2006-10-13  Clemens Fruhwirth  <clemens@endorphin.org>
49
50         * configure.in: 1.0.4 release
51
52 2006-10-13  Clemens Fruhwirth  <clemens@endorphin.org>
53
54         * man/cryptsetup.8: Document --tries switch; patch by Jonas
55         Meurer.
56
57 2006-10-13  Clemens Fruhwirth  <clemens@endorphin.org>
58
59         * lib/setup.c: Added terminal timeout rewrite as forwarded by
60         Jonas Meurer
61
62 2006-10-04  Clemens Fruhwirth  <clemens@endorphin.org>
63
64         * Merged patch from Marc Merlin <marc@merlins.org> to allow user
65         selection of key slot.
66
67 2006-09-26  gettextize  <bug-gnu-gettext@gnu.org>
68
69         * m4/codeset.m4: Upgrade to gettext-0.14.4.
70         * m4/gettext.m4: Upgrade to gettext-0.14.4.
71         * m4/glibc2.m4: New file, from gettext-0.14.4.
72         * m4/glibc21.m4: Upgrade to gettext-0.14.4.
73         * m4/iconv.m4: Upgrade to gettext-0.14.4.
74         * m4/intdiv0.m4: Upgrade to gettext-0.14.4.
75         * m4/intmax.m4: New file, from gettext-0.14.4.
76         * m4/inttypes.m4: Upgrade to gettext-0.14.4.
77         * m4/inttypes_h.m4: Upgrade to gettext-0.14.4.
78         * m4/inttypes-pri.m4: Upgrade to gettext-0.14.4.
79         * m4/isc-posix.m4: Upgrade to gettext-0.14.4.
80         * m4/lcmessage.m4: Upgrade to gettext-0.14.4.
81         * m4/lib-ld.m4: Upgrade to gettext-0.14.4.
82         * m4/lib-link.m4: Upgrade to gettext-0.14.4.
83         * m4/lib-prefix.m4: Upgrade to gettext-0.14.4.
84         * m4/longdouble.m4: New file, from gettext-0.14.4.
85         * m4/longlong.m4: New file, from gettext-0.14.4.
86         * m4/nls.m4: Upgrade to gettext-0.14.4.
87         * m4/po.m4: Upgrade to gettext-0.14.4.
88         * m4/printf-posix.m4: New file, from gettext-0.14.4.
89         * m4/progtest.m4: Upgrade to gettext-0.14.4.
90         * m4/signed.m4: New file, from gettext-0.14.4.
91         * m4/size_max.m4: New file, from gettext-0.14.4.
92         * m4/stdint_h.m4: Upgrade to gettext-0.14.4.
93         * m4/uintmax_t.m4: Upgrade to gettext-0.14.4.
94         * m4/ulonglong.m4: Upgrade to gettext-0.14.4.
95         * m4/wchar_t.m4: New file, from gettext-0.14.4.
96         * m4/wint_t.m4: New file, from gettext-0.14.4.
97         * m4/xsize.m4: New file, from gettext-0.14.4.
98         * Makefile.am (ACLOCAL_AMFLAGS): New variable.
99         * configure.in (AM_GNU_GETTEXT_VERSION): Bump to 0.14.4.
100
101 2006-08-04  Clemens Fruhwirth  <clemens@endorphin.org>
102
103         * configure.in: 1.0.4-rc2
104
105 2006-08-04  Clemens Fruhwirth  <clemens@endorphin.org>
106
107         * luks/Makefile.am: Add a few regression tests 
108
109 2006-08-04  Clemens Fruhwirth  <clemens@endorphin.org>
110
111         * lib/setup.c (get_key): Applied patch from David Härdeman
112         <david@2gen.com> for reading binary keys from stdin using
113         the "-" as key file.
114
115 2006-08-04  Clemens Fruhwirth  <clemens@endorphin.org>
116
117         * lib/setup.c (__crypt_luks_add_key): For checking options struct
118         (optionsCheck) filter out CRYPT_FLAG_VERIFY and
119         CRYPT_FLAG_VERIFY_IF_POSSIBLE, so that in no case password verification is done
120         for password retrieval.
121         
122 2006-08-04  Clemens Fruhwirth  <clemens@endorphin.org>
123
124         * configure.in: Merge Patch from http://bugs.gentoo.org/show_bug.cgi?id=132126 for sepol
125
126 2006-07-23  Clemens Fruhwirth  <clemens@endorphin.org>
127
128         * Applied patches from David Härdeman <david@2gen.com> to fix 64
129         bit compiler warning issues.
130
131 2006-05-19  Clemens Fruhwirth  <clemens@endorphin.org>
132
133         * Applied patches from Jonas Meurer
134           - fix terminal status after timeout
135           - add remark for --tries to manpage
136           - allow more than 32 chars from standard input.
137           - exit status fix for cryptsetup status.
138         
139 2006-05-06  Clemens Fruhwirth  <clemens@endorphin.org>
140
141         * src/cryptsetup.c (yesDialog): Fix getline problem for 64-bit archs. 
142
143 2006-04-05  Clemens Fruhwirth  <clemens@endorphin.org>
144
145         * configure.in: Release 1.0.3.
146
147         * Applied patch by Johannes Weißl for more meaningful exit codes
148         and password retries
149
150 2006-03-30  Clemens Fruhwirth  <clemens@endorphin.org>
151
152         * lib/setup.c (__crypt_create_device): (char *) -> (const char *)
153
154 2006-03-30  Clemens Fruhwirth  <clemens@endorphin.org>
155
156         * Apply alignPayload patch from Peter Palfrader <weasel@debian.org>
157
158 2006-03-15  Clemens Fruhwirth  <clemens@endorphin.org>
159
160         * configure.in: 1.0.3-rc3. Most unplease release ever. 
161         * lib/setup.c (__crypt_create_device): More verbose error message.
162
163 2006-02-26  Clemens Fruhwirth  <clemens@endorphin.org>
164
165         * lib/setup.c: Revert to 1.0.1 key reading.
166
167 2006-02-25  Clemens Fruhwirth  <clemens@endorphin.org>
168
169         * man/cryptsetup.8: merge patch from Jonas Meurer
170
171 2006-02-25  Clemens Fruhwirth  <clemens@endorphin.org>
172
173         * configure.in: 1.0.3-rc2
174
175 2006-02-25  Clemens Fruhwirth  <clemens@endorphin.org>
176
177         * lib/libdevmapper.c (dm_create_device): Remove dup check here.
178         * lib/setup.c (__crypt_luks_open): Adopt same dup check as regular
179         create command.
180
181 2006-02-22  Clemens Fruhwirth  <clemens@endorphin.org>
182
183         * configure.in: Spin 1.0.3-rc1
184
185 2006-02-22  Clemens Fruhwirth  <clemens@endorphin.org>
186
187         * src/cryptsetup.c (action_create): Change defaulting.
188         (action_luksFormat): Change defaulting.
189
190         * lib/setup.c (parse_into_name_and_mode): Revert that default
191         change. This is FORBIDDEN here, as it will change cryptsetup
192         entire default. This is BAD in a non-LUKS world.
193
194 2006-02-21  Clemens Fruhwirth  <clemens@endorphin.org>
195
196         * luks/keyencryption.c (setup_mapping): Add proper size restriction to mapping. 
197         (LUKS_endec_template): Add more verbose error message.
198
199 2006-02-21  Clemens Fruhwirth  <clemens@endorphin.org>
200
201         * lib/libdevmapper.c (dm_query_device): Incorporate patch from
202         Bastian Blank
203         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=344313
204
205 2006-02-21  Clemens Fruhwirth  <clemens@endorphin.org>
206
207         * src/cryptsetup.c: Rename show_error -> show_status.
208
209 2006-02-20  Clemens Fruhwirth  <clemens@endorphin.org>
210
211         * lib/libdevmapper.c (dm_create_device): Prevent existing mapping
212         from being removed when a mapping with the same name is added
213
214         * Add timeout patch from Jonas Meurer 
215
216         * src/cryptsetup.c: Remove conditional error printing to enable
217         printing the no-error msg (Command successful). Verify passphrase
218         for LUKS volumes.
219         (main): Add no-verify-passphrase
220
221         * lib/setup.c (parse_into_name_and_mode): Change default mode complition to essiv:sha256.
222
223 2006-01-04  Clemens Fruhwirth  <clemens@endorphin.org>
224
225         * src/cryptsetup.c (help): Merge patch from Gentoo: change gettext(..) to _(..).
226
227 2005-12-06  Clemens Fruhwirth  <clemens@endorphin.org>
228
229         * man/cryptsetup.8: Correct "seconds" to "microseconds" in the explaination for -i.
230
231 2005-11-09  Clemens Fruhwirth  <clemens@endorphin.org>
232
233         * src/cryptsetup.c (main): Add version string.
234
235 2005-11-08  Clemens Fruhwirth  <clemens@endorphin.org>
236
237         * lib/backends.c: compile fix. 
238
239 2005-09-11  Clemens Fruhwirth  <clemens@endorphin.org>
240
241         * lib/setup.c (get_key): Fixed another incompatibility from my
242         get_key rewrite with original cryptsetup.
243
244 2005-09-11  Clemens Fruhwirth  <clemens@endorphin.org>
245
246         * Merged changes from Florian Knauf's fk02 branch.
247
248 2005-09-08  Clemens Fruhwirth  <clemens@endorphin.org>
249
250         * lib/setup.c (get_key): Fixed another incompatiblity with
251         original cryptsetup.
252
253 2005-08-20  Clemens Fruhwirth  <clemens@endorphin.org>
254
255         * Checked in a patch from Michael Gebetsroither <gebi@sbox.tugraz.at>
256           to silent all confirmation dialogs.
257
258 2005-06-23  Clemens Fruhwirth  <clemens@endorphin.org>
259
260         * src/cryptsetup.c (help): print PACKAGE_STRING
261
262 2005-06-20  Clemens Fruhwirth  <clemens@endorphin.org>
263
264         * luks/keymanage.c (LUKS_set_key): Security check against header manipulation
265
266         * src/cryptsetup.c (action_luksDelKey): Safety check in luksDelKey
267
268         * luks/keymanage.c: Changed disk layout generation to align key material to 4k boundaries.
269         (LUKS_is_last_keyslot): Added LUKS_is_last_keyslot function.
270
271         * Applied patch from Bill Nottingham fixing a lot of prototypes.
272         
273         * src/cryptsetup.c (action_luksOpen): Add support for -r flag.
274
275         * configure.in: Version bump 1.0.1
276
277 2005-06-16  Clemens Fruhwirth  <clemens@endorphin.org>
278
279         * lib/setup.c (__crypt_luks_open): Remove mem leaking of dmCipherSpec.
280         (get_key): Fix missing zero termination for read string. 
281
282 2005-06-12  Clemens Fruhwirth  <clemens@endorphin.org>
283
284         * luks/keyencryption.c (setup_mapping): Added CRYPT_FLAG_READONLY in case of O_RDONLY mode
285
286 2005-06-11  Clemens Fruhwirth  <clemens@endorphin.org>
287
288         * configure.in: Version bump 1.0.1-pre
289
290 2005-06-09  Clemens Fruhwirth  <clemens@endorphin.org>
291
292         * lib/utils.c: Added write_llseek_blocksize method to support sector wiping on sector_size != 512 
293         media
294
295 2005-05-23  Clemens Fruhwirth  <clemens@endorphin.org>
296
297         * lib/setup.c (crypt_luksDelKey): Added missing return statement
298         (setup_leave): Added missing return statement
299
300         * luks/keyencryption.c (clear_mapping): Added missing return statement
301
302 2005-05-19  Clemens Fruhwirth  <clemens@endorphin.org>
303
304         * lib/utils.c (write_blockwise, read_blockwise): Changed to soft bsize instead of SECTOR_SIZE
305
306         * luks/keymanage.c (wipe): Changed open mode to O_DIRECT | O_SYNC, and changed write 
307         to use the blockwise write helper
308
309 2005-04-21  Clemens Fruhwirth  <clemens@endorphin.org>
310
311         * man/cryptsetup.8: Corrected an error, thanks to Dick Middleton.
312
313 2005-04-09  Clemens Fruhwirth  <clemens@endorphin.org>
314
315         * luks/sha/hmac.c: Add 64 bit bug fix courtesy to 
316         Oliver Paukstadt <pstadt@sourcentral.org>.
317
318         * luks/pbkdf.c, luks/keyencryption.c, luks/keymanage.c, luks/af.c: Added a license 
319         disclaimer and remove option for "any future GPL versions".
320
321 2005-03-25  Clemens Fruhwirth  <clemens@endorphin.org>
322
323         * configure.in: man page Makefile. Version bump 1.0.
324
325         * man/cryptsetup.8: finalize man page and move to section 8.
326
327         * src/cryptsetup.c (action_luksFormat): Add "are you sure" for interactive sessions.
328
329         * lib/setup.c (crypt_luksDump), src/cryptsetup.c: add LUKS dump command
330
331 2005-03-24  Clemens Fruhwirth  <clemens@endorphin.org>
332
333         * src/cryptsetup.c, luks/Makefile.am (test), lib/setup.c (setup_enter): 
334         rename luksInit to luksFormat
335
336 2005-03-12  Clemens Fruhwirth  <clemens@endorphin.org>
337
338         * man/cryptsetup.1: Add man page.
339
340         * lib/setup.c: Remove unneccessary LUKS_write_phdr call, so the
341         phdr is written after passphrase reading, so the user can change
342         his mind, and not have a partial written LUKS header on it's disk.
343         
344 2005-02-09  Clemens Fruhwirth  <clemens@endorphin.org>
345
346         * luks/keymanage.c (LUKS_write_phdr): converted argument phdr to
347         pointer, and make a copy of phdr for conversion
348
349         * configure.in: Version dump.
350
351         * luks/keyencryption.c: Convert to read|write_blockwise.
352
353         * luks/keymanage.c: Convert to read|write_blockwise.
354
355         * lib/utils.c: Add read|write_blockwise functions, to use in
356         O_DIRECT file accesses. 
357
358 2004-03-11 Thursday 15:52   Christophe Saout <christophe@saout.de>
359
360         * lib/blockdev.h: BLKGETSIZE64 really uses size_t as third
361           argument, the rest is wrong.
362
363 2004-03-10 Wednesday 17:50   Christophe Saout <christophe@saout.de>
364
365         * lib/: libcryptsetup.h, libdevmapper.c: Small fixes.
366
367 2004-03-09 Tuesday 21:41   Christophe Saout <christophe@saout.de>
368
369         * lib/internal.h, lib/libcryptsetup.h, lib/libdevmapper.c,
370           lib/setup.c, po/de.po, src/cryptsetup.c: Added internal flags to
371           keep track of malloc'ed return values in struct crypt_options and
372           add a function to free the memory. Also add a readonly flag to
373           libcryptsetup.
374
375 2004-03-09 Tuesday 16:03   Christophe Saout <christophe@saout.de>
376
377         * ChangeLog, configure.in, setup-gettext, lib/Makefile.am,
378           lib/backends.c, lib/blockdev.h, lib/gcrypt.c, lib/internal.h,
379           lib/libcryptsetup.h, lib/libdevmapper.c, lib/setup.c,
380           lib/utils.c, po/de.po, src/Makefile.am, src/cryptsetup.c: More
381           reorganization work.
382
383 2004-03-08 Monday 01:38   Christophe Saout <christophe@saout.de>
384
385         * ChangeLog, Makefile.am, acinclude.m4, configure.in,
386           lib/Makefile.am, lib/backends.c, lib/blockdev.h, lib/gcrypt.c,
387           lib/libdevmapper.c, lib/setup.c, lib/utils.c, po/de.po,
388           src/Makefile.am: BLKGETSIZE64 fixes and started modularity
389           enhancements
390
391 2004-03-04 Thursday 21:06   Christophe Saout <christophe@saout.de>
392
393         * Makefile.am, po/de.po, src/cryptsetup.c, src/cryptsetup.h: First
394           backward compatible working version.
395
396 2004-03-04 Thursday 00:42   Christophe Saout <christophe@saout.de>
397
398         * NEWS, AUTHORS, ChangeLog, Makefile.am, README, autogen.sh,
399           configure.in, setup-gettext, po/ChangeLog, po/LINGUAS,
400           po/POTFILES.in, po/de.po, src/cryptsetup.c, src/cryptsetup.h,
401           src/Makefile.am (utags: initial): Initial checkin.
402
403 2004-03-04 Thursday 00:42   Christophe Saout <christophe@saout.de>
404
405         * NEWS, AUTHORS, ChangeLog, Makefile.am, README, autogen.sh,
406           configure.in, setup-gettext, po/ChangeLog, po/LINGUAS,
407           po/POTFILES.in, po/de.po, src/cryptsetup.c, src/cryptsetup.h,
408           src/Makefile.am: Initial revision
409