diff options
Diffstat (limited to 'src/gpg.h')
-rw-r--r-- | src/gpg.h | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -14,22 +14,28 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. + +#ifndef GPGEDIT_GPG_H +#define GPGEDIT_GPG_H + #include <stdio.h> #include <stdlib.h> #include <string.h> #include <gpgme.h> #include <locale.h> +#include "gpg_keyids.h" + +#define READSIZE 256 + int gpg_data_fwrite(gpgme_data_t, FILE*); 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**); +size_t gpg_encrypt_file(char*, char*, char**); -gpgme_key_t* gpg_keyids_to_key_t(gpgme_ctx_t, char**); +int gpg_failiferr(gpg_error_t); -size_t gpg_encrypt_file(char*, char*, char**); +#endif |