aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme.h
diff options
context:
space:
mode:
authorJason Woodward2007-06-16 06:41:11 +0000
committerJason Woodward2007-06-16 06:41:11 +0000
commit3faba5e19be6cea47ce315e4ee5aca032eea1090 (patch)
tree6febf3e1591b8067bf6913100d67bde979c2b91b /src/gpgme.h
parent549fdf52b1b021c0f608e0a5285461f4e5f6d782 (diff)
downloadslapt-get-3faba5e19be6cea47ce315e4ee5aca032eea1090.tar.gz
* added GPG signature verification via gpgme (thanks Pat Volkerding for
adding gpgme to -current) * Updated downloading in libslapt for better notification. This also resulted in some simplification in code. Removed unused DEBUG ifdefs. Removed deprecated translation strings. Added error condition strings and slapt_strerror() function. New translation strings. Bumped to 0.9.12.
Diffstat (limited to 'src/gpgme.h')
-rw-r--r--src/gpgme.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/gpgme.h b/src/gpgme.h
new file mode 100644
index 0000000..bd12c6d
--- /dev/null
+++ b/src/gpgme.h
@@ -0,0 +1,21 @@
+
+#include <gpgme.h>
+#include <assert.h>
+
+#define SLAPT_GPG_KEY "GPG-KEY"
+#define SLAPT_CHECKSUM_ASC_FILE "CHECKSUMS.md5.asc"
+#define SLAPT_CHECKSUM_ASC_FILE_GZ "CHECKSUMS.md5.gz.asc"
+
+/* retrieve the signature of the CHECKSUMS.md5 file */
+FILE *slapt_get_pkg_source_checksums_signature (const slapt_rc_config *global_config,
+ const char *url,
+ unsigned int *compressed);
+/* retrieve the package sources GPG-KEY */
+FILE *slapt_get_pkg_source_gpg_key(const slapt_rc_config *global_config,
+ const char *url,
+ unsigned int *compressed);
+/* Add the GPG-KEY to the local keyring */
+slapt_code_t slapt_add_pkg_source_gpg_key (FILE *key);
+/* Verify the signature is valid for the checksum file */
+slapt_code_t slapt_gpg_verify_checksums(FILE *checksums, FILE *signature);
+