diff options
author | Daniel P. Berrangé | 2021-05-14 14:04:07 +0200 |
---|---|---|
committer | Thomas Huth | 2021-06-02 07:04:55 +0200 |
commit | 115e4b70037ddf6014efa4ffcd01e7fa3497a741 (patch) | |
tree | bab3ce77c2fbebc47e55353830db6362ffb0c9de /crypto/hash-nettle.c | |
parent | crypto: bump min nettle to 3.4, dropping RHEL-7 support (diff) | |
download | qemu-115e4b70037ddf6014efa4ffcd01e7fa3497a741.tar.gz qemu-115e4b70037ddf6014efa4ffcd01e7fa3497a741.tar.xz qemu-115e4b70037ddf6014efa4ffcd01e7fa3497a741.zip |
crypto: drop back compatibility typedefs for nettle
Now that we only support modern nettle, we don't need to have local
typedefs to mask the real nettle types.
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20210514120415.1368922-5-berrange@redhat.com>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'crypto/hash-nettle.c')
-rw-r--r-- | crypto/hash-nettle.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/hash-nettle.c b/crypto/hash-nettle.c index 5c8977fb80..1ca1a41062 100644 --- a/crypto/hash-nettle.c +++ b/crypto/hash-nettle.c @@ -26,14 +26,12 @@ #include <nettle/sha.h> #include <nettle/ripemd160.h> -typedef size_t hash_length_t; - typedef void (*qcrypto_nettle_init)(void *ctx); typedef void (*qcrypto_nettle_write)(void *ctx, - hash_length_t len, + size_t len, const uint8_t *buf); typedef void (*qcrypto_nettle_result)(void *ctx, - hash_length_t len, + size_t len, uint8_t *buf); union qcrypto_hash_ctx { |