f12db248e7
If the pkg.conf is configured with SIGNATURE_TYPE: FINGERPRINTS, and FINGERPRINTS: /etc/keys/pkg then a pkg.sig file is fetched along with pkg.txz. The signature contains the signature provided by the signing server, and the public key. The .sig is the exact output from the signing server in the following format: SIGNATURE <openssl signed> CERT <rsa public key> END The signature is verified with the following logic: - If the .sig file is missing, it fails. - If the .sig doesn't validate, it fails. - If the public key in the .sig is not in the known trusted fingerprints, it fails. - If the public key is in the revoked key list, it fails. Approved by: bapt MFC after: 2 days Discussed by: bapt with des, jonathan, gavin
14 lines
328 B
Makefile
14 lines
328 B
Makefile
# $FreeBSD$
|
|
|
|
PROG= pkg
|
|
SRCS= pkg.c dns_utils.c config.c
|
|
|
|
NO_MAN= yes
|
|
CFLAGS+=-I${.CURDIR}/../../contrib/libyaml/include
|
|
.PATH: ${.CURDIR}/../../contrib/libyaml/include
|
|
DPADD= ${LIBARCHIVE} ${LIBELF} ${LIBFETCH} ${LIBYAML} ${LIBSBUF}
|
|
LDADD= -larchive -lelf -lfetch -lyaml -lsbuf -lssl
|
|
USEPRIVATELIB= yaml
|
|
|
|
.include <bsd.prog.mk>
|