Hello,

I tried to build lsh 2.1 against nettle 4 and ended up with:
receive.c: In function ‘rsync_receive’:
receive.c:130:33: error: passing argument 2 of ‘nettle_md5_digest’ makes 
pointer from integer without a cast [-Wint-conversion]
  130 |         md5_digest(&s->sum_md5, MD5_DIGEST_SIZE, s->buf);
      |                                 ^~~~~~~~~~~~~~~
      |                                 |
      |                                 int
In file included from rsync.h:28,
                 from receive.c:13:
/usr/include/nettle/md5.h:73:21: note: expected ‘uint8_t *’ {aka ‘unsigned char 
*’} but argument is of type ‘int’
   73 |            uint8_t *digest);
      |            ~~~~~~~~~^~~~~~
receive.c:130:9: error: too many arguments to function ‘nettle_md5_digest’; 
expected 2, have 3
  130 |         md5_digest(&s->sum_md5, MD5_DIGEST_SIZE, s->buf);
      |         ^~~~~~~~~~
/usr/include/nettle/md5.h:72:1: note: declared here
   72 | md5_digest(struct md5_ctx *ctx,

cu Andreas
_______________________________________________
lsh-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to