head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.06.07.18.03.46; author adam; state Exp; branches; next ; commitid IVPPwNKbuws8uTIG; desc @@ 1.1 log @curl/libcurl-gnutls: fix build with nettle 4.0; support Darwin @ text @$NetBSD$ Allow building with nettle 4.0 https://github.com/curl/curl/pull/21169 --- lib/md5.c.orig 2026-04-29 05:45:57.000000000 +0000 +++ lib/md5.c @@@@ -47,6 +47,7 @@@@ #ifdef USE_GNUTLS #include +#include typedef struct md5_ctx my_md5_ctx; @@@@ -64,7 +65,11 @@@@ static void my_md5_update(void *ctx, static void my_md5_final(unsigned char *digest, void *ctx) { +#if NETTLE_VERSION_MAJOR >= 4 + md5_digest(ctx, digest); +#else md5_digest(ctx, 16, digest); +#endif } #elif defined(USE_OPENSSL) && \ @