Merge branch 'tmp-nettle4' into 'master'

Build against GNU Nettle 4

Closes #697

See merge request openconnect/ocserv!535
This commit is contained in:
Dimitri Papadopoulos Orfanos
2026-05-18 01:57:20 +03:00
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -13,6 +13,7 @@
- Limited HTTP header size to 16 KB to complement the existing 256 KB
body limit
- Fix build issue on FreeBSD (#704)
- Build against Nettle 4.
* Version 1.4.2 (released 2026-04-16)
+4
View File
@@ -51,7 +51,11 @@ void generate_hmac(size_t key_length, const uint8_t *key,
}
}
#if NETTLE_MAJOR >= 4
hmac_sha256_digest(&ctx, digest);
#else
hmac_sha256_digest(&ctx, HMAC_DIGEST_SIZE, digest);
#endif
safe_memset(&ctx, 0, sizeof(ctx));
}