summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 986f3ae..63735bf 100644
--- a/main.cpp
+++ b/main.cpp
@@ -19,3 +19,16 @@
#include "commonheaders.h"
+int gpg_init()
+{
+ setlocale (LC_ALL, "");
+ gpgme_check_version (NULL);
+ gpgme_set_locale (NULL, LC_CTYPE, setlocale (LC_CTYPE, NULL));
+#ifdef LC_MESSAGES
+ gpgme_set_locale (NULL, LC_MESSAGES, setlocale (LC_MESSAGES, NULL));
+#endif
+ gpgme_protocol_t proto = GPGME_PROTOCOL_UNKNOWN;
+ gpgme_ctx_t ctx;
+ gpgme_new(&ctx);
+ return 0;
+}