Re:_git:_b2654064c2d1_-_main_-_pkg(7):_ use_libmd_for_sha256_instead_of_openssl

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Thu, 09 Mar 2023 17:12:11 UTC
Le 9 mars 2023 18:00:13 GMT+01:00, Kyle Evans <kevans@freebsd.org> a écrit :
>On Thu, Mar 9, 2023 at 10:43 AM Baptiste Daroussin <bapt@freebsd.org> wrote:
>>
>> The branch main has been updated by bapt:
>>
>> URL: https://cgit.FreeBSD.org/src/commit/?id=b2654064c2d11a1ee36667b3ff8b0f4d2536af74
>>
>> commit b2654064c2d11a1ee36667b3ff8b0f4d2536af74
>> Author:     Baptiste Daroussin <bapt@FreeBSD.org>
>> AuthorDate: 2023-03-09 16:38:30 +0000
>> Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
>> CommitDate: 2023-03-09 16:43:01 +0000
>>
>>     pkg(7): use libmd for sha256 instead of openssl
>>
>>     OpenSSL 3.0 has deprecated the sha256 api, let's use libmd which has the
>>     same API instead.
>>
>>     In order to avoid the collision in definitions (sha256.h cannot be
>>     included in the same file as a file where openssl headers has been
>>     included) let's move the sha256 related code in its own file
>>
>>     PR:             270023
>>     Reported by:    ngie
>> ---
>
>If we're going to link against libmd anyways, any reason to keep these
>implementations vs using the provided SHA256_Data and SHA256_Fd?
>
>Thanks,
>
>Kyle Evans

Nope nom reasons indeed

Bapt