187 |
return rc; |
return rc; |
188 |
} |
} |
189 |
/* We enable smartcard support for GPG: 1.9 or >= 1.4 */ |
/* We enable smartcard support for GPG: 1.9 or >= 1.4 */ |
190 |
if (ma >= 1 && mi >= 4) |
if ((ma == 1 && mi >= 4) || ma > 1) |
191 |
scard_support = 1; |
scard_support = 1; |
192 |
|
|
193 |
gpgver[0] = ma; |
gpgver[0] = ma; |
254 |
|
|
255 |
glob_hinst = hinst; |
glob_hinst = hinst; |
256 |
|
|
257 |
#ifdef _DEBUG |
#ifdef _DEBUG |
258 |
gpg_set_debug_mode (1); |
gpg_set_debug_mode (1); |
259 |
debug = 1; |
debug = 1; |
260 |
#endif |
#endif |
261 |
|
|
262 |
s = PTD_get_version (); |
s = PTD_get_version (); |
263 |
if (strcmp (s, MIN_PTD_VER)) { |
// FIXME: Using strcmp here is wrong |
264 |
log_box (_("Privacy Tray Dynamic (PTD)"), MB_ERR, |
// if (strcmp (s, MIN_PTD_VER)) { |
265 |
_("Please update your PTD.dll to the newest version, " |
// log_box (_("Privacy Tray Dynamic (PTD)"), MB_ERR, |
266 |
"the version (%s) you use is too old."), s); |
// _("Please update your PTD.dll to the newest version, " |
267 |
return 0; |
// "the version (%s) you use is too old."), s); |
268 |
} |
// return 0; |
269 |
|
// } |
270 |
|
|
271 |
if (gpg_md_selftest ()) { |
if (gpg_md_selftest ()) { |
272 |
msg_box (NULL, _("Cryptographic selftest failed."), |
msg_box (NULL, _("Cryptographic selftest failed."), |