diff options
author | Dan McGee <dan@archlinux.org> | 2011-08-12 03:15:15 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-15 19:11:55 +0200 |
commit | ebb2e36cc4c40d11689a44a2503df40fa96e8fc1 (patch) | |
tree | aa75da8cd9fc082b7b5278ed783bb8ff98f818f9 /lib/libalpm/alpm.h | |
parent | 31f2e0cba3281660a2a3ffc6f902a7019cb4699b (diff) | |
download | pacman-ebb2e36cc4c40d11689a44a2503df40fa96e8fc1.tar.gz pacman-ebb2e36cc4c40d11689a44a2503df40fa96e8fc1.tar.xz |
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 <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm.h')
-rw-r--r-- | lib/libalpm/alpm.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index 6d696ec8..3febd0ec 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -609,12 +609,19 @@ time_t alpm_pkg_get_installdate(alpm_pkg_t *pkg); const char *alpm_pkg_get_packager(alpm_pkg_t *pkg); /** Returns the package's MD5 checksum as a string. - * The returned string is a sequence of lowercase hexadecimal digits. + * The returned string is a sequence of 32 lowercase hexadecimal digits. * @param pkg a pointer to package * @return a reference to an internal string */ const char *alpm_pkg_get_md5sum(alpm_pkg_t *pkg); +/** Returns the package's SHA256 checksum as a string. + * The returned string is a sequence of 64 lowercase hexadecimal digits. + * @param pkg a pointer to package + * @return a reference to an internal string + */ +const char *alpm_pkg_get_sha256sum(alpm_pkg_t *pkg); + /** Returns the architecture for which the package was built. * @param pkg a pointer to package * @return a reference to an internal string |