aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg/Makefile
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2025-01-01 21:10:28 +0000
committerKyle Evans <kevans@FreeBSD.org>2025-01-11 02:48:31 +0000
commitb5ae765d824471bfd2d1b26a0b748d354d132a48 (patch)
tree0ec2733529369b0e723b345c3ac665ef6fe86ed4 /usr.sbin/pkg/Makefile
parent4e33c2e91835162f994589bceff9a16ed4613d49 (diff)
pkg: finish adding the ECC signer and signature type bits
Signature types need to be parsed out of the key/signature information that we are presented with from the files we download. We use that to understand whicher signer we need to dispatch to. The ECC signer is more-or-less lifted from pkg(8), with some changes to slim it down for pkg(7). Reviewed by: bapt (cherry picked from commit 3d0a0dda3a7d57bbd4eaf65ba8da0f2a36089c0e)
Diffstat (limited to 'usr.sbin/pkg/Makefile')
-rw-r--r--usr.sbin/pkg/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/pkg/Makefile b/usr.sbin/pkg/Makefile
index af0a4d57ee90..b44905ee4976 100644
--- a/usr.sbin/pkg/Makefile
+++ b/usr.sbin/pkg/Makefile
@@ -22,11 +22,14 @@ CONFSNAME_${PKGCONF}= ${PKGCONF:C/\.conf.+$/.conf/}
CONFSDIR= /etc/pkg
CONFSMODE= 644
PROG= pkg
-SRCS= pkg.c rsa.c dns_utils.c config.c hash.c
+SRCS= pkg.c rsa.c dns_utils.c config.c ecc.c hash.c
MAN= pkg.7
CFLAGS+=-I${SRCTOP}/contrib/libucl/include
.PATH: ${SRCTOP}/contrib/libucl/include
-LIBADD= archive fetch ucl crypto ssl util md
+LIBADD= archive der fetch pkgecc ucl crypto ssl util md
+
+CFLAGS+=-I${SRCTOP}/contrib/libder/libder
+CFLAGS+=-I${SRCTOP}/crypto/libecc/include
.include <bsd.prog.mk>