summaryrefslogtreecommitdiff
path: root/src/gpg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpg.h')
-rw-r--r--src/gpg.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/gpg.h b/src/gpg.h
index 959c3f5..38ae4b2 100644
--- a/src/gpg.h
+++ b/src/gpg.h
@@ -17,12 +17,19 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include <gpgme.h>
#include <locale.h>
-int gpgme_data_fwrite(gpgme_data_t, FILE*);
+int gpg_data_fwrite(gpgme_data_t, FILE*);
-int gpg_init(gpgme_ctx_t*);
-size_t gpg_decrypt(char*, gpgme_ctx_t*, gpgme_data_t);
+gpgme_error_t init_gpg(gpgme_ctx_t*, gpgme_protocol_t);
+gpgme_decrypt_result_t gpg_decrypt_file(char*, char*, gpgme_ctx_t);
+
+char** gpg_recip_get_keyids(gpgme_recipient_t);
+
+void gpg_keyids_release(char**);
+
+gpgme_key_t* gpg_keyids_to_key_t(gpgme_ctx_t, char**);
+
+size_t gpg_encrypt_file(char*, char*, char**);

Generated by cgit