[Bug 270023] usr.sbin/pkg doesn't compile with OpenSSL 3

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 09 Mar 2023 16:44:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270023

--- Comment #3 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

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

 usr.sbin/pkg/Makefile     |   4 +-
 usr.sbin/pkg/hash.c (new) | 112 ++++++++++++++++++++++++++++++++++++++++++++++
 usr.sbin/pkg/hash.h (new) |  32 +++++++++++++
 usr.sbin/pkg/pkg.c        |  78 +-------------------------------
 4 files changed, 147 insertions(+), 79 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.