summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 63735bf..783ba52 100644
--- a/main.cpp
+++ b/main.cpp
@@ -27,8 +27,17 @@ int gpg_init()
#ifdef LC_MESSAGES
gpgme_set_locale (NULL, LC_MESSAGES, setlocale (LC_MESSAGES, NULL));
#endif
- gpgme_protocol_t proto = GPGME_PROTOCOL_UNKNOWN;
+ gpgme_error_t err;
gpgme_ctx_t ctx;
- gpgme_new(&ctx);
+ err = gpgme_new(&ctx);
+ TCHAR error[128];
+ mir_sntprintf(error, 128, _T("%d"), error);
+// MessageBox(0, error, _T("info"), MB_OK);
+/* gpgme_protocol_t proto = GPGME_PROTOCOL_OpenPGP;
+ char *tmp = mir_t2a(UniGetContactSettingUtf(NULL, szModuleName, "szGpgBinPath", _T("")));
+ char *tmp2 = mir_t2a(UniGetContactSettingUtf(NULL, szModuleName, "szHomePath", _T("")));
+ gpgme_ctx_set_engine_info(ctx, proto, tmp, tmp2);
+ mir_free(tmp);
+ mir_free(tmp2); */
return 0;
}