Skip to contentSkip to conversation

crypto: Fix data type for len parameter in two typedefs

Qemu-devel Stefan Weil 3 participants 3 messages Jul 18, 2019 – Jul 19, 2019 Crypto API

lore
Share & tools
lore
#0 lore raw
---
 crypto/hash-nettle.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
crypto/hash-nettle.c +2 -2
index 96f186f442..074cece468 100644
@@ -28,10 +28,10 @@
 
 typedef void (*qcrypto_nettle_init)(void *ctx);
 typedef void (*qcrypto_nettle_write)(void *ctx,
-                                     unsigned int len,
+                                     size_t len,
                                      const uint8_t *buf);
 typedef void (*qcrypto_nettle_result)(void *ctx,
-                                      unsigned int len,
+                                      size_t len,
                                       uint8_t *buf);
 
 union qcrypto_hash_ctx {
Signature · 1 line
2.20.1
#2 lore raw
In reply to Stefan Weil
Quoted 4 lines · Stefan Weil
---
 crypto/hash-nettle.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

FYI, A different fix for this problem is now merged.

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|