diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-04-14 17:53:59 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-04-14 17:53:59 +0000 |
commit | 0eeedccf76bc2c7471d658552dead38ad5afbea9 (patch) | |
tree | bbf9b52d2bae817a80f29da0813928d1638a8e8f /usr.sbin/pkg_add/OpenBSD/PackingElement.pm | |
parent | ed3a64d9765d596b326e1d8ef28e5c975a742929 (diff) |
initial implementation of package signatures, based on x509 certificates and
smime detached signatures.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackingElement.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackingElement.pm | 9 |
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 { |