liblzma: Try to use SHA-256 from the operating system.
commitb94aa0c8380cdb18cddb33440d625474c16643cf
authorLasse Collin <lasse.collin@tukaani.org>
Sat, 21 May 2011 12:08:44 +0000 (21 15:08 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Sat, 21 May 2011 12:08:44 +0000 (21 15:08 +0300)
tree41dc7226f490e7aaa3b32f701e2b3b4fac0afb3f
parentf004128678d43ea10b4a6401aa184cf83252d6ec
liblzma: Try to use SHA-256 from the operating system.

If the operating system libc or other base libraries
provide SHA-256, use that instead of our own copy.
Note that this doesn't use OpenSSL or libgcrypt or
such libraries to avoid creating dependencies to
other packages.

This supports at least FreeBSD, NetBSD, OpenBSD, Solaris,
MINIX, and Darwin. They all provide similar but not
identical SHA-256 APIs; everyone is a little different.

Thanks to Wim Lewis for the original patch, improvements,
and testing.
configure.ac
src/liblzma/check/Makefile.inc
src/liblzma/check/check.h