mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-08-08 09:21:48 +08:00
Merge branch 'tmp-nettle4' into 'master'
Build against GNU Nettle 4 Closes #697 See merge request openconnect/ocserv!535
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user