summaryrefslogtreecommitdiffstats
path: root/src/sequoia.h
diff options
context:
space:
mode:
authorJustus Winter <justus@pep-project.org>2017-12-07 14:42:41 +0100
committerJustus Winter <justus@pep-project.org>2017-12-07 18:53:18 +0100
commit9826b979eeeaf385d5bbf5f3a5b877c698273709 (patch)
treeea0676e3d8a50f4219e8c0ff07fe5bbfefd6ae7c /src/sequoia.h
parent4eddd4d175860139fa3f477ca8c426e92ffa7b50 (diff)
Add types for working with OpenPGP.
- Add KeyId to identify keys.
Diffstat (limited to 'src/sequoia.h')
-rw-r--r--src/sequoia.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/sequoia.h b/src/sequoia.h
index 4d43d99c..51ac441b 100644
--- a/src/sequoia.h
+++ b/src/sequoia.h
@@ -1,14 +1,19 @@
#ifndef SEQUOIA_H
#define SEQUOIA_H
-struct sq_context;
+#include <stdint.h>
+struct sq_context;
struct sq_context *sq_context_new(const char *domain, const char *home,
const char *lib);
void sq_context_free(struct sq_context *context);
-struct sq_tpk;
+struct sq_keyid;
+struct sq_keyid *sq_keyid_new (uint64_t id);
+struct sq_keyid *sq_keyid_from_hex (const char *id);
+void sq_keyid_free (struct sq_keyid *keyid);
+struct sq_tpk;
struct sq_tpk *sq_tpk_from_bytes (const char *b, size_t len);
void sq_tpk_dump (const struct sq_tpk *tpk);
void sq_tpk_free (struct sq_tpk *tpk);