diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-09 23:57:47 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-09 23:57:47 +0300 |
commit | 51a8187ac271415b2eb451e19b3c63eb4a5fd0db (patch) | |
tree | c75a15f96aff7c311b8805e4c834e9c0d8964545 /main.cpp | |
parent | 8280bdbb5b6fb83a2d1b4ce5276cb77e437a4447 (diff) |
modified: commonheaders.h
modified: main.cpp
new file: new_gpg.icproj
modified: new_gpg.rc
modified: new_gpg.sln
modified: new_gpg.vcproj
modified: options.cpp
modified: resource.h
modified: utilities.cpp
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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; } |