diff options
Diffstat (limited to 'src/gpg.h')
-rw-r--r-- | src/gpg.h | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -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**); |