OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Marc Espie (espiecvs.openbsd.org)
Date: Mon Oct 06 2008 - 04:36:17 CDT


CVSROOT: /cvs
Module name: src
Changes by: espiecvs.openbsd.org 2008/10/06 03:36:17

Modified files:
        usr.sbin/pkg_add: pkg_create pkg_merge
        usr.sbin/pkg_add/OpenBSD: Add.pm CollisionReport.pm Delete.pm
                                  PackingElement.pm PackingList.pm
                                  md5.pm

Log message:
turn the checksums stored in packing elements into real objects, so that
pkg_add becomes mostly independent of the type of checksum stored.

separate md5 into an abstract OpenBSD::digest class and an md5 subclass
with specific methods to compute checksums and serialize results, and create
an sha class that does the same thing with sha256 (with a base64 serializer)