summaryrefslogtreecommitdiff
path: root/modules/crypto/sha512
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2018-05-05 20:27:33 +0200
committerBruno Haible <bruno@clisp.org>2018-05-05 20:34:30 +0200
commit459221a854b083ca9709e65de463dd05b1101851 (patch)
treefb1cb8aa6b87775dc184f92c74d0034465ac858a /modules/crypto/sha512
parent9745b26b0c0c4d956b06428ba970cec5e7f45aa7 (diff)
downloadgnulib-459221a854b083ca9709e65de463dd05b1101851.tar.gz
af_alg: New module.
* lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'. * lib/af_alg.c: Include "af_alg.h" before the other header files. * lib/md5.c: Include "af_alg.h" unconditionally. (md5_stream): Invoke afalg_stream unconditionally. * lib/sha1.c: Include "af_alg.h" unconditionally. (sha1_stream): Invoke afalg_stream unconditionally. * lib/sha256.c: Include "af_alg.h" unconditionally. (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally. * lib/sha512.c: Include "af_alg.h" unconditionally. (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally. * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4. (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H. * modules/crypto/af_alg: New file. * modules/crypto/md5 (Files): Remove files that are now in the 'crypto/af_alg' module. (Depends-on): Add crypto/af_alg. (configure.ac): Remove gl_LINUX_IF_ALG_H invocation. (Makefile.am): Don't mention af_alg.c here. * modules/crypto/sha1 (Files): Remove files that are now in the 'crypto/af_alg' module. (Depends-on): Add crypto/af_alg. (configure.ac): Remove gl_LINUX_IF_ALG_H invocation. (Makefile.am): Don't mention af_alg.c here. * modules/crypto/sha256 (Files): Remove files that are now in the 'crypto/af_alg' module. (Depends-on): Add crypto/af_alg. (configure.ac): Remove gl_LINUX_IF_ALG_H invocation. (Makefile.am): Don't mention af_alg.c here. * modules/crypto/sha512 (Files): Remove files that are now in the 'crypto/af_alg' module. (Depends-on): Add crypto/af_alg. (configure.ac): Remove gl_LINUX_IF_ALG_H invocation. (Makefile.am): Don't mention af_alg.c here.
Diffstat (limited to 'modules/crypto/sha512')
-rw-r--r--modules/crypto/sha5128
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/crypto/sha512 b/modules/crypto/sha512
index d6f9b9986d..cedc31c1dc 100644
--- a/modules/crypto/sha512
+++ b/modules/crypto/sha512
@@ -5,14 +5,11 @@ Files:
lib/gl_openssl.h
lib/sha512.h
lib/sha512.c
-lib/af_alg.h
-lib/af_alg.c
-lib/sys-limits.h
m4/gl-openssl.m4
m4/sha512.m4
-m4/linux-if-alg.m4
Depends-on:
+crypto/af_alg
extern-inline
stdalign
stdint
@@ -22,10 +19,9 @@ u64
configure.ac:
gl_SHA512
-gl_LINUX_IF_ALG_H
Makefile.am:
-lib_SOURCES += sha512.c af_alg.c
+lib_SOURCES += sha512.c
Include:
"sha512.h"