[vlc-devel] [PATCH 02/14] src: add cleaner md5 API

Francois Cartegnie fcvlcdev at free.fr
Thu Apr 2 11:25:26 CEST 2020


Le 02/04/2020 à 08:17, Rémi Denis-Courmont a écrit :
> Hi,
> 
> If you add a parameter, there's no way to make the init function not allocate memory and return void. I much prefer this specific Nettle style over the generic gcrypt style (at least in C).

nothing prevents having a 2 step setup to query buffer size and validate
support, then feed init with proper buffer.


-- 
Francois Cartegnie
VideoLAN - VLC Developer


More information about the vlc-devel mailing list