From ebb2e36cc4c40d11689a44a2503df40fa96e8fc1 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 11 Aug 2011 20:15:15 -0500 Subject: Load and allow access to sha256sum This adds a field in the package struct for this checksum type as well as allowing access via the API to it. The frontend is now able to display any read value. Note that this does not implement any use or verification of the value internally. Signed-off-by: Dan McGee --- lib/libalpm/package.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libalpm/package.h') diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h index d19d8332..b60bbf76 100644 --- a/lib/libalpm/package.h +++ b/lib/libalpm/package.h @@ -55,6 +55,7 @@ struct pkg_operations { time_t (*get_installdate) (alpm_pkg_t *); const char *(*get_packager) (alpm_pkg_t *); const char *(*get_md5sum) (alpm_pkg_t *); + const char *(*get_sha256sum) (alpm_pkg_t *); const char *(*get_arch) (alpm_pkg_t *); off_t (*get_size) (alpm_pkg_t *); off_t (*get_isize) (alpm_pkg_t *); @@ -100,6 +101,7 @@ struct __alpm_pkg_t { char *url; char *packager; char *md5sum; + char *sha256sum; char *base64_sig; char *arch; -- cgit v1.2.3-24-g4f1b