[Bug 270023] usr.sbin/pkg doesn't compile with OpenSSL 3
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 19 May 2023 08:18:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270023 --- Comment #4 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=7bc2192380e10f3469ab4eda69ade324aae976cd commit 7bc2192380e10f3469ab4eda69ade324aae976cd Author: Baptiste Daroussin <bapt@FreeBSD.org> AuthorDate: 2023-03-09 16:38:30 +0000 Commit: Baptiste Daroussin <bapt@FreeBSD.org> CommitDate: 2023-05-19 08:16:51 +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 (cherry picked from commit b2654064c2d11a1ee36667b3ff8b0f4d2536af74) 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.