head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.09.14.21.50.24; author tnn; state Exp; branches; next ; commitid n4hLzem7udytyDVG; desc @@ 1.1 log @tigervnc: fix build on Linux @ text @$NetBSD$ - handle nettle 4 API change --- unix/xserver/os/xsha1.c.orig 2026-05-24 10:08:04.017415329 +0000 +++ unix/xserver/os/xsha1.c @@@@ -143,7 +143,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) @@@@ -166,7 +166,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; } @