Debian Codegraph @

NEWS

raw
1 libxcrypt NEWS -- history of user-visible changes.
2
3 Please send bug reports, questions and suggestions to
4 <https://github.com/besser82/libxcrypt/issues>.
5
6 Version 4.5.3
7
8 Version 4.5.2
9 * Use a more portable implementation for our fallback implementation
10 of explicit_bzero(); also get rid of the need for VLA in the new
11 implementation (issue #212).
12 * Fix compilation of alg-sha1 with optimization level 3 for GCC v11
13 and newer (issue #179).
14
15 Version 4.5.1
16 * Do not include undefined symbols in version-script (issue #181, #213).
17 * Fix build with clang-20+ on macOS (issue #216).
18
19 Version 4.5.0
20 * Implement the sm3crypt ($sm3$) hashing algorithm (issue #188).
21 * Implement the sm3-yescrypt ($sm3y$) hashing algorithm (issue #206).
22 * Fix the implementation of the crypt(3) functions and the crypt_gensalt(3)
23 functions to not overwrite the output buffer too early. (issue #209).
24 * Fix the strcpy_or_abort() function to call abort() in -DNDEBUG builds.
25 * Add some more testcases.
26 * Several fixes for issues found by Coverity.
27
28 Version 4.4.38
29 * Fix several "-Wunterminated-string-initialization", which are seen by
30 upcoming GCC 15.x (issue #194).
31 * Fix "-Wmaybe-uninitialized" in crypt.c, which is seen by GCC 13.3.0.
32 * Skip test/explicit-bzero if compiling with ASAN.
33 * Drop hard requirement for the pkg-config binary (issue #198).
34
35 Version 4.4.37
36 * Several fixes to the manpages (issue #185).
37 * Add binary compatibility for x86_64 GNU/Hurd (issue #189).
38 * Only test the needed makecontext signature during configure (issue #178).
39 * Fix -Werror=strict-overflow in lib/crypt-bcrypt.c, which is seen
40 by GCC 4.8.5 (issue #197).
41
42 Version 4.4.36
43 * Fix left over bits failing with Perl v5.38.0 (issue #173).
44
45 Version 4.4.35
46 * Fix build with Perl v5.38.0 (issue #170).
47 * Fix build with MinGW-w(32|64).
48
49 Version 4.4.34
50 * Update build-aux/m4/ax_valgrind_check.m4 to v23.
51 * Optimize some cast operation for performance in
52 lib/alg-yescrypt-platform.c.
53 * Add SHA-2 Maj() optimization proposed by Wei Dai in lib/alg-sha512.c.
54 * Explicitly clean the stack and context state after computation in
55 lib/alg-gost3411-2012-hmac.c, lib/alg-hmac-sha1.c, and lib/alg-sha256.c
56 (issue #168).
57
58 Version 4.4.33
59 * Fix -Werror=sign-conversion in lib/alg-yescrypt-platform.c.
60 With commit 894aee75433b4dc8d9724b126da6e79fa5f6814b we introduced some
61 changes to huge page handling, that show this error when building with
62 GCC v12.2.1, and thus need a small fix.
63
64 Version 4.4.32
65 * Improvements to huge page handling in lib/alg-yescrypt-platform.c.
66 When explicitly using huge pages, request the 2 MiB page size.
67 This should fix the issue where on a system configured to use 1 GiB
68 huge pages we'd fail on munmap() as we're only rounding the size up
69 to a multiple of 2 MiB. With the fix, we wouldn't use huge pages on
70 such a system. Unfortunately, now we also wouldn't use huge pages on
71 Linux kernels too old to have MAP_HUGE_2MB (issue #152).
72
73 Version 4.4.31
74 * Fix -Werror=conversion in lib/alg-yescrypt-opt.c
75 (issues #161 and #162).
76 * Add some SHA-2 Maj() optimization in lib/alg-sha256.c.
77 * Fix issues found by Covscan in test/getrandom-fallback.c.
78 * Fix -Werror=strict-overflow in lib/crypt-des.c, which is seen
79 by GCC 12.x (issues #155 and #163).
80
81 Version 4.4.30
82 * configure: Restore ucontext api functionality check.
83 In c3f01c72b303cbbb0cc8983120677edee2f3fa4b the use of the ucontext api
84 in the main program was removed, and with it the configure check for it.
85 However, the ucontext api is still used in the "explicit_bzero" test and
86 thus this test still needs to be in place.
87 See also: https://bugs.gentoo.org/838172
88 * configure: Restore the functionality of the '--disable-symvers' switch.
89 Without this fix the build was simply broken, if symbol versioning was
90 disabled for any reason, e.g. whether the compiler nor the linker
91 supporting it, or if disabled on purpose by the user (issue #142).
92 * Fix variable name in crypt(3) for a datamember of 'struct crypt_data'
93 (issue #153).
94
95 Version 4.4.29
96 * Add glibc-on-loongarch-lp64 (Loongson LA464 / LA664) entry to
97 libcrypt.minver. This was added in GNU libc 2.36.
98
99 Version 4.4.28
100 * Add glibc-on-or1k (OpenRISC 1000) entry to libcrypt.minver.
101 This was added in GNU libc 2.35.
102
103 Version 4.4.27
104 * Limit the maximum amount of rbytes to 64 bytes (512 bits) for
105 yescrypt, gost-yescrypt, and scrypt. Also reflect this limit
106 in the documentation (issue #145).
107
108 Version 4.4.26
109 * Fix compilation on systems with GCC >= 10, that do not support
110 declarations with __attribute__((symver)).
111
112 Version 4.4.25
113 * Add support for Python 3.11 in the configure script.
114 * Stricter checking of invalid salt characters (issue #135).
115 Hashed passphrases are always entirely printable ASCII, and do
116 not contain any whitespace or the characters ':', ';', '*', '!',
117 or '\'. (These characters are used as delimiters and special
118 markers in the passwd(5) and shadow(5) files.)
119
120 Version 4.4.24
121 * Add hash group for Debian in lib/hashes.conf.
122 Debian has switched to use the yescrypt hashing algorithm as
123 the default for new user passwords, so we should add a group
124 for this distribution.
125 * Overhaul the badsalt test.
126 Test patterns are now mostly generated rather than manually coded
127 into a big table. Not reading past the end of the “setting” part
128 of the string is tested more thoroughly (this would have caught the
129 sunmd5 $$ bug if it had been available at the time).
130 Test logs are tidier.
131 * Add ‘test-programs’ utility target to Makefile.
132 It is sometimes useful to compile all the test programs but not run
133 them. Add a Makefile target that does this.
134 * Fix incorrect bcrypt-related ifdeffage in test/badsalt.c.
135 The four variants of bcrypt are independently configurable, but the
136 badsalt tests for them were all being toggled by INCLUDE_bcrypt,
137 which is only the macro for the $2b$ variant.
138 * Fix bigcrypt-related test cases in test/badsalt.c.
139 The test spec was only correct when both or neither of bigcrypt and
140 descrypt were enabled.
141 * Detect ASan in configure and disable incompatible tests.
142 ASan’s “interceptors” for crypt and crypt_r have a semantic conflict
143 with libxcrypt, requiring a few tests to be disabled for builds with
144 -fsanitize-address. See commentary in test/crypt-badargs.c for an
145 explanation of the conflict, and the commentary in
146 build-aux/m4/zw_detect_asan.m4 for why a configure test is required.
147 * Fix several issues found by Covscan in the testsuite. These include:
148 - CWE-170: String not null terminated (STRING_NULL)
149 - CWE-188: Reliance on integer endianness (INCOMPATIBLE_CAST)
150 - CWE-190: Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN)
151 - CWE-569: Wrong sizeof argument (SIZEOF_MISMATCH)
152 - CWE-573: Missing varargs init or cleanup (VARARGS)
153 - CWE-687: Argument cannot be negative (NEGATIVE_RETURNS)
154
155 Version 4.4.23
156 * Fix output calculation for gensalt_yescrypt_rn().
157 * Fix -Werror=conversion in lib/crypt-des-obsolete.c,
158 test/des-obsolete.c, and test/des-obsolete_r.c.
159
160 Version 4.4.22
161 * The crypt_checksalt() function has been fixed to correctly return
162 with 'CRYPT_SALT_INVALID', in case the setting, that is passed
163 to be checked, represents an empty passphrase or an uncomputed
164 setting for descrypt without any salt characters.
165
166 Version 4.4.21
167 * The crypt_checksalt() function will now return the value
168 'CRYPT_SALT_METHOD_LEGACY' in case the setting, that is passed
169 to be checked, uses a hashing method, which is considered to be
170 too weak for use with new passphrases.
171
172 Version 4.4.20
173 * Fix build when the CFLAGS variable, that is passed into the
174 configure script, has a leading whitespace character in it
175 (issue #123).
176
177 Version 4.4.19
178 * Improve fallback implementation of explicit_bzero.
179 * Add glibc-on-CSKY, ARC, and RISCV-32 entries to libcrypt.minver.
180 These were added in GNU libc 2.29, 2.32, and 2.33 respectively
181 (issue #122).
182 * Do not build xcrypt.h if we’re not going to install it.
183 * Do not apply --enable-obsolete-api-enosys mode to fcrypt.
184 * Compilation fix for NetBSD. NetBSD’s <unistd.h> declares encrypt
185 and setkey to return int, contrary to POSIX (which says they return
186 void). Rename those declarations out of the way with macros.
187 * Compilation fixes for building with GCC 11.
188 Basically fixes for explicit type-casting.
189 * Force update of existing symlinks during installation (issue #120).
190
191 Version 4.4.18
192 * Fix compilation errors on (Free)BSD (issue #110).
193 * Fix conversion error in lib/alg-gost3411-core.c, which is seen by
194 some sensitive compilers.
195 * Convert build scripts to Perl.
196 The minimum version of Perl required is 5.14.
197
198 Version 4.4.17
199 * Fix compilation error in 'alignas (type)' with older versions
200 of glibc and/or gcc (issue #107).
201 * Salt string compatibility with generic implementations (issue #105).
202 All other existing implementations of the md5crypt, sha256crypt,
203 and sha512crypt hashing methods allow any ASCII character to be
204 present in the salt string.
205 We changed our implementation of these hash methods to be compliant
206 with the general behaviour, except for the colon ':' character,
207 which serves a special purpose in the Unix shadow file, and the
208 newline '\n' character, since all parameters of the user data must
209 be on the same line within the Unix shadow file.
210 * Fix for GCC 10.2 on s390x.
211
212 Version 4.4.16
213 * Add support for the e2k architecture.
214
215 Version 4.4.15
216 * The compatibility symbols crypt_gensalt_r, xcrypt, xcrypt_r,
217 xcrypt_gensalt, and xcrypt_gensalt_r are deprecated further.
218 (These are alternative names for crypt_gensalt_rn, crypt, crypt_r,
219 crypt_gensalt, and crypt_gensalt_rn, respectively; there is no
220 difference in behavior.)
221
222 In an --enable-xcrypt-compat-files configuration, newly compiled
223 programs can still use functions with these names if they include
224 xcrypt.h, but a program that attempts to use one of these functions
225 *without* including xcrypt.h will fail to link. In particular, this
226 means AC_CHECK_FUNCS([xcrypt]) will not detect xcrypt, because the
227 test program generated by AC_CHECK_FUNCS does not include xcrypt.h.
228
229 In a --disable-xcrypt-compat-files --enable-obsolete-api
230 configuration, xcrypt.h is not installed and newly compiled programs
231 cannot use functions with these names, but existing binaries that
232 expect to find these symbols in a shared libcrypt.so.1 will still
233 work.
234
235 In a --disable-obsolete-api configuration, these symbols are not
236 defined at all; moreover, --disable-obsolete-api now implies
237 --disable-xcrypt-compat-files (which means xcrypt.h isn't installed).
238
239 Version 4.4.14
240 * Renamed bootstrap script: 'bootstrap' -> 'autogen.sh'.
241 If building from a Git checkout instead of a tarball release,
242 use './autogen.sh' to create the configure script.
243
244 Version 4.4.13
245 * libxcrypt now builds (including working tests) on Mac OSX.
246 * Speed up ka-sunmd5 by skipping most of the test phrases.
247 ka-sunmd5 is slower than the entire rest of the testsuite put
248 together, because the sunmd5 hash is Just That Slow and we have to do
249 extra tests for it to ensure bug-compatibility. No easy optimizations
250 are possible and the difficult optimizations are not worth the
251 engineering effort for this obsolete hash. Instead, skip most of the
252 test phrases. See comments in test/ka-table-gen.py!h_sunmd5 for
253 further explanation.
254
255 Version 4.4.12
256 * Another fix for GCC v10.x, which occurs on s390 architectures only.
257
258 Version 4.4.11
259 * Fixes for GCC v10.x (issue #95).
260 * Change how the known-answer tests are parallelized.
261
262 Version 4.4.10
263 * Fix ordering of hash methods in crypt-hashes.h when generated
264 using gawk < 4.1.0.
265
266 Version 4.4.9
267 * Fix false positive finding from CovScan.
268
269 Version 4.4.8
270 * Add binary compatibility for GNU/Hurd and GNU/kFreeBSD.
271
272 Version 4.4.7
273 * LICENSING: Add missing files and update license information.
274 * Fix -Wformat in test/crypt-kat.c.
275
276 Version 4.4.6
277 * Make unalignment test really unaligned.
278
279 Version 4.4.5
280 * Fix alignment problem for GOST 34.11 (Streebog) in gost-yestcrypt.
281 Some architectures in some circumstances do not allow unaligned
282 memory access (such as ARM, MIPS, SPARC) triggering SIGBUS. This
283 patch very crudely fixes this issue.
284 Being unfixed this would trigger SIGBUS when password buffer is
285 unaligned. Crash and fix are tested on UltraSparc T5 on GCC Compile
286 farm.
287
288 Version 4.4.4
289 * The crypt_* functions will now all fail and set errno to ERANGE if
290 their 'phrase' argument is longer than CRYPT_MAX_PASSPHRASE_SIZE
291 characters (this is currently 512). Formerly, longer passphrases
292 would either be silently accepted, silently truncated, or the
293 library would crash, depending on the hashing method.
294 * The NT hashing method no longer truncates passphrases at 128
295 characters; Windows does not do this. (The Windows login dialog
296 _limits_ interactively entered passphrases to 127 characters.
297 Passphrases set via the low-level API can be longer.)
298
299 Version 4.4.3
300 * Fix the value of SUNMD5_MAX_ROUNDS.
301 * Add generated C++-guards to <xcrypt.h>.
302 * Add --enable-obsolete-api-enosys configure option.
303 If enabled, this option replaces the obsolete APIs (fcrypt,
304 encrypt{,_r}, and setkey{,_r}) with stubs that set errno to
305 ENOSYS and return without performing any real operations.
306 This allows one to disable DEScrypt support while preserving
307 POSIX compliance.
308 For security reasons, the encrypt{,r} functions will also
309 overwrite their data-block argument with random bits.
310 The fcrypt function will always produce a failure token
311 (*0 or *1), unless the library was also configured with
312 --disable-failure-tokens, in which case it will always
313 return NULL.
314
315 Version 4.4.2
316 * Add test-alg-yescrypt for improved coverage.
317 * Add x32 specific inline asm.
318
319 Version 4.4.1
320 * Change the output of the gensalt function for the NT hashing method
321 ($3$) to output just its prefix ($3$) instead of a fake salt.
322 The output buffer for the returned string must be at least 4 bytes
323 long.
324 * Decrase the minimum required amount of random bytes for the NT
325 hashing method to 1 byte, which is actually not used.
326 * The default linker flags now generate binaries with full read-only
327 relocations (including full read-only re-mapping of the GOT), if
328 supported by the linker and the system's native binary format.
329
330 Version 4.4.0
331 * Implement the crypt_preferred_method function.
332 This function can be used as a convenience function to get the prefix
333 of the preferred hash method.
334
335 Version 4.3.4
336 * --enable-hashes now supports 'fedora' as a group of hashing methods.
337 * Add aliases for xcrypt{,_r} and xcrypt_gensalt{,_r}.
338 They were added for code compatibility with libxcrypt v3.1.1
339 and earlier.
340 * Install the <xcrypt.h> header file, declaring the previously named
341 aliases, and a symlink from libxcrypt.so to libcrypt.so, if a shared
342 library is build. For static libraries a corresponding symlink for
343 the archive file will be installed.
344 The installation of the compatibility files can be disabled by
345 passing the '--disable-xcrypt-compat-files' flag to the configure
346 script.
347 * Replace the prototype for the crypt_gensalt_r function with a
348 declaration through a macro, so new compiled applications link
349 against the identical crypt_gensalt_rn function directly.
350
351 Version 4.3.3
352 * Add an alias for crypt_gensalt_r.
353 The function was available in older versions (v3.1.1 and earlier)
354 of libxcrypt. It has the same semantics and the same prototype as
355 the crypt_gensalt_rn function.
356
357 Version 4.3.2
358 * Fix the gensalt function for the NT hashing method ($3$) to
359 properly terminate its output string. The output buffer for the
360 returned string must be at least 30 bytes long.
361 * Remove the gensalt function for the bcrypt x variant ($2x$).
362 This prefix was never intended for use when hashing new passphrases.
363 The only use case originally intended was to manually edit '$2a$' to
364 '$2x$' in passphrase hashes to knowingly take the risk yet enable
365 users to continue to log in when upgrading systems with buggy bcrypt
366 implementations to fixed versions.
367
368 Version 4.3.1
369 * Reduce the number of methods that can be the default for new hashes.
370 We don’t want to accidentally encourage use of gost-yescrypt,
371 scrypt, or the bug-compatibility bcrypt variants by people who do
372 not have a specific need for them.
373 * sha256crypt ($5$) is not considered to be strong anymore. Thus
374 it was dropped from the STRONG and DEFAULT sets.
375 * The four variants of bcrypt ($2b$, $2a$, $2y$, $2x$) are now
376 independently selectable at configure time. The $2x$ variant has
377 been dropped from the STRONG set, because it has a severe bug
378 causing it to be easy to find collisions for some passwords. The
379 $2x$ and $2y$ variants have been dropped from the FreeBSD, NetBSD,
380 OpenBSD, and Solaris compatibility sets, because those operating
381 systems never supported those variants.
382
383 Version 4.3.0
384 * Implement the gost-yescrypt ($gy$) hashing algorithm.
385 * Remove all of the nonnull annotations, which are a questionable
386 optimization that have caused problems in the past and may cause
387 future problems on some systems.
388 * Rename all hash methods to match naming in John the Ripper.
389 * Make the configure switches --enable-obsolete-api and
390 --enable-hashes process their arguments case-insensitively; for
391 instance, "--enable-hashes=OpenBSD" and "--enable-hashes=openbsd"
392 are now understood as synonymous.
393 * Fix gensalt for bigcrypt if descrypt hash method is not selected
394 at compile time.
395 * Fix the bigcrypt hash method to reject too short settings and/or
396 descrypt hashes with a truncated phrase. Hashes with a setting
397 shorter than 13 characters and phrases shorter than 8 characters
398 are valid bigcrypt hashes, although they are identical with the
399 output generated by descrypt under the same conditions.
400 This only applies when the descrypt hash method is not selected
401 at compile time.
402 * Implement crypt_checksalt, which can be used by portable users of
403 libxcrypt to check whether the desired hash method is supported.
404 * Make a default prefix available whenever at least one strong hash
405 is enabled.
406 * Fix the definition of 'CRYPT_GENSALT_IMPLEMENTS_DEFAULT_PREFIX'
407 to reflect whether the default prefix is available or not.
408
409 Version 4.2.3
410 * Add bootstrap script. If building from a Git checkout instead of a
411 tarball release, use './bootstrap' to create the configure script.
412 * Use sha512 implementation from Colin Percival. Thus we now have a
413 sha512 implementation under the BSD license.
414 * Use md5 implementation from Alexander Peslyak. Thus we now have a
415 md5 implementation in the public domain.
416 * 'make dist' now generates bzip2 and xz compressed tarballs along
417 with the default gzip compressed tarball.
418 * The group 'altlinux' has been renamed to 'alt' in --enable-hashes,
419 as the ALTLINUX distribution has been rebranded to ALT some time ago.
420 * New tagged versions are automatically submitted for Coverity Scan:
421 https://scan.coverity.com/projects/besser82-libxcrypt
422
423 Version 4.2.2
424 * Convert existing manpages to BSD mdoc format.
425
426 Version 4.2.1
427 * Fix tests for yescrypt and scrypt, when failure-tokens have been
428 disabled.
429
430 Version 4.2.0
431 * Implement yescrypt ($y$) and scrypt ($7$) hashing algorithms.
432 * For scrypt the implemented gensalt function ensures every new hash
433 is computed using at least 32 MiBytes of RAM.
434 * yescrypt is the new default method used for new hashes.
435 * --enable-hashes now supports additional groups of hashing methods:
436 'altlinux', 'owl', and 'suse', which select the methods historically
437 supported on those operating systems.
438 * Added 'XCRYPT_VERSION_*' macros.
439
440 Version 4.1.2
441 * Add optional 'check-valgrind' target to the Makefile.
442 * Replace crypt-sha{256,512}.c with an implementation in the Public
443 Domain.
444 * Add alias man-pages for other crypt functions.
445 * Add configure option --disable-failure-tokens, which causes crypt
446 and crypt_r to return NULL on failure, as crypt_rn and crypt_ra do,
447 instead of a special "failure token". Using this option improves
448 compatibility with programs written on the assumption that, like
449 most C library functions, crypt and crypt_r will return NULL on
450 failure; but it breaks compatibility with programs that assume these
451 functions never return NULL. We're not sure which type of program
452 is more common. Please let us know if you encounter either.
453 * Improved handling of out-of-range cost parameters in gensalt.
454 The behavior is now:
455 - for hashes with a fixed cost parameter (DES/trad, DES/big, NTHASH,
456 MD5/bsd), crypt_gensalt only accepts 0 as the rounds argument.
457 - for hashes with a linear cost parameter (DES/bsdi, MD5/sun, SHA1,
458 SHA256, SHA512), crypt_gensalt accepts 0 or any value in the range
459 [1, ULONG_MAX] and clips it to the actual valid range for the hash
460 function, if necessary. In the case of DES/bsdi, even numbers
461 become odd, as well.
462 - for hashes with an exponential cost parameter (bcrypt),
463 crypt_gensalt only accepts 0 or a value in the actual valid range.
464 - the documented valid range for SHA1 is now [4, 4294967295] instead
465 of [1, 4294967295].
466 - all of this is tested.
467
468 Version 4.1.1
469 * --enable-hashes now supports additional groups of hashing methods:
470 'freebsd', 'netbsd', 'openbsd', 'osx', and 'solaris', which select
471 the hashes historically supported on those operating systems.
472 * Predictable behavior when arguments to crypt() are NULL or invalid
473 (issue #15).
474 * Hash formats $5, $6, and $md5 once again allow an explicit rounds
475 parameter specifying the default number of rounds (issue #16).
476 * The library no longer uses swapcontext(), for ease of debugging and
477 better compatibility with hardening mechanisms like Intel CET
478 (issue #18).
479 * Can now be built with versions of GNU ld older than 2.26.2.
480 * crypt_gensalt_ra no longer leaks memory on failure.
481
482 Version 4.1.0
483 * Fix spelling of SUSE.
484 * Lower the minimum required automake version to 1.14.
485 * Fix build with USE_SWAPCONTEXT turned off.
486 * Extend --enable-weak-hashes configure option to accept optional
487 "glibc" parameter. When specified, it enables only those of
488 weak hashes that are supported by historic versions of the
489 GNU libc.
490 * Fix the leak of obtained random bytes.
491 * Check expected output strings for deterministic methods.
492 * Fix memory leak in crypt_sha1crypt_rn.
493 * Fix read of random bytes out of bounds in gensalt_sha1crypt_rn.
494 * Make it possible to disable individual hashes at configure time.
495 The default is --enable-hashes=all. --enable-hashes=strong is the
496 equivalent of the old --disable-weak-hashes. You could even do
497 --enable-hashes=bcrypt,des to get a binary-compatible libcrypt.so.1
498 that still supports almost nothing other than bcrypt.
499 * Make salt validation pickier.
500 * Replace crypt-sunmd5.c with BSD-licensed cleanroom reimplementation.
501 * Make crypt_gensalt for $sha1 deterministic.
502 * Fix incorrect output-size computation in crypt_sha1crypt_rn.
503 * Add docs for SHA1, MD5/Sun, NTHASH.
504 * Introduce CRYPT_GENSALT_IMPLEMENTS_* feature test macros.
505 * Install libcrypt.pc symlink along with libxcrypt.pc.
506 * Extend --enable-obsolete-api configure option.
507 Make vendor specific parts of compatibility ABI that are enabled by
508 --enable-obsolete-api option configurable.
509 This allows vendors to enable only those parts of compatibility ABI
510 that are relevant to them.
511 * Extend overall test coverage.
512
513 Version 4.0.1
514 * Fixes for GCC v8.x
515 * Add symbol version for riscv64
516 * Fixed an uninitialized value in test-crypt-badsalt
517
518 Version 4.0.0
519 * Full binary backward compatibility with glibc libcrypt; all programs
520 compiled with glibc libcrypt, including vendor-patched versions that
521 include the Openwall extensions, should work with this libcrypt
522 (however, programs compiled against this libcrypt will NOT work with
523 glibc libcrypt).
524 * struct crypt_data is now only 32kB (from 128kB), and divided into a
525 public-API section and a properly opaque internal section.
526 * New feature: supplying a null pointer as the "prefix" argument to
527 any of the crypt_gencrypt functions will cause it to select the best
528 available hash function (in this release, bcrypt in mode 'a').
529 CAUTION: it must be a null pointer, not an empty string. If you
530 supply an empty string, that selects DES, which is the *worst*
531 available hash function.
532 * New feature: supplying a null pointer as the "rbytes" argument to
533 any of the crypt_gencrypt functions will cause it to acquire random
534 bytes from the operating system.
535 * The legacy functions bigcrypt, fcrypt, encrypt, encrypt_r,
536 setkey, and setkey_r are no longer available for use by new programs.
537 All of these (except fcrypt, which was just another name for crypt)
538 force the use of DES, which is no longer safe for any application.
539 * New configure option --disable-obsolete-api removes the above
540 functions from the library. Since this breaks compatibility with
541 glibc's libcrypt, when this option is used the shared library will
542 be libcrypt.so.2 instead of libcrypt.so.1, and all of the
543 compatibility symbol versions for the crypt* functions will be
544 omitted. This option is the default on all operating systems where
545 there is no GNU C Library to be compatible with.
546 * New configure option --disable-weak-hashes removes all support for
547 DES and MD5 hashes from the library. This option implies
548 --disable-obsolete-api, and will prevent DES and MD5 password hashes
549 from being *verified* -- accounts with such hashes are effectively
550 locked. It is intended for use in high-security new installations.
551 * Sensitive intermediate data is now thoroughly scrubbed from the
552 stack and CPU registers before the crypt functions return to their
553 callers.
554 * UFC-crypt has been replaced with FreeSec; this enables the reduction in
555 size of crypt_data, and adds full support for BSD extended DES hashes.
556 * Extensive code cleanup and portability work. The static library
557 should now be buildable with any C99 compiler, although some
558 features may not be available (notably acquiring random bytes from
559 the operating system and scrubbing the stack). The shared library
560 does still require some GNU extensions for symbol versioning.
561 * The configure options --enable-Wno-cast-align and --enable-bootstrap
562 are no longer necessary and have been removed.
563 * If building from a Git checkout instead of a tarball release, use
564 'autoreconf -i' to create the configure script; autogen.sh has been
565 removed.
566 * More thoroughly tested.
567
568 Version 3.1.1
569 * Add '--enable-Wno-cast-align' to silence 'cast increases required alignment'
570 * Whitespace clean-up
571
572 Version 3.1.0
573 * Update upstream-contact
574 * Add './configure --enable-bootstrap' to skip some tests on initial build
575 * Add bootstrap-script for Autotools
576 * Add LICENSE for bcrypt
577 * Update crypt_blowfish to v1.3
578 * Add '-Wextra' to CFLAGS
579 * Fix warnings generated by gcc 5.1.1
580 * Update Autotools
581
582 Version 3.0.4
583 * Fix warnings generated by gcc 4.6
584
585 Version 3.0.3
586 * Fix memory leak
587 * Fix compiler warnings
588
589 Version 3.0.2
590 * Fix generating salts for MD5
591
592 Version 3.0.1
593 * Fix build failures
594
595 Version 3.0
596 * Add sha256 and sha512 hashes
597 * Move all hashes into plugins
598
599 Version 2.4
600 * Sync with crypt_blowfish 1.0
601
602 Version 2.3
603 * Fix problems with gcc > 4.0
604
605 Version 2.2
606 * Fix realloc call in md5-crypt
607
608 Version 2.1
609 * Enable x86.S for i386 again
610
611 Version 2.0
612 * Rename all crypt* functions to xcrypt* to avoid clash with normal
613 libcrypt from glibc
614
615 Version 1.4
616 * Fix compiling with glibc > 2.3.1
617 * Sync with crypt_blowfish 0.4.5
618
619 Version 1.3
620 * Sync with current glibc CVS (fix for not correct initialication of
621 internal data structs)
622
623 Version 1.2
624 * Fix building with glibc 2.3.x
625 * Add support for HPPA
626
627 Version 1.1
628 * merge md5.h with xcrypt.h
629 * Add SHA1 functions and crypt
630
631 Version 1.0
632 * First release