Package: rtmpdump
Version: 2.6-1

Hello,

rtmpdump FTBFS agains nettle 4 with multiple errors like these:
handshake.h:55:70: error: too many arguments to function 
‘nettle_hmac_sha256_digest’; expected 2, have 3
   55 | #define HMAC_finish(ctx, dig, dlen)     dlen = SHA256_DIGEST_LENGTH; 
hmac_sha256_digest(&ctx, SHA256_DIGEST_LENGTH, dig)
      |                                                                      
^~~~~~~~~~~~~~~~~~

Nettle 4.0 is a API breaking release, see the NEWS file.

    The most disruptive API change is that the *_digest functions no longer 
takes the desired digest size as argument. Truncated hashes appeared to be an 
important use case decades ago when the previous interface was designed, but 
that is now rather obscure.

nettle3 compat can be kept with #ifdefs e.g. (ocserv):

+#include <nettle/version.h>
[...]
+#if NETTLE_VERSION_MAJOR >= 4
+       sha1_digest(&ctx, output);
+#else
        sha1_digest(&ctx, 20, output);
+#endif


I sent this to the upstream ML (rtmpdump at mplayerhq.hu) in October but
looking at the archives the list seems to have been shut down.

cu Andreas


----- End forwarded message -----
-- 
"You people are noisy," Nia said.
I made the gesture of agreement.

Reply via email to