From 439979c0004197d6e0dd67c7807f57edacdf8a0d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 19 Sep 2021 01:35:19 +0200 Subject: md5: Clarify module to source relation. * lib/md5-stream.c: New file, extracted from lib/md5.c. * lib/md5.c: Don't include stdlib.h, unlocked-io.h. (BLOCKSIZE, md5_stream): Moved to md5-stream.c. * lib/md5.h: Tweak. * modules/crypto/md5 (Files): Add lib/md5-stream.c. (configure.ac): Don't define GL_COMPILE_CRYPTO_STREAM. (Makefile.am): Arrange to compile md5-stream.c. (Link): Mention $(LIB_CRYPTO). --- modules/crypto/md5 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/crypto/md5') diff --git a/modules/crypto/md5 b/modules/crypto/md5 index afcdbc38fa..ea9722ed3b 100644 --- a/modules/crypto/md5 +++ b/modules/crypto/md5 @@ -2,19 +2,23 @@ Description: Compute MD5 checksum. Files: +lib/md5-stream.c Depends-on: crypto/af_alg crypto/md5-buffer configure.ac: -AC_DEFINE([GL_COMPILE_CRYPTO_STREAM], 1, [Compile Gnulib crypto stream ops.]) Makefile.am: +lib_SOURCES += md5-stream.c Include: "md5.h" +Link: +$(LIB_CRYPTO) + License: LGPLv2+ -- cgit v1.2.1