[vlc-devel] [PATCH v3 02/14] src: add cleaner md5 API
Marvin Scholz
epirat07 at gmail.com
Wed Apr 8 16:56:32 CEST 2020
On 8 Apr 2020, at 16:54, Francois Cartegnie wrote:
> Le 08/04/2020 à 16:10, Marvin Scholz a écrit :
>> +void vlc_hash_md5_FinishHex(vlc_hash_md5_t *ctx, char *output,
>> size_t size)
>> +{
>> + assert(size >= VLC_HASH_MD5_DIGEST_SIZE);
>> + VLC_UNUSED(size);
>> +
>> + md5_final(&ctx->priv);
>> + vlc_hex_encode_binary(ctx->priv.buf, VLC_HASH_MD5_DIGEST_SIZE,
>> output);
>> + vlc_hash_md5_Init(ctx);
>
> That's still creating an API for something not related to md5.
And whats the issue with that?
This is used in numerous places in VLC, so clearly it warrants a
convenience function. It was there before this patchset too and no
one had a problem with it?
>
> --
> Francois Cartegnie
> VideoLAN - VLC Developer
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list