head 1.2; access; symbols; locks; strict; comment @ * @; 1.2 date 2026.06.03.13.11.56; author wiz; state dead; branches; next 1.1; commitid OISS6kFEQDvWZlIG; 1.1 date 2026.05.24.10.12.27; author tnn; state Exp; branches; next ; commitid anS3YMxazU89k3HG; desc @@ 1.2 log @modular-xorg-server: update to 21.1.23. Security fix release. @ text @$NetBSD: patch-os_xsha1.c,v 1.1 2026/05/24 10:12:27 tnn Exp $ - handle nettle 4 API change --- os/xsha1.c.orig 2026-05-24 09:00:16.266998201 +0000 +++ os/xsha1.c @@@@ -152,7 +152,7 @@@@ x_sha1_final(void *ctx, unsigned char re #elif defined(HAVE_SHA1_IN_LIBNETTLE) /* Use libnettle for SHA1 */ -#include +#include void * x_sha1_init(void) @@@@ -175,7 +175,7 @@@@ x_sha1_update(void *ctx, void *data, int int x_sha1_final(void *ctx, unsigned char result[20]) { - sha1_digest(ctx, 20, result); + sha1_digest(ctx, result); free(ctx); return 1; } @ 1.1 log @modular-xorg-server: handle nettle 4 API change @ text @d1 1 a1 1 $NetBSD$ @