]> Git Repo - qemu.git/commit
crypto: fix function signatures for nettle 2.7 vs 3
authorDaniel P. Berrangé <[email protected]>
Fri, 12 Jul 2019 10:14:19 +0000 (11:14 +0100)
committerDaniel P. Berrangé <[email protected]>
Fri, 19 Jul 2019 11:48:22 +0000 (12:48 +0100)
commitf887849007312454574ebc1057a438beaa2916df
tree3eb356915aade4fad4600d6e56d90e0a318e3f0d
parente8e67ca4c17f4d525330d2d6b9b0a3cd19174c06
crypto: fix function signatures for nettle 2.7 vs 3

Nettle version 2.7.x used 'unsigned int' instead of 'size_t' for length
parameters in functions. Use a local typedef so that we can build with
the correct signature depending on nettle version, as we already do in
the cipher code.

Reported-by: Amol Surati <[email protected]>
Reviewed-by: Alex Bennée <[email protected]>
Tested-by: Alex Bennée <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Daniel P. Berrangé <[email protected]>
crypto/hash-nettle.c
crypto/hmac-nettle.c
This page took 0.025473 seconds and 4 git commands to generate.