diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2018-05-21 10:32:25 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2018-05-21 10:35:38 -0700 |
commit | 0c01176747a88b4444ae10fd37b70c2c123d51d8 (patch) | |
tree | c99184ea99dd2661a74d5f7748cb8768043a6ee4 /modules/crypto/sha512 | |
parent | e90c77eb2608f23caa798a9910d8dc0f9901904a (diff) | |
download | gnulib-0c01176747a88b4444ae10fd37b70c2c123d51d8.tar.gz |
crypto: omit stream ops Emacs doesn’t need
* lib/md5.c (md5_stream):
* lib/sha1.c (sha1_stream):
* lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
* lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
defined. Emacs needs this, as it does not use the stream
operations and doesn’t need all the af_alg stuff we’ve recently
added. Perhaps a similar change is needed to the other crypto
modules, but this patch changes only those needed for Emacs.
* modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
* modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
New modules, used by Emacs.
* modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
* modules/crypto/sha512: Rewrite to depend on the new modules.
Diffstat (limited to 'modules/crypto/sha512')
-rw-r--r-- | modules/crypto/sha512 | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/modules/crypto/sha512 b/modules/crypto/sha512 index 127e67c924..da45e816b0 100644 --- a/modules/crypto/sha512 +++ b/modules/crypto/sha512 @@ -2,30 +2,20 @@ Description: Compute SHA384 and SHA512 checksums. Files: -lib/gl_openssl.h -lib/sha512.h -lib/sha512.c -m4/gl-openssl.m4 -m4/sha512.m4 Depends-on: crypto/af_alg -extern-inline -stdalign -stdint -u64 +crypto/sha512-buffer configure.ac: -gl_SHA512 +AC_DEFINE([GL_COMPILE_CRYPTO_STREAM], 1, [Compile Gnulib crypto stream ops.]) Makefile.am: -lib_SOURCES += sha512.c Include: "sha512.h" Link: -$(LIB_CRYPTO) License: LGPLv2+ |