HomeFreeBSD

pkg(7): use libmd for sha256 instead of openssl

Description

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

(cherry picked from commit b2654064c2d11a1ee36667b3ff8b0f4d2536af74)

Details

Provenance
baptAuthored on Mar 9 2023, 4:38 PM
Parents
rG49c6050210a7: pci_vendors: update to 2023-05-15
Branches
Unknown
Tags
Unknown