summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-12-07 13:20:25 -0600
committerDan McGee <dan@archlinux.org>2011-03-23 03:16:29 -0500
commit061948597dd0fc4fda4197b7bfca6f730c43b9c8 (patch)
treed4605449401a7777d49dfbd9221b2f5131d6a954
parent4ae902ec5fb286a7826214f73f718a41cdf82ddb (diff)
downloadpacman-061948597dd0fc4fda4197b7bfca6f730c43b9c8.tar.xz
Add some error codes for signature verification
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--lib/libalpm/alpm.h3
-rw-r--r--lib/libalpm/error.c5
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index faba1330..1c8d232e 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -526,6 +526,9 @@ enum _pmerrno_t {
PM_ERR_PKG_INVALID_NAME,
PM_ERR_PKG_INVALID_ARCH,
PM_ERR_PKG_REPO_NOT_FOUND,
+ /* Signatures */
+ PM_ERR_SIG_INVALID,
+ PM_ERR_SIG_UNKNOWN,
/* Deltas */
PM_ERR_DLT_INVALID,
PM_ERR_DLT_PATCHFAILED,
diff --git a/lib/libalpm/error.c b/lib/libalpm/error.c
index dcf26074..71c058f6 100644
--- a/lib/libalpm/error.c
+++ b/lib/libalpm/error.c
@@ -115,6 +115,11 @@ const char SYMEXPORT *alpm_strerror(int err)
return _("package architecture is not valid");
case PM_ERR_PKG_REPO_NOT_FOUND:
return _("could not find repository for target");
+ /* Signatures */
+ case PM_ERR_SIG_INVALID:
+ return _("invalid PGP signature");
+ case PM_ERR_SIG_UNKNOWN:
+ return _("unknown PGP signature");
/* Deltas */
case PM_ERR_DLT_INVALID:
return _("invalid or corrupted delta");