Hallo Andreas Metzler,

03.03.26 19:02 Andreas Metzler:
> Control: reopen 1129366@ 0.5.2-1.1

> Full build log is here:
> https://debusine.debian.net/debian/developers-ametzler-nettle-v1/artifact/33
> 35818/
> 
> with the actual error
> ssh-agent-filter.C: In function ‘std::string md5_hex(const std::string&)’:
> ssh-agent-filter.C:112:26: error: invalid conversion from ‘int’ to
> ‘uint8_t*’ {aka ‘unsigned char*’} [-fpermissive] 112 |        
> md5_digest(&ctx, MD5_DIGEST_SIZE, bin);
> 
>       |                          ^~~~~~~~~~~~~~~
>       |                          
>       |                          int
> 
> ssh-agent-filter.C:112:19: error: too many arguments to function ‘void
> nettle_md5_digest(md5_ctx*, uint8_t*)’ 112 |         md5_digest(&ctx,
> MD5_DIGEST_SIZE, bin);
> 
>       |                   ^

package nettle-dev:amd64 3.10.1-1 has this in /usr/include/nettle/md5.h:
void md5_digest(struct md5_ctx *ctx, size_t length, uint8_t *digest);

So the new version of nettle has a breaking API change. There is not even 
another function I could use with both the old and the new version. They seem 
to have changed it for all hash functions.

I therefore propose renaming the -dev package to nettle4-dev and maybe also 
the source package to allow upstreams and maintainers to make the switch on 
their schedule.


Grüße
Timo

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to