151 |
static int |
static int |
152 |
check_crypto_engine (void) |
check_crypto_engine (void) |
153 |
{ |
{ |
154 |
int ma=1, mi=4, pa=0; /* GPG 1.4.0 */ |
int ma=1, mi=4, pa=1; /* GPG 1.4.1 */ |
155 |
int rc; |
int rc; |
156 |
|
|
157 |
rc = check_gnupg_engine (&ma, &mi, &pa); |
rc = check_gnupg_engine (&ma, &mi, &pa); |
214 |
|
|
215 |
char* get_subkey_fingerprint (gpgme_ctx_t ctx, const char *keyid); |
char* get_subkey_fingerprint (gpgme_ctx_t ctx, const char *keyid); |
216 |
|
|
|
int WINAPI |
|
217 |
|
|
218 |
|
int WINAPI |
219 |
WinMain (HINSTANCE hinst, HINSTANCE hprev, LPSTR cmdline, int showcmd) |
WinMain (HINSTANCE hinst, HINSTANCE hprev, LPSTR cmdline, int showcmd) |
220 |
{ |
{ |
221 |
WNDCLASS wc = {0, winpt_main_proc, 0, 0, hinst, 0, 0, 0, 0, PGM_NAME}; |
WNDCLASS wc = {0, winpt_main_proc, 0, 0, hinst, 0, 0, 0, 0, PGM_NAME}; |
384 |
GetDesktopWindow(), keymanager_dlg_proc, NULL, |
GetDesktopWindow(), keymanager_dlg_proc, NULL, |
385 |
_("Key Manager"), IDS_WINPT_KEYMISC); |
_("Key Manager"), IDS_WINPT_KEYMISC); |
386 |
else { |
else { |
387 |
gpg_card_t crd = smartcard_init (); |
gpg_card_t crd = gpg_card_load (); |
388 |
if (crd) |
if (crd) |
389 |
dialog_box_param (glob_hinst, (LPCTSTR)IDD_WINPT_CARD_EDIT, |
dialog_box_param (glob_hinst, (LPCTSTR)IDD_WINPT_CARD_EDIT, |
390 |
GetDesktopWindow(), card_edit_dlg_proc, |
GetDesktopWindow(), card_edit_dlg_proc, |