diff options
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/alpm.h | 6 | ||||
-rw-r--r-- | lib/libalpm/package.c | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index 6ed82e40..3bbef0ab 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -713,6 +713,12 @@ alpm_list_t *alpm_pkg_get_backup(alpm_pkg_t *pkg); */ alpm_db_t *alpm_pkg_get_db(alpm_pkg_t *pkg); +/** Retuns the base64 encoded package signature. + * @param pkg a pointer to package + * @return a reference to an internal string + */ +const char *alpm_pkg_get_base64_sig(alpm_pkg_t *pkg); + /* End of alpm_pkg_t accessors */ /* @} */ diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index 947f62e0..e5136c77 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -229,6 +229,13 @@ const char SYMEXPORT *alpm_pkg_get_md5sum(alpm_pkg_t *pkg) return pkg->ops->get_md5sum(pkg); } +const char SYMEXPORT *alpm_pkg_get_base64_sig(alpm_pkg_t *pkg) +{ + ASSERT(pkg != NULL, return NULL); + pkg->handle->pm_errno = 0; + return pkg->base64_sig; +} + const char SYMEXPORT *alpm_pkg_get_arch(alpm_pkg_t *pkg) { ASSERT(pkg != NULL, return NULL); |