From 75642e63a78d501ce03f09db182aa50acd4f78cc Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Thu, 14 Jul 2022 18:03:02 -0500 Subject: [PATCH] Fix gnutls-hmac.patch --- gnutls-hmac.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnutls-hmac.patch b/gnutls-hmac.patch index 8274810..16b02b7 100644 --- a/gnutls-hmac.patch +++ b/gnutls-hmac.patch @@ -1025,15 +1025,15 @@ index 3ac3206df..2fa447984 100644 + GHmac *copy; + + /* No MD5 in FIPS mode. */ -+ hmac = g_hmac_new (G_CHECKSUM_MD5, "abc123", sizeof ("abc123")); ++ hmac = g_hmac_new (G_CHECKSUM_MD5, (guchar *)"abc123", sizeof ("abc123")); + g_assert_null (hmac); + + /* SHA-256 should be good. */ -+ hmac = g_hmac_new (G_CHECKSUM_SHA256, "abc123", sizeof ("abc123")); ++ hmac = g_hmac_new (G_CHECKSUM_SHA256, (guchar *)"abc123", sizeof ("abc123")); + g_assert_nonnull (hmac); + + /* Ensure g_hmac_update() does not crash when called with -1. */ -+ g_hmac_update (hmac, "You win again, gravity!", -1); ++ g_hmac_update (hmac, (guchar *)"You win again, gravity!", -1); + + /* Ensure g_hmac_copy() does not crash. */ + copy = g_hmac_copy (hmac);