Source: ssh-agent-filter
Version: 0.5.2-1.1
Severity: normal

Hello,

ssh-agent-filter FTBFS against nettle 4 with:

rfc2617.c: In function 'DigestCalcHA1':
rfc2617.c:108:9: error: passing argument 2 of 'nettle_md5_digest' makes pointer 
from integer without a cast [-Wint-conversion]
  108 |         SquidMD5Final((unsigned char *) HA1, &Md5Ctx);
      |         ^~~~~~~~~~~~~
      |         |
      |         int
In file included from ../include/md5.h:13,
                 from rfc2617.c:24:
/usr/include/nettle/md5.h:73:21: note: expected 'uint8_t *' {aka 'unsigned char 
*'} but argument is of type 'int'
   73 |            uint8_t *digest);
      |            ~~~~~~~~~^~~~~~
../include/md5.h:19:31: error: too many arguments to function 
'nettle_md5_digest'; expected 2, have 3
   19 | #define SquidMD5Final(d,c)    md5_digest((c), MD5_DIGEST_SIZE, (uint8_t 
*)(d))
      |                               ^~~~~~~~~~
rfc2617.c:108:9: note: in expansion of macro 'SquidMD5Final'
  108 |         SquidMD5Final((unsigned char *) HA1, &Md5Ctx);
      |         ^~~~~~~~~~~~~
/usr/include/nettle/md5.h:72:1: note: declared here
   72 | md5_digest(struct md5_ctx *ctx,
      | ^~~~~~~~~~
rfc2617.c:119:9: error: passing argument 2 of 'nettle_md5_digest' makes pointer 
from integer without a cast [-Wint-conversion]
  119 |         SquidMD5Final((unsigned char *) HA1, &Md5Ctx);
      |         ^~~~~~~~~~~~~
      |         |
      |         int
/usr/include/nettle/md5.h:73:21: note: expected 'uint8_t *' {aka 'unsigned char 
*'} but argument is of type 'int'
   73 |            uint8_t *digest);
      |            ~~~~~~~~~^~~~~~
../include/md5.h:19:31: error: too many arguments to function 
'nettle_md5_digest'; expected 2, have 3
   19 | #define SquidMD5Final(d,c)    md5_digest((c), MD5_DIGEST_SIZE, (uint8_t 
*)(d))
      |                               ^~~~~~~~~~
rfc2617.c:119:9: note: in expansion of macro 'SquidMD5Final'
  119 |         SquidMD5Final((unsigned char *) HA1, &Md5Ctx);
      |         ^~~~~~~~~~~~~
/usr/include/nettle/md5.h:72:1: note: declared here
   72 | md5_digest(struct md5_ctx *ctx,
      | ^~~~~~~~~~
rfc2617.c: In function 'DigestCalcResponse':
rfc2617.c:153:5: error: passing argument 2 of 'nettle_md5_digest' makes pointer 
from integer without a cast [-Wint-conversion]
  153 |     SquidMD5Final((unsigned char *) HA2, &Md5Ctx);
      |     ^~~~~~~~~~~~~
      |     |
      |     int
/usr/include/nettle/md5.h:73:21: note: expected 'uint8_t *' {aka 'unsigned char 
*'} but argument is of type 'int'
   73 |            uint8_t *digest);
      |            ~~~~~~~~~^~~~~~
../include/md5.h:19:31: error: too many arguments to function 
'nettle_md5_digest'; expected 2, have 3
   19 | #define SquidMD5Final(d,c)    md5_digest((c), MD5_DIGEST_SIZE, (uint8_t 
*)(d))
      |                               ^~~~~~~~~~
rfc2617.c:153:5: note: in expansion of macro 'SquidMD5Final'
  153 |     SquidMD5Final((unsigned char *) HA2, &Md5Ctx);
      |     ^~~~~~~~~~~~~
/usr/include/nettle/md5.h:72:1: note: declared here
   72 | md5_digest(struct md5_ctx *ctx,
      | ^~~~~~~~~~
rfc2617.c:172:5: error: passing argument 2 of 'nettle_md5_digest' makes pointer 
from integer without a cast [-Wint-conversion]
  172 |     SquidMD5Final((unsigned char *) RespHash, &Md5Ctx);
      |     ^~~~~~~~~~~~~
      |     |
      |     int
/usr/include/nettle/md5.h:73:21: note: expected 'uint8_t *' {aka 'unsigned char 
*'} but argument is of type 'int'
   73 |            uint8_t *digest);
      |            ~~~~~~~~~^~~~~~
../include/md5.h:19:31: error: too many arguments to function 
'nettle_md5_digest'; expected 2, have 3
   19 | #define SquidMD5Final(d,c)    md5_digest((c), MD5_DIGEST_SIZE, (uint8_t 
*)(d))
      |                               ^~~~~~~~~~
rfc2617.c:172:5: note: in expansion of macro 'SquidMD5Final'
  172 |     SquidMD5Final((unsigned char *) RespHash, &Md5Ctx);
      |     ^~~~~~~~~~~~~
/usr/include/nettle/md5.h:72:1: note: declared here
   72 | md5_digest(struct md5_ctx *ctx,
      | ^~~~~~~~~~

Reporting here since I could not quickly find an upstream tracker. This
found with a testbuild of preliminary packages on debusine.

cu Andreas

Reply via email to