summaryrefslogtreecommitdiff
path: root/m4/gl-openssl.m4
Commit message (Collapse)AuthorAgeFilesLines
* maint: run 'make update-copyright'Paul Eggert2020-12-311-1/+1
|
* md5, sha1, sha256, sha512: pacify Autoconf 2.70Paul Eggert2020-07-151-8/+3
| | | | | | | * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a shell if, so that the argument to AC_CHECK_HEADERS is a simple string that does not require shell evaluation. This fixes a warning generated by Autoconf 2.69b.
* md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compatPádraig Brady2020-01-011-7/+25
| | | | | | | | | | | * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode, which will auto enable use of openssl, only for >= version 3, which is newly licensed under the Apache Software License. This will be used from coreutils for example by adding gl_SET_CRYPTO_CHECK_DEFAULT([auto-gpl-compat]) to configure.ac. Even though "auto-gpl-compat" is less aggressive than "auto", we leave the default at "no" so projects can opt in to the extra dependency.
* maint: Run 'make update-copyright'Paul Eggert2019-12-311-1/+1
|
* maint: Run 'make update-copyright'Paul Eggert2019-01-011-1/+1
|
* af_alg: disable kernel hash functions by defaultPádraig Brady2018-06-241-1/+1
| | | | | | | | | | | | | | | All the kernel routines were seen to be significantly slower with these relatively recent components on an i3-2310M system: kernel-4.10.6-200.fc25.x86_64 openssl-1.0.2m-1.fc25.x86_64 sha1 was nearly twice as slow in the kernel for example, compared to the libcrypto routines. Further considerations why this should not be the default, at: https://lists.gnu.org/r/coreutils/2018-06/msg00034.html * m4/af_alg.m4: Require --with-linux-crypto to enable. * m4/gl-openssl.m4: Tweak accordingly.
* crypto: mention --without-linux-crypto in --with-openssl --helpPádraig Brady2018-06-231-1/+3
| | | | | * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto routines take precedence in --with-openssl help output.
* maint: Run 'make update-copyright'Paul Eggert2018-01-011-1/+1
|
* version-etc: new yearPaul Eggert2017-01-011-1/+1
| | | | | | | | | | * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
* version-etc: new yearPaul Eggert2016-01-011-1/+1
| | | | | | | | | | * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
* version-etc: new yearPaul Eggert2014-12-311-1/+1
| | | | | | * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date. * all files: Run 'make update-copyright'.
* maint: update copyrightEric Blake2014-01-011-1/+1
| | | | | | I ran 'make update-copyright'. Signed-off-by: Eric Blake <eblake@redhat.com>
* md5, sha1, sha256, sha512: fix link error with partial libcryptoPádraig Brady2013-12-091-1/+4
| | | | | | | * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at init time, so that if early checks find crypto routines, while the last does not, then @LIB_CRYPTO@ is replaced correctly, avoiding link failures.
* md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULTPaul Eggert2013-12-071-3/+10
| | | | | | | | | | This provides a new way to specify the default for gl_CRYPTO_CHECK, one that is reflected in the --help message. Emacs uses this, as well as the old way. This attempts to implement a suggestion by Pádraig Brady in <http://lists.gnu.org/archive/html/coreutils/2013-12/msg00080.html>. * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro. (gl_CRYPTO_CHECK): Use it. Mention the default in --help output.
* md5, sha1, sha256, sha512: add 'auto', and a way to specify defaultPaul Eggert2013-12-071-7/+10
| | | | | | | | * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Add support for a new option, --with-openssl=auto, which causes the library to be used if available and silently ignored if not. Add support to allow allow configure.ac to specify its own default, by setting with_openssl_default before invoking gl_INIT.
* md5, sha1, sha256, sha512: support mandating use of opensslPádraig Brady2013-12-041-3/+6
| | | | | | | | | | * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Adjust the --with-openssl description, to list the now 3 separate options. Also don't mention the default=no, since this is implicit given the option is described as --with-openssl rather than --without-openssl. If projects change the default they're free to document that. With --with-openssl[=yes] we now error out when the specified hash algorithm is not available in libcrypto.
* md5, sha1, sha256, sha512: use openssl routines if availablePádraig Brady2013-12-031-0/+35
--with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256 routines will be used if available, requiring apps to link @LIB_CRYPTO@ * lib/gl_openssl.h: Provide wrappers for specified openssl hash. * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto in the standard system location. * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1. * m4/sha256.m4: Likewise with SHA256. * m4/sha512.m4: Likewise with SHA512. * m4/md5.m4: Likewise with MD5. * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests. * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1. * lib/sha256.h: Likewise with SHA256. * lib/sha512.h: Likewise with SHA512. * lib/md5.h: Likewise with MD5. * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1. * lib/sha256.c: Likewise with SHA256. * lib/sha512.c: Likewise with SHA512. * lib/md5.c: Likewise with MD5. * modules/crypto/sha1 (Link:): Add the new optional lib. (Depends-on:): Add dependency on extern-inline. * modules/crypto/sha256: Likewise. * modules/crypto/sha512: Likewise. * modules/crypto/md5: Likewise. * modules/crypto/sha1-tests: Reference the lib here too. * modules/crypto/md5-tests: Likewise. * modules/crypto/gc-des-tests: Likewise. * modules/crypto/gc-hmac-md5-tests: Likewise. * modules/crypto/gc-hmac-sha1-tests: Likewise. * modules/crypto/gc-hmac-sha256-tests: Likewise. * modules/crypto/gc-hmac-sha512-tests: Likewise. * modules/crypto/gc-md5-tests: Likewise. * modules/crypto/gc-pbkdf2-sha1-tests: Likewise. * modules/crypto/gc-sha1-tests: Likewise. * modules/crypto/gc-tests: Likewise. * modules/crypto/hmac-md5-tests: Likewise. * modules/crypto/hmac-sha1-tests: Likewise. * modules/crypto/hmac-sha256-tests: Likewise. * modules/crypto/hmac-sha512-tests: Likewise.