summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2016-10-04 14:24:46 +0000
committerMarc Espie <espie@cvs.openbsd.org>2016-10-04 14:24:46 +0000
commit546bd89c76d117dd3db2312de85e368b9a7820fc (patch)
treecfd5cc573cd2ac478c8ec7175ac4865e0990ab2f /usr.sbin/pkg_add
parent1f40539ca0dc6c276f02b84190e837c015457096 (diff)
check_signature is gone
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackingList.pm20
1 files changed, 1 insertions, 19 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingList.pm b/usr.sbin/pkg_add/OpenBSD/PackingList.pm
index 7e84032a7cc..429b4082542 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackingList.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackingList.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackingList.pm,v 1.141 2016/09/27 21:31:20 naddy Exp $
+# $OpenBSD: PackingList.pm,v 1.142 2016/10/04 14:24:45 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
@@ -539,24 +539,6 @@ sub to_installation
$self->tofile(OpenBSD::PackageInfo::installed_contents($self->pkgname));
}
-sub check_signature
-{
- my ($plist, $state) = @_;
- my $sig = $plist->get('digital-signature');
- if ($sig->{key} eq 'x509') {
- require OpenBSD::x509;
- return OpenBSD::x509::check_signature($plist, $state);
- } elsif ($sig->{key} eq 'signify' && $state->defines('oldsign')) {
- require OpenBSD::signify;
- return OpenBSD::signify::check_signature($plist, $state);
- } elsif ($sig->{key} eq 'signify2') {
- return 1;
- } else {
- $state->log("Error: unknown signature style $sig->{key}");
- return 0;
- }
-}
-
sub forget
{
}