libmicrohttpd: Use external hashing functions
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>
Sun, 27 Oct 2024 16:23:40 +0000 (17:23 +0100)
committerRosen Penev <rosenp@gmail.com>
Sun, 27 Oct 2024 22:51:33 +0000 (15:51 -0700)
When compiled with GnuTLS external functions can be used to calculate
hashes. Enable them to reduce the library binary size (by disabling
internal code for hash calculations).
Note: libmicrohttpd 1.0.0 or later required

Signed-off-by: Evgeny Grin (Karlson2k) <k2k@narod.ru>
libs/libmicrohttpd/Makefile

index 20d1febd2b8f85c118a6675ea06ff4e5da0a70a2..e3f392118e641cae1a4acba653644914ace1ed12 100644 (file)
@@ -63,7 +63,9 @@ CONFIGURE_ARGS += \
 ifeq ($(BUILD_VARIANT),ssl)
 CONFIGURE_ARGS += \
        --enable-https \
-       --with-gnutls
+       --with-gnutls \
+       --enable-md5=tlslib \
+       --enable-sha256=tlslib
 else
 CONFIGURE_ARGS += \
        --disable-https \