summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackingElement.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackingElement.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
index 4662cdd5dec..2b29a4b46d7 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackingElement.pm,v 1.154 2009/03/05 10:43:00 espie Exp $
+# $OpenBSD: PackingElement.pm,v 1.155 2009/04/14 17:53:58 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -387,6 +387,7 @@ sub may_check_digest
sub check_digest
{
my ($self, $file, $state) = @_;
+ return if $self->{link} or $self->{symlink};
if (!defined $self->{d}) {
$state->fatal($self->fullname, " does not have a signature");
}
@@ -1646,6 +1647,12 @@ sub new
$class;
}
+sub new_x509
+{
+ my ($class) = @_;
+ bless { key => 'x509', timestamp => time, b64sig => '' }, $class;
+}
+
sub stringize
{