/[winpt]/trunk/Src/ChangeLog
ViewVC logotype

Contents of /trunk/Src/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 246 - (show annotations)
Tue Jul 11 08:55:57 2006 UTC (18 years, 7 months ago) by twoaday
File size: 227982 byte(s)


1 2006-07-05 Timo Schulz <[email protected]>
2
3 * wptMainProc.cpp (winpt_main_proc): Change menu texts.
4 * wptClipEditDlg.cpp (clip_edit_dlg_proc): More lightweight
5 with a menu instead of dozen of buttons.
6
7 2006-07-01 Timo Schulz <[email protected]>
8
9 * wptFileManager.cpp (fm_sort): Rewritten.
10 (fm_build): Modify param type. Change all callers.
11 (fm_cmp_cb): Adjusted for the new code.
12 * wptMDSumDlg.cpp (mdsum_dlg_proc): Minor changes and model
13 for the list view.
14 * wptFileManagerDlg.cpp (file_manager_dlg_proc): Use info
15 context and model for the list view.
16 (update_status_bar): Fix calculation of the size of the
17 selected files.
18 * wptProgressDlg.cpp (wait_for_progress_cb): Changed semantic
19 and return type.
20
21 2006-06-28 Timo Schulz <[email protected]>
22
23 * wptGPGPrefsDlg.cpp (load_gpg4win_values): Fix control logic
24 and memory leak.
25 * wptListView.cpp (listview_find_substr): New.
26 (listview_sort_items): Use symbolic ids.
27 * wptKeyManager.cpp (km_find_key): Allow substring search.
28
29 2006-06-27 Timo Schulz <[email protected]>
30
31 * wptClipDecryptDlg.cpp (clip_decrypt_dlg): Also call viewer
32 when no sig has been found (if requested).
33 * wptClipEditDlg.cpp (clip_edit_dlg_proc): Use a button to
34 quote instead of the check box. Cleanups.
35 * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): Correct
36 sorting problem and wrong icon display.
37 * wptListView.cpp (listview_sort_items): Correct code for
38 checkbox based lists.
39 * wptKeylist.cpp (keylist_build): Add sorting icons.
40 * wptKeyEditDlgs.cpp (create_header_tooltip): New.
41
42 2006-06-24 Timo Schulz <[email protected]>
43
44 * wptMainProc.cpp (winpt_main_proc): Localize missing string.
45 * wptKeyEditDlgs.cpp (do_add_new_subkey): Better fpr to keyid
46 conversion.
47 (subkey_list_init): Simplified.
48
49 2006-06-22 Timo Schulz <[email protected]>
50
51 * WinPT-en.rc: Include versioninfo.rc to generate
52 the version info automatically.
53
54 2006-06-19 Timo Schulz <[email protected]>
55
56 * wptClipDecryptDlg.cpp (verify_get_clip_info): Improved
57 format of the sig info text.
58 * wptKeyserver.cpp (check_hkp_response): Invert error logic.
59 * wptKeyserverDlg.cpp (keyserver_recv_key): Corrected error
60 handling.
61 * wptPassphraseDlg.cpp (request_key_passphrase): Return
62 utf8 encoded passphrase.
63
64 2006-06-18 Timo Schulz <[email protected]>
65
66 * wptKeygenDlg.cpp (keygen_dlg_proc): Fix typo.
67 * wptClipDecryptDlg.cpp (verify_get_clip_info): New.
68 (verify_get_key_ownertrust): New.
69 (clip_decrypt_dlg_proc): New argument. Change all callers.
70 * wptClipEditDlg.cpp (clip_edit_dlg_proc): Handle the case
71 that the dialog was called with a param.
72 * wptMainProc.cpp (winpt_main_proc): Wait for thread in
73 case of dbl-click.
74
75 2006-06-16 Timo Schulz <[email protected]>
76
77 * wptProgressDlg.cpp (wait_for_progress_cb): New.
78 * wptMainProc.cpp (winpt_main_proc): Use this function
79 to disallow to access the cache during synchronisation.
80 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Likewise.
81 * wptKeyserver.cpp (check_hkp_response): Improved text
82 extraction.
83 (parse_keyserver_error): New.
84 * wptPassphraseDlg.cpp (request_passphrase): Support utf8
85 encoding.
86 * wptKeyEditDlgs.cpp (keyedit_change_passwd): Warn if passhrase
87 needs to be utf8 encoded but still allow it.
88 * wptPassphraseCBDlg.cpp (passphrase_callback_proc): Utf8 support.
89 * wptKeygenDlg.cpp (keygen_dlg_proc): Likewise.
90 * wptKeyRevokeDlg.cpp (keyrevoke_dlg_proc): Likewise.
91
92 2006-06-15 Timo Schulz <[email protected]>
93
94 * wptVerList.cpp (verlist_build): Use icons.
95 (verlist_add_sig): Set image number according to sig state.
96
97 2006-06-14 Timo Schulz <[email protected]>
98
99 * wptAboutDlgs.cpp (about_winpt_dlg_proc): Translate
100 authors string here. Noted by Eduardo.
101 * wptSymEnc.cpp (gpg_clip_sym_encrypt): Check all return codes.
102
103 2006-06-09 Timo Schulz <[email protected]>
104
105 * wptKeyEditDlgs.cpp (do_add_new_subkey): Properly handle
106 RSA_E and RSA_S.
107 * wptFileManager.cpp (fm_sym_encrypt): Better dialog title.
108
109 2006-06-08 Timo Schulz <[email protected]>
110
111 * wptKeyserver.cpp (parse_keyserver_url): Handle special case.
112 * wptKeySignDlg.cpp (keysign_dlg_proc): Show photo if possible.
113 (showphoto_dlg_proc): New.
114 * wptKeyManagerDlg.cpp (restore_window_size): New.
115 (keymanager_dlg_proc): Restore original window size on startup.
116 (copy_key_info): Allow to copy multiple key items.
117
118 2006-06-06 Timo Schulz <[email protected]>
119
120 * wptKeyEditCB.cpp (cmd_sign_handler): Return 0 by default
121 if no expire date were given.
122
123 2006-06-05 Timo Schulz <[email protected]>
124
125 * wptPassphraseDlg.cpp (request_passphrase): Release mem
126 in case of errors.
127 (request_key_passphrase): New.
128 (set_passphrase_hint): New.
129 * wptKeyEditDlgs.cpp (do_editkey_sign_userid): Show passphrase
130 hint. Suggested by vedaal.
131
132 2006-06-03 Timo Schulz <[email protected]>
133
134 * wptPINDlg.cpp (pin_dlg_proc): Remove static var.
135 * wptClipEncryptDlg.cpp (show_invalid_recipients): Handle
136 the case that 'encrypt-to' points to a non-existing item.
137 * wptKeyRevokeDlg.cpp (key_revoke_dlg_proc): Do not close
138 the dialog if an error occurred.
139 * wptKeygenDlg.cpp (keygn_dlg_proc): Check expirate date.
140 * wptKeyEditDlgs.cpp (keyedit_adduid_dlg_proc): Release mem
141 in case of errors.
142 * wptKeyserverDlg.cpp (check_pattern): Improved code.
143 (keyserver_dlg_proc): All comparisons are case insentensive.
144 * wptKeyserver.cpp (parse_uid_record): utf8 decode user id.
145
146 2006-06-02 Timo Schulz <[email protected]>
147
148 * wptKeygenDlg.cpp (keygen_dlg_proc): Forgot to apply patch.
149
150 2006-06-01 Timo Schulz <[email protected]>
151
152 * wptKeyserver.cpp (check_URL): change semantic.
153 (skip_type_prefix): Use check_URL().
154 * wptGPG.cpp (gnupg_backup_keyrings): New argument to
155 include secret keyring backups. Change all callers.
156 * wptRegistry.cpp (get_reg_winpt_prefs): Support new option.
157 (set_reg_winpt_prefs): Likewise.
158 * wptPreferencesDlg.cpp (on_init_dialog): Adjust the code.
159
160 2006-05-29 Timo Schulz <[email protected]>
161
162 * wptKeyserver.cpp (keyserver_set_default): Also set default port.
163
164 2006-05-27 Timo Schulz <[email protected]>
165
166 * wptKeyEditDlgs.cpp (keyedit_change_passwd): Handle empty
167 passphrase requests.
168 * wptClipDecryptDlg.cpp (verify_show_signature_state): Modified
169 for global use.
170 * wptFileManager.cpp (fm_decrypt): Use it here.
171 * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): Simplified.
172
173 2006-05-25 Timo Schulz <[email protected]>
174
175 * wptGPGUtil.cpp (gpg_rebuild_cache): Return error code.
176 * wptGPGME.cpp (winpt_get_seckey): Fix off-by-one bug.
177 * wptVerifyList.cpp (verlist_build): New argument type.
178 Change all callers.
179 (verlist_set_info_control): New.
180 (verlist_set_additional_info): New.
181 * wptFileVerifyDlg.cpp (file_verify_dlg_proc): Adjust code.
182 * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Likewise.
183 * wptFileCBS.cpp (read_cb, write_cb): Add logging.
184
185 2006-05-23 Timo Schulz <[email protected]>
186
187 * wptKeyEditDlgs.cpp (do_add_new_userid): Fix re-introduced
188 problem.
189 (keyedit_main_dlg_proc): Popup menu for the user ID list
190 with common commands.
191 * wptKeyserverDlg.cpp (keyserver_dlg_proc): Automatically
192 disable search for ldap servers.
193 Use subkeys.pgp.net by default when no server was selected.
194
195 2006-05-22 Timo Schulz <[email protected]>
196
197 * wptRegistry.cpp (set_reg_winpt_prefs, get_reg_winpt_prefs):
198 Support for the new 'default ext' value.
199 * wptPreferencesDlg.cpp (on_init_dialog): Likewise.
200 (prefs_dlg_proc): Likewise.
201 * wptFileManager.cpp (file_get_extension): Likewise.
202 (get_output_file): Likewise.
203 (fm_export): Likewise.
204
205 2006-05-20 Timo Schulz <[email protected]>
206
207 * wptKeyPropsDlg.cpp (keyprops_load_photo): avoid expensive
208 process call when no photo is available.
209 (keyprops_dlg_proc): avoid static data.
210 * wptFileManager.cpp (fm_add_sig_stat): Free memory in case
211 of on demand key requests.
212 (show_verify_result): Likewise.
213 (secret_key_available): Likewise.
214 (fm_decrypt, fm_sign): Handle the new on demand key request
215 mode and free all memory.
216
217 2006-05-15 Timo Schulz <[email protected]>
218
219 * wptKeyEditDlgs.cpp (userid_list_init): Forgot to
220 apply patch. Thanks to vedaal.
221
222 2006-05-14 Timo Schulz <[email protected]>
223
224 * wptKeyCache.cpp (gpg_keycache_update_attr): Parse
225 preferred keyserver URL.
226 * wptHTTP.cpp (extractHostInfo): Fix segv.
227 * wptGPGUtil.cpp (gpg_find_key_subpacket): Ignore default
228 gpg.conf.
229 * wptKeyserverSearchDlg.cpp (search_hkp_keys): Do not
230 assume an existing user id.
231 * wptPassphraseCB.cpp (passphrase_cb): Automatic cancel
232 if no passphrase is available.
233
234 2006-05-13 Timo Schulz <[email protected]>
235
236 * wpMainProc.cpp (secret_key_available): Move it...
237 * wptGPGME.cpp: ..to this file.
238 (check_ultimate_trusted_key): Handle the case there
239 is no secret key available.
240 * wptFileManagerDlg.cpp (update_ui_items): Improved.
241 * wptKeyManagerDlg.cpp (key_manager_dlg_proc): Deactive
242 some functions when no secret key is available.
243 * wptKeyserverSearchDlg.cpp (search_hkp_keys): Adjust
244 code and also display pubkey algorithm.
245 * wptKeyserver.cpp (safe_alloc): New.
246 (count_keys_in_response): New.
247 (parse_pub_record): New.
248 (parse_uid_record): New.
249 (kserver_release_key): New.
250 (kserver_search_begin, kserver_search_next_key):
251 Adjust for the machine readable output. Removed old code.
252 (parse_keyserver_url): New.
253 * wptUtil.cpp (substr): New.
254 * wptKeyManager.cpp (km_refresh_one_key): Properly
255 parse the keyserver URL.
256
257 2006-05-11 Timo Schulz <[email protected]>
258
259 * wptPassphraseCB.cpp (release_gpg_recipients): New.
260 (release_gpg_recipients): Use it here.
261 * wptFileManager.cpp (fm_decrypt): List all recipients.
262 Thanks to vedaal.
263 * wptGPG.cpp (extract_keyid): New.
264 (get_gnupg_default_key): Use it here.
265 * wptClipDecryptDlg.cpp (clip_decrypt_dlg): Allow to verify
266 one-pass-sigs again.
267
268 2006-05-09 Timo Schulz <[email protected]>
269
270 * wptKeyRevokersDlg.cpp (revokelist_build): Store key ptr.
271 * wptClipSignDlg.cpp (gpg_clip_sign): Improve error handling.
272 * wptKeysigDlg.cpp (sigprops_dlg_proc): Correct expire date.
273
274 2006-05-07 Timo Schulz <[email protected]>
275
276 * wptKeyserverDlg.cpp (hkp_err_box): Improved.
277 * wptKeyserver.cpp (wsock_strerror): Likewise.
278 * wptKeygenCBDlg.cpp (keygen_cb_dlg_destroy): New param.
279 Change all callers.
280 * wptKeysigDlg.cpp (do_load_keyprops): Correct key update
281 problem.
282
283 2006-05-06 Timo Schulz <[email protected]>
284
285 * wptKeyManagerDlg.cpp (reload_keycache): Use pre-defined
286 sorting order if available.
287 * wptKeyPropsDlg.cpp (key_props_dlg_proc): Use 0x prefix
288 for the key ID.
289 (get_pref_cipher): Differ between the AES algorithm IDs.
290 (key_is_valid): New.
291 * wptKeyserverDlg.cpp (check_pattern): Simplified.
292
293 2006-05-03 Timo Schulz <[email protected]>
294
295 * wptKeyCache.cpp (keycache_prepare2): Fix possible segv.
296 Thanks to Mathias.
297
298 2006-05-02 Timo Schulz <[email protected]>
299
300 * wptFileManagerDlg.cpp (file_encrypt_dlg_proc): Use a
301 caption for the radio button group.
302 * wptKeyserverDlg.cpp (keyserver_recv_key): Use new code.
303 * wptKeyserver.cpp (kserver_recvkey, finger_recvkey,
304 ldap_recvkey): Avoid fixed buffers.
305 (do_spawn_ldap_helper): New.
306 (ldap_recvkey): Factor out code into helper function.
307 * wptPassphraseCBDlg.cpp (passphrase_callback_proc):
308 Increase width of the list box to make sure even large
309 user IDs will be completly displayed.
310
311 2006-05-01 Timo Schulz <[email protected]>
312
313 * WinPT.cpp (WinMain): Check if the user has admin privileges.
314 * wptW32API.cpp (user_is_admin): New.
315 * wptKeysigDlg.cpp (sigprops_dlg_proc): Cosmetical changes.
316 * wptKeyManagerDlg.cpp (key_manager_dlg_proc): Use timer
317 to re-activate the window again.
318 * wptKeylist.cpp (get_key_trust2): Differ between "full"
319 and "ultimate".
320 * wptKeyCache.cpp (keycache_prepare2): Primary user-id
321 has now highest priority.
322 * wptClipDecryptDlg.cpp (clip_decrypt_dlg): Use new utf8
323 system.
324
325 2006-04-30 Timo Schulz <[email protected]>
326
327 * wptKeyCache.cpp (gpg_keycache_release): Release revoker
328 list if needed.
329 * wptKeyRevokersDlg.cpp (key_get_revokers): New.
330 (key_revokers_dlg_proc): Expect winpt_key_t. Change all callers.
331 * wptKeyEditDlgs.cpp (check_desig_rev): New.
332 (do_editkey_minimize): New.
333 * wptKeyRevokeDlg.cpp (key_revoke_dlg_proc): Support to
334 generate a revoc cert as a desig revoker.
335
336 2006-04-29 Timo Schulz <[email protected]>
337
338 * wptVerifyList.cpp (verlist_build): Adjusted code for new
339 list view interface.
340 * wptSigList.cpp (siglist_build): Likewise.
341 * wptKeyEditDlgs.cpp (showpref_dlg_proc): Correct code
342 to display the preferences of the selected UID. Thanks to Mathias.
343 * wptKeyCacheDlg.cpp (keycache_dlg_proc): Return 1 in case
344 of an error.
345 * wptKeyCache.cpp (gpg_keycache_update_key): Always update
346 the utf8 decoded uid list.
347 * wptImportList.cpp (decode_userid): Do utf8 decoding here.
348 * wptListView.cpp (listview_new): New param for HWND handle.
349 Change all callers.
350 * wptFileManager.cpp (fm_add_sig_stat): Use utf8 decoding.
351 * wptGPGUtil.cpp (gpg_revoke_cert): Support --desig-revoker.
352 * wptClipVerifyDlg.cpp (wptClipVerifyDlg.cpp): Correct
353 keyid extraction.
354
355 2006-04-28 Timo Schulz <[email protected]>
356
357 * wptMAPI.cpp (mapi_send_pubkey): Use new key struct.
358 * wptKeysigDlg.cpp (sigprops_dlg_proc): Prepare dialog
359 for handling policy URLs.
360 * wptKeyManagerDlg.cpp (save_column_info, restore_column_info):
361 New option KMSortBy.
362 * wptKeylist.cpp (get_key_algo): Lower priority for revoked keys.
363 * wptKeyEdit.cpp (minimizeKey): New.
364 * wptKeyCache.cpp (gpg_keycache_update_key): Reload utf8 uid list.
365
366 2006-04-27 Timo Schulz <[email protected]>
367
368 * wptKeyManager.cpp (km_get_key_ptr): New.
369 * wptListview.cpp (listview_get_item_text): Drop utf8 support.
370 * wptKeyCache.cpp (keycache_decode_uids): New.
371 (free_native_uids): New.
372 * wptKeyEdit.cpp (uid_inf_colon_handler): Do utf8 decodig here.
373
374 2006-04-26 Timo Schulz <[email protected]>
375
376 * wptKeylist.cpp (get_keyid_from_fpr): New.
377 * wptDecryptClipDlg.cpp (clip_decrypt_dlg): Use it here.
378 * wptVerifyList.cpp (verlist_add_sig): Likewise.
379
380 2006-04-25 Timo Schulz <[email protected]>
381
382 * wptFileManagerDlg.cpp (file_manager_dlg_proc): Handle IDCANCEL.
383 * wptMDSumDlg.cpp (hash_selected_files): New.
384 (mdsum_dlg_proc): Cleanups.
385 * wptKeysignDlg.cpp (keysign_dlg_proc): Fix segv.
386
387 2006-04-23 Timo Schulz <[email protected]>
388
389 * wptW32API.cpp (SetDlgItemText_utf8): New.
390 (SetWindowText_utf8): New.
391 (GetDlgItemText_utf8): New.
392 * wptListView.cpp (listview_add_sub_item): Internal
393 utf8 support.
394
395 2006-04-22 Timo Schulz <[email protected]>
396
397 * wptKeyEditDlgs.cpp (addrevoker_dlg_proc): Encode
398 revoker name in UTF8.
399 * wptKeysigDlg.cpp (keysig_dlg_proc): Fix utf8 problem
400 with the window title.
401
402 2006-04-20 Timo Schulz <[email protected]>
403
404 * wptUTF8.cpp (native_to_utf8): Use c++ alloc.
405 * wptKeygenDlg.cpp (keygen_dlg_proc): Do not mix c and
406 c++ memory allocation.
407 * wptFileManager.cpp (show_verify_result): Show PKA status
408 if possible.
409 * wptClipVerifyDlg.cpp (get_pka_status): New.
410 (clip_verify_dlg_proc): Show PKA status if possible.
411 * wptClipEditDlg.cpp (clip_edit_dlg_proc): Handle IDCANCEL
412 to use ESC to quit the dialog.
413 * wptKeyEditDlgs.cpp (keyedit_adduid_dlg_proc): Also
414 encode the comment in UTF8. Thanks to Werner and Jan.
415
416 2006-04-16 Timo Schulz <[email protected]>
417
418 * wptHTTP.cpp (getErrorCode): New.
419 (connect): Store winsock error code.
420 * wptGPGMEData.cpp (is_armor_header): New.
421 * wptGPG.cpp (check_gnupg_engine): Free context.
422 (gnupg_backup_keyrings): Do not use global vars.
423 * wptGPGUtil.cpp (gpg_export_seckey): Export in ascii format.
424
425 2006-04-15 Timo Schulz <[email protected]>
426
427 * wptKeyManager.cpp (km_get_key): New.
428 (km_key_show_revoc_info): New.
429 * wptKeyRevokeDlg.cpp (key_revoke_dlg): Cleanups.
430 (on_init_dialog): New.
431 * wptKeyManagerDlg.cpp (key_manager_dlg_proc): Factour
432 out some common code and use km_get_key() instead.
433 * wptKeyEditDlgs.cpp (do_init_keylist): Change second
434 param type. Change all callers.
435 * wptKeyEdit.cpp (addNotation): New.
436 * wptKeyEditCB.cpp (editkey_command_handler): Remove 'step'
437 param everywhere. Change all callers.
438
439 2006-04-09 Timo Schulz <[email protected]>
440
441 * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Only return true
442 if the homedir value was changed.
443 * wptGPG.cpp (default_key_from_cache): Only return secret key
444 if public part is available.
445 (set_gnupg_default_key): Fix NULL problem.
446 * wptKeyEditDlgs.cpp (do_editkey_clean): Set update flag.
447 * wptFileCBS.cpp (write_cb, read_cb): Better error handling.
448 * wptFileManagerDlg.cpp (file_manager_dlg_proc): Handle
449 'always-on-top' correctly.
450 * wptKeylist.cpp (keylist_get_recipients): Allocate enough
451 mem to hold all possible keys.
452 (keylist_enum_keys): Likewise.
453
454 2006-04-08 Timo Schulz <[email protected]>
455
456 * wptKeylist.cpp (keylist_get_recipients): Always use utf8 output.
457 * wptKeyserver.cpp (kserver_connect): Fixed proxy support.
458 * wptKeyserverSearchDlg.cpp (fetch_keys): New.
459 * WinPT.cpp (WinMain): if the default key was not found, reset
460 the gpg.conf entry.
461 * wptFileManager.cpp (fm_encrypt_into_zip): Use correct output
462 file name.
463 (show_verify_result): Always use utf8 output.
464 (get_output_file): Case in-sentensive comparison.
465 (fm_assume_onepass_sig): Fixed temp file handling.
466 * wptClipEncryptDlg.cpp (show_invalid_recipients): Fix utf8
467 output.
468 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Fix possible segv.
469
470 2006-04-07 Timo Schulz <[email protected]>
471
472 * wptW32API.cpp (set_clip_text): Change code so it also
473 works again with non-XP systems.
474
475 2006-04-02 Timo Schulz <[email protected]>
476
477 * wptKeyserver.cpp: decrease general threshold for timeout.
478 * wptKeyEditDlgs.cpp (do_editkey_clean): New.
479
480 2006-04-01 Timo Schulz <[email protected]>
481
482 * wptFileVerifyDlg.cpp (file_verify_use_event): Removed.
483 * wptFileManager.cpp (restore_original_name): New.
484 (fm_decrypt): Restore original file name from literal
485 packet if possible.
486
487 2006-03-31 Timo Schulz <[email protected]>
488
489 * wptCommonDlg.cpp (nls_load_langlist): New.
490 (nsl_set_language): New.
491 (nls_dlg_proc): New.
492 (select_language): New. Allow user to select the language.
493 * wptNLS.c (get_gettext_langid): Updated available languages.
494 * WinPT.cpp (WinMain): Allow to select the languag on first
495 start in non-installer environments.
496 * wptVerifyList.cpp (verlist_build): Simplified.
497 (verlist_add_sig_log): Likewise.
498 * wptListview.cpp (listview_set_column_width,
499 listview_get_selected_item): New.
500 * wptKeyManager.cpp (gpg_clip_export): Merged into..
501 (km_clip_export): ..this function.
502
503 2006-03-30 Timo Schulz <[email protected]>
504
505 * wptW32API.cpp (insert_menu_item): New.
506 * wptSigTreeDlg.cpp (create_popup): Use it.
507 (sigtree_dlg_proc): Only show the name of the owner in the title.
508 * wptMainProc.cpp (init_common_controls): Initialize all
509 common controls here.
510 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Drop static
511 keyserver menu concept. Add all keyservers dynamically.
512
513 2006-03-29 Timo Schulz <[email protected]>
514
515 * wptKeyManager.cpp (km_refresh_one_key): Fix problem
516 with preferred keyserver.
517 * wptCommonDlg.cpp (check_URL): Allow non-http URL.
518 * wptKeyEditDlgs.cpp (subkey_subclass_proc,
519 uid_subclass_proc): Disable shortcuts for non keypairs.
520 * wptMainProc.cpp (winpt_main_proc): No user interaction
521 on automatic shutdown. Thanks to Werner.
522 * wptGPGUtil.cpp (xcalloc): New.
523 (gpg_rebuild_cache): Use --batch.
524
525 2006-03-26 Timo Schulz <[email protected]>
526
527 * wptSigTreeDlg.cpp (sigtree_load): Always use UTF8.
528 * wptMainProc.cpp (winpt_main_proc): Reload key cache
529 when the GPG settings were changed.
530 * wptKeygenDlg.cpp (keygen_wizard_dlg_proc,
531 keygen_dlg_proc): Improved check for the email address.
532 * wptKeyEditDlgs.cpp (keyedit_adduid_dlg_proc): Likewise.
533 * wptKeyserverDlg.cpp (keyserver_dlg_proc): Modified design.
534
535 2006-03-22 Timo Schulz <[email protected]>
536
537 * wptClipSignDlg.cpp (on_init_dialog): New.
538 Check that there is at least one useable signing key.
539 * wptSigTreeDlg.cpp (sigtree_load): Correct UTF8 handling.
540 * wptKeyEditDlgs.cpp (keyedit_set_pref_keyserver): Show error
541 if needed.
542
543 2006-03-21 Timo Schulz <[email protected]>
544
545 * wptUTF8.cpp (native_to_utf8): Use directly W32 API.
546 (utf8_to_native): Likewise. Remove cp850 conversion.
547 * wptKeyEditDlgs.cpp (do_find_userid): Correct UTF8 handling.
548 * wptKeyManager.cpp (km_delete_keys): Do not reset 'with_seckey'
549 flag.
550
551 2006-03-20 Timo Schulz <[email protected]>
552
553 * wptUTF8.cpp (get_native_charset): Removed.
554 (utf8_to_native): Rewritten.
555 * wptKeyEditDlgs.cpp (do_add_new_userid): Correct charset
556 handling.
557 * wptKeygenCBDlg.cpp (keygen_cb): Do proper reset if needed.
558
559 2006-03-16 Timo Schulz <[email protected]>
560
561 * wptMainProc.cpp (winpt_main_proc): Disable all CryptDisk code.
562 * wptCryptDisk.cpp: Disable code.
563 * wptProxySettingsDlg.cpp (proxy_settings_dlg_proc): Support for
564 NONE proxy protocol.
565 (init_proxy_procotol): Likewise.
566 (read_proxy): Likewise.
567 * wptKeyserverSearchDlg.cpp (on_init_dialog): New.
568 (keyserver_search_dlg_proc): Use it here.
569 * wptKeyserverDlg.cpp (hkp_send_key): Use GPGME wrapper.
570 * wptKeyserver.cpp (kserver_search_end): New.
571 (kserver_search_begin): Be more strict on mem allocation.
572 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Fix 'redraw'
573 problem.
574 * wptAboutDlgs.cpp (about_dlg_proc): Hide 'Help' button.
575
576 2006-03-12 Timo Schulz <[email protected]>
577
578 * wptGPG.cpp (gnupg_load_config): Search for 'ask-cert-expire'.
579 * wptKeyPropsDlg.cpp (display_key_info): Automatically update
580 sym algorithm preferences if needed.
581 * wptKeysignDlg.cpp (date_is_today): New.
582 (keysign_dlg_proc): Only allow to set cert expire date if
583 the option was found.
584 * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Allow to set
585 'ask-cert-expire'.
586
587 2006-03-10 Timo Schulz <[email protected]>
588
589 * wptHTTP.c: deleted.
590 * wptHTTP.cpp (wHTTP): Transformed old code into an object.
591 * wptKeyManager.cpp (km_http_import): Use new code.
592 (km_refresh_one_key): Use preferred keyserver if possible.
593 * wptComonDlg.cpp (check_URL): Better conformance checking.
594 * wptKeyEditCB.cpp (cmd_keyserver_handler): By default
595 set keyserver for all userids.
596 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Enable code
597 to set preferred keyserver.
598 * wptKeyCache.cpp (decode_subpacket): New.
599 (gpg_keycache_update_attr): New.
600 * wptGPGUtil.cpp (gpg_find_key_subpacket): New.
601 * wptKeyEditDlgs.cpp (keyedit_set_pref_keyserver): Use
602 -1 as an index for all userids.
603
604 2006-03-07 Timo Schulz <[email protected]>
605
606 * WinPT.cpp (set_default_keyserver): New.
607 * wptKeyserver.cpp (kserver_set_socket_timeout): New.
608 (kserver_set_default_keyserver): Initialize default settings
609 if needed.
610 * wptSymEnc.cpp (gpg_encrypt_symmetric): Disallow empty passwords.
611 * wptPassphraseDlg.cpp (request_passphrase): Handle new flag.
612 (passphrase_dlg_proc): Support new safe edit window procedure.
613 * wptPassphraseCB.cpp (passphrase_callback_proc): Likewise.
614 * wptPreferencesDlg.cpp (prefs_dlg_proc): Flush passphrase cache
615 if user disable it.
616 * wptKeylist.cpp (keylist_build): Do not scale images but use
617 original size.
618 * wptListView.cpp (listview_set_image_list): New size params.
619 Change all callers.
620
621 2006-03-01 Timo Schulz <[email protected]>
622
623 * wptW32API.cpp (set_clip_text): Free all memory.
624
625 2006-02-27 Timo Schulz <[email protected]>
626
627 * wptSOCKS.cpp (socks_handshake): New.
628 * wptMainProc.cpp (winpt_main_proc): A dbl-click forces
629 the key manager in teh foreground if possible.
630 * wptHotkey.cpp (hotkey_unregister): Unregister all hotkeys.
631 * wptRegistry.cpp (get_reg_proxy_prefs,
632 set_reg_proxy_prefs): Use directly the proxy context.
633 Changed all callers.
634 * wptProxySettingsDlg.cpp (init_proxy_protocols): New.
635 (keyserver_proxy_dlg_proc): Use directly the proxy context.
636 * wptKeyserver.cpp (kserver_connect): Better proxy support.
637 (kserver_send_request, kserver_recvkey_request): Likewise.
638 * wptKeyserverDlg.cpp (name_from_proto): New.
639 (set_proxy): Adjusted for the new code.
640
641 2006-02-26 Timo Schulz <[email protected]>
642
643 * WinPT.cpp (WinMain): Removed hotkey_modify() code.
644 * wptKeyEditDlgs.cpp (is_idea_protect_algo): Better support
645 v4 keys.
646 * wptKeyserver.cpp (sock_getline): Skip '\r'.
647 (base64_encode): Remove @maxlen param. Changed all callers.
648 (finger_readline): Removed.
649 (finger_recvkey): Use internal functions.
650 * wptSigTreeDlg.cpp (sigtree_dlg_proc): Support a context menu.
651 (show_sigprops): New.
652 (create_popup): New.
653 * wptPreferenceDlg.cpp (prefs_dlg_proc): Cache amount is
654 now in minutes.
655 * wptRegistry.cpp (get_winpt_reg_prefs, set_winpt_reg_prefs):
656 Change code to use hotkeys directly.
657 * wptHotkeys.cpp (hotkeys_enable, hotkey_disable): Likewise.
658
659 2006-02-24 Timo Schulz <[email protected]>
660
661 * wptGPG.cpp (set_gnupg_default_key): Allow to remove entry
662 when parameter is NULL.
663 * wptKeyManager.cpp (check_exist_default_key): New.
664 (km_delete_keys): Check if the default key is still valid,
665 if not delete entry.
666 * wptSigTreeDlg.cpp (sigtree_dlg_proc): Forgot to localize
667 button.
668
669 2006-02-21 Timo Schulz <[email protected]>
670
671 * wptClipDecryptDlg.cpp (clip_decrypt_dlg_proc): Minor
672 cleanups.
673 * wptGPGUtil.cpp (file_extract_recipients): New.
674 (clip_extract_recipients): New.
675 (gpg_get_recipients): New.
676 * wptPassphraseCB.cpp (passphrase_callback_proc): Support
677 external recipient listings.
678
679 2006-02-15 Timo Schulz <[email protected]>
680
681 * wptKeysignDlg.cpp (keysign_dlg_proc): Localize new checkbox.
682 * wptFileStatDlg.cpp (get_s2k_algo): New.
683 * wptFileManagerDlg.cpp (update_status_bar): Use human readable
684 formats.
685
686 2006-02-14 Timo Schulz <[email protected]>
687
688 * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Localize 'Cancel'.
689 * wptKeysignDlg.cpp (keysign_dlg_proc): Implement 'Hide Typing'.
690 * wptFileManager.cpp (fm_sym_encrypt): Set cancel.
691 (fm_parse_files): Handle cancel.
692
693 2006-02-10 Timo Schulz <[email protected]>
694
695 * wptKeyPropsDlg.cpp (props_dlg_proc): Removed unused vars.
696 * wptKeyEditDlgs.cpp (do_editkey_check): Use winpt_key_t
697 for the dialog param.
698 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Use new list
699 signature dialog by default.
700 * wptKeysigDlg.cpp (sigprops_dlg_proc): Use directly
701 gpgme_key_sig_t as param.
702 (keysig_dlg_proc): Change param for property dialog.
703 * wptSigTreeDlg.cpp (sigtree_load): Skip revoked user-ids
704 and use icons.
705 (sigtree_dlg_proc): Allow to execute old list dialog to
706 edit the signatures.
707
708 2006-02-09 Timo Schulz <[email protected]>
709
710 * wptRegistry.cpp (set_winpt_reg_prefs): Removed keylist mode.
711 * wptNLS.c (gettext_localize_dialog): New.
712 * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Add 'Cancel' button
713 to avoid to reload the key cache.
714 * wptClipEncryptDlg.cpp (clipenc_dlg_proc): Drop old 'normal'
715 list mode.
716 * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Likewise.
717 * wptPreferencesDlg.cpp (on_init_dialog): New. Move dialog
718 initiation code to this function.
719 (prefs_dlg_proc): Use it here.
720
721 2006-02-07 Timo Schulz <[email protected]>
722
723 * wptKeyEdit.cpp (setNoPassphrase): New.
724 (getValidDays): New.
725 * wptKeysignDlg.cpp (keysign_dlg_proc): Check on init
726 if the key is protected.
727 * wptKeyEditDlgs.cpp (keyedit_addphoto_dlg_proc): Handle
728 keys without a passphrase.
729 (keyedit_addrevoker_dlg_proc): Likewise.
730
731 2006-02-04 Timo Schulz <[email protected]>
732
733 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Check for
734 at least one ultimately trusted key.
735 * wptKeyManager.cpp (km_refresh_key_from_keyserver):
736 Only check inet connection if we refresh all keys.
737 * wptGPGUtil.cpp (gpg_extract_keys): New.
738 * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): Use textmode.
739 * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Likewise.
740 * wptClipSignDlg.cpp (get_selected_key): New.
741 (one_key_proc): Use it here.
742 (count_useable_seckeys): New.
743 * wptSigTreeDlg.cpp (sigtree_dlg_proc): New.
744 * wptKeyEditDlgs.cpp (diff_time): Removed.
745 (w32_mktime): New.
746 (keyedit_addsubkey_dlg_proc): Use it here.
747
748 2006-02-02 Timo Schulz <[email protected]>
749
750 * wptW32API.cpp (get_temp_name): New.
751 * wptKeyserver.cpp (ldap_recvkey): Use it here.
752 * wptKeyPropsDlg.cpp (get_photo_tmpname): Likewise.
753 * wptGPGUtil.cpp (create_tempfile): Likewise.
754 * wptImportList.cpp (implist_load): Likewise.
755 * wptKeyCache.cpp (parse_attr_data): Likewise.
756 (w32_tempfile): Removed.
757 * wptGPGME.cpp (check_ultimate_trusted_key): New.
758
759 2006-01-31 Timo Schulz <[email protected]>
760
761 * wptMainProc.cpp (winpt_main_proc): Fix usage of the
762 help system.
763 * wptListView.cpp (listview_set_chkbox_style): New.
764 (listview_get_item_state): Support new checkbox style.
765 (listview_new): Reset flag var.
766 * wptKeylist.cpp (keylist_build): Support new checkbox style.
767
768 2006-01-30 Timo Schulz <[email protected]>
769
770 * WinPT.cpp (check_readonly_attr): New.
771 (load_gpg_env): Use it here.
772 (WinPT): Make the the default key is searched in the
773 secret key cache.
774 Change error message.
775 * wptRegistry.cpp (regist_int_winpt): Make sure
776 the register extension is only offered once to the user.
777 * wptKeyPropsDlg.cpp (get_photo_tmpname): Always use
778 temp directory. Fixed a privilege problem.
779
780 2006-01-29 Timo Schulz <[email protected]>
781
782 * wptKeyPropsDlg.cpp (keyprops_dlg_proc): Allow to use ESC
783 to quit dialog.
784 * wptKeysignDlg.cpp (sig_class_dlg_proc): More space for
785 translations. Directly return sig class.
786 (keysign_dlg_proc): Change msgbox title.
787 * wptKeyEdit.cpp (signUserid): New.
788 (getUseridIndex): New.
789 (getKeyIndex): New.
790 (getSigIndex): New.
791 (clear): New.
792 * wptKeyEditCB.cpp (cmd_sign_handler): Allow to select
793 user-id first.
794 * wptKeyEditDlgs.cpp (lookup_cmd): New.
795 (do_editkey_sign_userid): New.
796 (do_init_cmdlist): Differ between key pairs and public keys
797 and allowed actions.
798 (keyedit_change_ownertrust): Show msgbox on success.
799 (get_default_key): New.
800 * wptPassphraseDlg.cpp (request_passphrase): Reset @cancel.
801
802 2006-01-27 Timo Schulz <[email protected]>
803
804 * WinPT.cpp (WinMain): Set minimal list mode as default.
805 * wptKeyCache.cpp (gpg_keycache_sync): Handle special v3 keys.
806
807 2006-01-25 Timo Schulz <[email protected]>
808
809 * wptRegistry.cpp (get_reg_entry_gpg): Return NULL if
810 the key exist with no value.
811 * wptMDSumDlg.cpp (mdsum_dlg_proc): Translate string.
812 * wptKeysignDlg.cpp (do_fill_seclist): Select the
813 default key if possible.
814 * wptFirstRunDlg.cpp (firstrun_dlg_proc): Directly
815 return the choice.
816 * wptKeylist.cpp (get_key_desc): New.
817 (keylist_upd_key): Free memory.
818 * wptKeyCache.cpp (gpg_keycache_get_default_key): New.
819 (gpg_keycache_set_default_key): New.
820 * WinPT.cpp (gpg_prefs_ok): New.
821 (WinMain): Only start gpg prefs if needed.
822
823 2006-01-24 Timo Schulz <[email protected]>
824
825 * wptKeyManager.cpp (km_dropped_file_import): New.
826 * wptKeyManagerDlg.cpp (keylist_subclass_proc): Allow
827 to drop files and try to import them.
828 (keymanager_dlg_proc): Pass kmi as opaque to the subclass
829 proc.
830
831 2006-01-23 Timo Schulz <[email protected]>
832
833 * wptMDSumDlg.cpp (mdsum_dlg_proc): Allow to send output
834 to the clipboard.
835 * wptKeyEditDlgs.cpp (keyedit_change_ownertrust): New.
836 (do_editkey_enable_disable): New.
837 * wptKeyPropsDlg.cpp (keyprops_dlg_proc): Usability fix. Do not
838 close the dialog if the user cancelled the ownertrust dialog.
839 * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Return TRUE to indicate
840 an update of any value.
841
842 2006-01-21 Timo Schulz <[email protected]>
843
844 * wptKeyCache.cpp (keycache_next_key): Handle the case
845 that there is a secret key without a public part.
846 * wptKeyserver.cpp (kserver_save_conf): Save ports.
847 * wptKeyserverDlg.cpp (keyserver_modify_dlg_proc):
848 Reset keyserver name.
849 * wptKeyPropsDlg.cpp (keyprops_dlg_proc): Just indicate
850 an update, do not update the cache.
851 * wptFileManagerDlg.cpp (file_import_dlg_proc): Use one
852 dialog for both clipboard and file imports.
853 * wptKeyManager.cpp (km_file_import, km_clip_import):
854 Changes to support new update system.
855 (gpg_clip_import): New.
856 * wptKeyManagerDlg.cpp (km_gui_import): New.
857 (find_keypos): Rewritten.
858 (refresh_keylist): Improved error checking.
859
860 2006-01-20 Timo Schulz <[email protected]>
861
862 * wptKeyCache.cpp (w32_tmpfile): New.
863 (parse_attr_data): Use it here.
864 * wptGPGUtil.cpp (gpg_get_photoid_data): Reset @ndata var.
865
866 2006-01-19 Timo Schulz <[email protected]>
867
868 * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Do not
869 reload the entire cache, just update the key.
870 * wptFileVerifyDlg.cpp (file_verify_dlg_proc): Likewise.
871 * wptKeyPropsDlg.cpp (keyprops_dlg_proc): Set update flag.
872 * wptKeyRevokersDlg.cpp (key_revokers_dlg_proc): Likewise.
873 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Update key
874 if need after showing the properties.
875 * wptGPGMEData.cpp (gpg_data_putc): Fix off-by-one bug.
876 * wptKeyManager.cpp (km_import_file): New param. Changed
877 all callers.
878 (km_import_clip): Likewise.
879 (delete_keys_from_cache): Delete secret part if available.
880 * wptClipImportDlg.cpp (print_import_status): If there
881 are too many new keys, use reload code.
882
883 2006-01-18 Timo Schulz <[email protected]>
884
885 * wptKeyEditCB.cpp (cmd_delsig_handler): Do not assume
886 the self sig is always index 0. Noted by Kurt.
887 * wptPassphraseCB.cpp (passphrase_dlg_proc): Do not assume
888 the key user-ID contains an email address.
889 * wptKeyEditDlgs.cpp (do_find_userid): Likewise.
890 (do_editkey_deluid): Likewise.
891 (do_editkey_revuid): Likewise.
892
893 2006-01-18 Timo Schulz <[email protected]>
894
895 * wptListview.cpp (listview_del_sel_items): Fixed index
896 calculation. This fixed a lot of problems with the KM listview
897 update.
898 (listview_del_all): Renamed to...
899 (listview_del_all_items): ..this. Changed all callers.
900 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Just refresh
901 list when file import contained new/updated keys.
902 * wptKeyManager.cpp (km_file_import): Indicate if the
903 import contained any new/update keys.
904 * wptClipImportDlg.cpp (print_import_status): Just mark
905 keys which actually changed.
906
907 2006-01-17 Timo Schulz <[email protected]>
908
909 * wptMAPI.cpp (mapi_send_pubkey_ext): New.
910 * wptKeysigDlg.cpp (do_delsig): Just flag the key, do not
911 update it.
912 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Be more
913 careful about const pointers.
914 * wptKeyEditDlgs.cpp (get_subkey_fingerprint): Renamed to..
915 (get_subkey_keyid): ..this. Fix problem that key was updated
916 twice and this corrupted.
917 (keyedit_add_subkey): Set @lv item in the callback context.
918
919 2006-01-16 Timo Schulz <[email protected]>
920
921 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Restore
922 window if it lost focus during the operation. Thanks to Kurt.
923 Update keylist when the window is enabled.
924 (find_keypos): New.
925 * wptKeyCache.cpp (keycache_next_key): Reset update status.
926 (gpg_keycache_next_updated_key): New arg @r_status. Change all
927 callers.
928 (gpg_keycache_update_key): Different status for new and updated.
929 Include key signatures.
930 * wptClipImportDlg.cpp (print_import_status): Mark all
931 imported keys.
932 * wptMainProc.cpp (clip_gpg_dlg): On import refresh KM keylist.
933 Thanks to Kurt.
934 * wptKeysigDlg.cpp (recv_missing_keys): Mark all received keys.
935 (do_delsig): Directly reload key. Thanks to Kurt.
936 * wptGPGME.cpp (keycache_set_reload, keycache_get_reload):
937 Removed.
938 * wptKeygenDlg.cpp (keygen_dlg_proc): Use new update system.
939 * wptClipImportDlg.cpp (clip_import_dlg_proc): Return
940 FALSE if no keys were updated or operation was cancelled.
941 * wptCommonDlg.cpp (http_dlg_proc): Fix title selection code.
942 * wptKeylist.cpp (get_ext_validity): Handle disabled keys.
943 * wptKeyPropsDlg.cpp (keyprops_dlg_proc):
944 Do not allow to change ownertrust of invalid keys.
945 Changed translation.
946 Slightly different user interface.
947
948 2006-11-14 Timo Schulz <[email protected]>
949
950 * wptW32API.cpp (make_special_filename): New.
951 * wptRegistry.cpp (set_winpt_reg_prefs, get_winpt_reg_prefs):
952 Removed 'KeyServer' item.
953 * wptPreferencesDlg.cpp (prefs_dlg_proc): Remove keyserver
954 config item.
955 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Disable group
956 window until we really use it.
957 * wptKeyserver.cpp (kserver_save_conf): New.
958 (wsock_end): Save keyserver config file.
959 * wptKeyserverDlg.cpp (keyserver_edit): New.
960 (keyserver_remove): New.
961 (keyserver_add): New.
962 (fill_keyserv_types): New.
963 (keyserver_modify_dlg_proc): New.
964 (keyserver_dlg_proc): Provide context menu to modify the
965 keyserver list.
966 (keyserver_build_list): Remove 'proto' column because it is
967 not really useful.
968 * WinPT.cpp (load_keyserver_conf): Store keyserver.conf at
969 $APPDATA\winpt. If keyserver.conf exists in the current folder
970 move it to the new destination.
971
972 2006-11-13 Timo Schulz <[email protected]>
973
974 * wptPreferencesDlg.cpp (prefs_dlg_proc): Changed translation.
975 * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Likewise.
976 * wptAboutDlgs.cpp (about_dlg_proc): Make sure GPG about
977 dialog isn't shown twice.
978 * wptKeyCache.cpp (gpg_keycache_next_updated_key): New.
979 (gpg_keycache_update_key): Set update flag.
980 * wptKeyManagerDlg.cpp (refresh_keylist): New.
981 (keymanager_dlg_proc): Use new refresh system for keyservers.
982 * wptKeyserverSearchDlg.cpp (kserver_search_dlg_proc):
983 Update keycache.
984 * wptKeyserverDlg.cpp (hkp_dlg_proc): Likewise.
985 * wptKeyserver.cpp (socket_read_ext): New.
986 (kserver_recv_key_ext): New.
987 (kserver_read_config, kserver_write_config): Removed.
988
989 2006-01-12 Timo Schulz <[email protected]>
990
991 * wptListView.cpp (listview_set_image_list): Make icons
992 always transparent.
993 * wptImageList.cpp (imagelist_load): New icons.
994 * wptGPGMEData.cpp (gpg_data_putc): New.
995 * wptKeyManagerDlg.cpp (load_toolbar): Include new icons.
996 (keymanager_dlg_proc): Add tooltips.
997 * wptKeyserverDlg.cpp (keyserver_list_build): Use icons.
998 * wptKeyserver.cpp (URL_encode): New.
999 (URL_must_encode): New.
1000 (kserver_search_init): Properly encode pattern.
1001 (parse_iso_date): New.
1002 (keyserver_search): Be more strict to prevent buffer overflows.
1003
1004 2006-01-11 Timo Schulz <[email protected]>
1005
1006 * wptKeyManagerDlg.cpp (load_toolbar): 2 new icons.
1007 (keymanager_dlg_proc): Adjust tooltips.
1008 (update_ui_items): Handle new icons.
1009 * wptImageList.cpp (imagelist_load): New icons.
1010
1011 2006-01-10 Timo Schulz <[email protected]>
1012
1013 * wptMainProc.cpp (winpt_main_proc): Restore iconic
1014 File/Key Manager windows if needed.
1015 * wptGPGPrefsDlg.cpp (gpg_prefs_dlg_proc): Disable button.
1016 * wptSiglist.cpp (init_cmp): New.
1017 (siglist_sort): New.
1018 (siglist_cmp_cb): New.
1019 (siglist_add_key): Force NOKEY status when key was not found.
1020 * wptKeysigDlg.cpp (recv_single_key): New.
1021 (recv_missing_keys): Reload entire key when more than one key
1022 was fetched.
1023 (keysig_dlg_proc): Support sorting the listview items.
1024
1025 2006-01-09 Timo Schulz <[email protected]>
1026
1027 * WinPT.cpp (load_gettext): Remove file locking.
1028 (WinMain): Use pre-defined autoconf constants.
1029 * wptW32API.cpp (init_file_lock, release_file_lock): Deleted.
1030 * wptGPG.cpp (check_gnupg_engine): Add param @need_gpg_ver.
1031 Change all callers.
1032
1033 2006-01-07 Timo Schulz <[email protected]>
1034
1035 * wptKeyManager.cpp (km_refresh_from_keyserver): Summarize
1036 import status if just one key was selected.
1037
1038 2006-01-04 Timo Schulz <[email protected]>
1039
1040 * wptGPGMEWrapper.c (setChangeVersion): New.
1041 (exportToBuffer, exportToFile, exportToClipboard): New.
1042 (setArmor, getArmor): New.
1043 * wptKeylist.cpp (get_key_expire_date): Return locale specific
1044 date.
1045 (keylist_get_recipients): Do not fetch the key again.
1046 (keylist_enum_recipients): Likewise.
1047 * wptGPG.cpp (create_empty_keyring): New.
1048 (get_gnupg_keyring): Fixed 'strict' logic.
1049 * wptKeyManagerDlg.cpp (update_ui_items): Disable some buttons
1050 when no secret keys are available.
1051 * wptKeyManager.cpp (km_send_to_mail_recipient): Release key data
1052 before the MAPI call is made.
1053 * WinPT.cpp (check_for_empty_keyrings): New.
1054
1055 2006-01-03 Timo Schulz <[email protected]>
1056
1057 * pubkey.ico, keypair.ico: New.
1058 * wptListview.cpp (listview_add_item_image): New.
1059 (listview_set_image_list): New.
1060 * wptSigList.cpp (siglist_add_key): Correct order of the sigs.
1061 * wptKeyProps.cpp (keyprops_load_photo): Adjusted for new
1062 JPEG data.
1063 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Do not allow to
1064 add items to revoked keys.
1065 * wptKeyManager.cpp (km_delete_keys): Do not use uninitialized
1066 keyid buffer. This fixes a segv.
1067 * wptKeyserver.cpp (spawn_application): New.
1068 (ldap_recv_key): Support recent protocols and several cleanups.
1069 * wptKeylist.cpp (do_addkey): Set image which depends on the
1070 key type.
1071 (keylist_enum_recipients): Cleanups.
1072 (keylist_get_keyflags): Rewritten.
1073 * wptKeyCache.cpp (free_attr_list): New.
1074 (parse_attr_list): New.
1075 (parse_attr_data): New.
1076 (keycache_update_photo): New.
1077 (keycache_update_photos): New.
1078 (gpg_keycache_update_key): Automatically reload photos if needed.
1079 * wptGPGUtil.cpp (create_process): New param @err. Change all
1080 callers.
1081 (map_tmpfile): New param @nread. Change all callers.
1082 (gpg_get_photoid_data): New.
1083 * wptKeyEditDlgs.cpp (keyedit_main_dlg_proc): Do not allow to
1084 add items to revoked keys.
1085 (subkey_init_list): Store gpgme key object.
1086
1087 2005-12-29 Timo Schulz <[email protected]>
1088
1089 * wptKeygenDlg.cpp (keygen_dlg_proc): Request passphrase dynamically.
1090 (gpg_genkey_params): Simplified.
1091 * wptPreferencesDlg.cpp (prefs_dlg_proc): Fix problem with mutal
1092 exclusion of the dialog items.
1093 * wptAboutDlgs.cpp (about_winpt_dlg_proc): Allow to use ESC to
1094 quit the dialog.
1095 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Likewise.
1096 * wptMDSumDlg.cpp (mdsum_dlg_proc): Handle WM_SYSCOMMAND.
1097 (id2algo): New.
1098
1099 2005-12-28 Timo Schulz <[email protected]>
1100
1101 * wptKeyserverDlg.cpp (show_imported_keys): Decode user IDs.
1102 * wptKeyRevokersDlg.cpp (key_revokers_dlg_proc): Likewise.
1103 * wptKeylist.cpp (keylist_udp_key): Likewise.
1104 * wptKeyManager.cpp (key_get_clip_info, key_get_info): Likewise.
1105 * wptClipDecryptDlg.cpp (clip_decrypt_dlg_proc): Fix problem
1106 when no signing key was found.
1107 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Properly decode
1108 user IDs.
1109 (translate_popup_strings): s/Revoke/Revoke Cert.
1110 * wptKeyEditDlgs.cpp (do_init_keylist): Do not assume a
1111 0x prefixed keyid.
1112 * wptKeyEditCB.cpp (editkey_command_handler): Also reset
1113 step in case of a bad passphrase.
1114
1115 2005-12-27 Timo Schulz <[email protected]>
1116
1117 * wptListView.cpp (listview_set_view): New.
1118 (listview_del_column): New.
1119 * wptW32API.cpp (get_locale_date): New.
1120 (get_menu_state): New.
1121 (force_foreground_window): New.
1122 * wptVerifyList.cpp (strtimestamp): Support for
1123 locale date formats.
1124 * wptGPGUtil.cpp (gpg_revoke_cert): Handle bad
1125 passphrases.
1126 * wptKeyEditCB.cpp (editkey_command_handler): Immediately
1127 return when a bad passphrase was submitted.
1128 * wptKeyRevokersDlg.cpp (keyrevokers_dlg_proc): Change
1129 column order.
1130 * wptKeylist.cpp (keylist_upd_col): New.
1131 * wptKeyManagerDlg.cpp (update_ui_items): Deactivate
1132 'Revocation' for public keys.
1133 (translate_menu_strings): s/Revoke/Revoke Cert.
1134 (modify_listview_columns): New.
1135
1136 2005-12-18 Timo Schulz <[email protected]>
1137
1138 * wptKeyManagerDlg.cpp (save_column_size): New.
1139 (restore_column_size): New.
1140 (keymanager_dlg_proc): Save and restore column sizes for
1141 the listview control.
1142 * wptKeyManager.cpp (key_get_info): New.
1143 (km_delete_keys): Use it here to have a consistent message.
1144 Use stored key context and not the column data.
1145 (km_enable_disable_key): Likewise.
1146 (km_send_to_keyserver): Likewise.
1147 (km_set_implicit_trust): Likewise.
1148 * wptKeylist.cpp (get_key_pubalgo2): New.
1149
1150 2005-12-17 Timo Schulz <[email protected]>
1151
1152 * wptUTF8.cpp: Removed unused charset array.
1153 * wptSigList.cpp (siglist_build): Increase size for 'class'
1154 column.
1155 * wptGPG.cpp (get_gnupg_path): Simplified.
1156 * WinPT.cpp (load_gpg_env): New.
1157 (check_crypto_engine): Return type is now bool.
1158 * wptRegistry.cpp (is_gpg4win_installed): New.
1159 * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): More consistent
1160 dialog design.
1161 * wptKeyManagerDlg.cpp (translate_menu_strings): New.
1162 (translate_popupmenu_strings): New.
1163 * wptKeyEditDlgs.cpp (is_jpg_file): New.
1164
1165 2005-12-13 Timo Schulz <[email protected]>
1166
1167 * wptCommonDlg.cpp (http_dlg_proc): Localized missing elements.
1168 * wptKeyManagerDlg.cpp (change_edit_menu): New.
1169 (change_key_menu): Renamed from...
1170 (menu_gpg_readonly): ..this.
1171 (clip_contains_pgpkey): New.
1172 (update_ui_items): Do not allow to sign expired keys.
1173 (keymanager_dlg_proc): Same for popup menu.
1174 * wptKeyPropsDlg.cpp (parse_preflist): Fixed string handling.
1175 * wptKeyCache.cpp (copy_uid_prefs):
1176 (gpg_keycache_sync): Copy uid prefs so the key property
1177 dialog show the correct values. Thanks to Shane.
1178
1179 2005-12-11 Timo Schulz <[email protected]>
1180
1181 * wptW32API.cpp (get_file_version): New.
1182 * wptGPGUtil.cpp (create_process): Always hide window.
1183 * wptClipEditDlg.cpp (clipedit_dlg_proc): Use 'Close'
1184 instead of 'Exit'.
1185 * wptKeyManager.cpp (km_http_import): New filename
1186 generation code.
1187 (km_send_to_mail_recipient): Cleanups.
1188 * wptKeyEditDlg.cpp (showpref_dlg_proc): Localize dialog.
1189 * wptKeyManagerDlg.cpp (update_ui_items): Handle the case
1190 when multiple keys are selected.
1191 (popup_multiple): New.
1192 * WinPT.cpp (WinMain): Check that the PTD.dll and WinPT.exe
1193 file versions are equal. Rewrote --keymanager code.
1194
1195 2005-12-08 Timo Schulz <[email protected]>
1196
1197 * wptKeyserverDlg.cpp (show_imported_keys): Enhanced.
1198 (hkp_recv_key2): Show user-id of the imported key instead
1199 of just the pattern.
1200 * wptFileCBS.cpp (read_cb): Changed to W32 API.
1201 (write_cb): Likewise. Create output file on demand.
1202 (gpg_file_data_new): Adjusted code for new API.
1203 * wptKeyEdit.cpp (cleanKey): New.
1204 * wptKeyEditCB.cpp (cmd_clean_handler): New.
1205 (editkey_command_handler): Call clean handler.
1206 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Sort
1207 keylist after inserting items.
1208 * wptFileManager.cpp (fm_set_status): Take care of
1209 cleartext sigs.
1210 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Make
1211 sure can be closed.
1212
1213 2005-12-07 Timo Schulz <[email protected]>
1214
1215 * wptOwnertrustDlg.cpp (ownertrust_dlg_proc):
1216 Use 'Close' instead of 'Exit'.
1217 * wptKeyEditDlgs.cpp (keyedit_dlg_proc): Likewise.
1218 * wptGPG.cpp (gnupg_backup_keyrings): Use $APPDATA
1219 as the destination dir. Thanks to Werner.
1220 * wptRegistry.cpp (is_gpgee_installed): New.
1221 (regist_inst_winpt): Do not register file extensions
1222 if GPGee is available.
1223 * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Limit
1224 use of local vars.
1225 * wptPreferencesDlg.cpp (prefs_dlg_proc): Make sure
1226 no illegal backup mode is saved.
1227 * wptKeyserverDlg.cpp (show_imported_key): New.
1228 (hkp_recv_key2): Show imported keys if the blob
1229 contained more than one.
1230
1231 2005-12-06 Timo Schulz <[email protected]>
1232
1233 * WinPT.cpp (WinMain): Load the gettext environment soon
1234 as possible so all 'first start' messages are localized.
1235 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): If a single key is
1236 received via the keyserver, return the gpgme key context on
1237 success and add it directly to the list.
1238 * wptKeyserverDlg.cpp (keyserver_dlg_proc): Support a param
1239 to store the key.
1240 (hkp_recv_key2): Add extra param for the fingerprint.
1241 (hkp_recv_key): Call hkp_recv_key2 without fingerprint.
1242
1243 2005-12-02 Werner Koch <[email protected]>
1244
1245 * wptKeyEditDlgs.cpp (subkey_list_init): Avoid trigraphs.
1246
1247 2005-12-01 Timo Schulz <[email protected]>
1248
1249 * wptClipVerifyDlg.cpp (clipverify_dlg_proc): Use new semantic
1250 for get_gpg_sigstat().
1251 * wptGPGME.cpp (get_gpg_sigstat): New. It is now a function.
1252 As a macro strings will not be translated at runtime.
1253 * wptKeyserverDlg.cpp (hkp_recv_key): Properly detect if we
1254 need to update the cache. Thanks to Jan-Oliver.
1255 * wptKeyImportStatusDlg.cpp (import_status_dlg_proc): Localized.
1256
1257 2005-11-30 Timo Schulz <[email protected]>
1258
1259 * wptW32API.cpp (dialog_box_param): Removed LANG_DE code.
1260 * WinPT-en.rc: Removed string list.
1261 * wptFileSaveDlg.cpp (file_save_dlg_proc): Localized
1262 * wptKeylist.cpp (keylist_build): Cannot use global
1263 arrays for the columns due to gettext.
1264
1265 2005-11-29 Timo Schulz <[email protected]>
1266
1267 * WinPT.cpp (WinMain): Modify --keymanager. If an instance
1268 is running, just send the command to open the manager.
1269
1270 2005-11-25 Timo Schulz <[email protected]>
1271
1272 * wptKeyEditCB.cpp (addrev_cmd_handler): Avoid hanging
1273 process when the revoker is already there.
1274
1275 2005-11-24 Timo Schulz <[email protected]>
1276
1277 * wptPassphraseCB.cpp (passphrase_callback_proc): Localize
1278 signing dialog items.
1279 * wptMainProc.cpp (confirm_delclip_dlg): Localize dialog items.
1280 * wptAboutDlgs.cpp (about_winpt_dlg_proc): Disable help for now.
1281 * wptMDSumDlg.cpp (mdsum_dlg_proc): Localize missing items.
1282 * wptKeylist.cpp (key_check_validity): Likewise.
1283 * wptKeyEditDlgs.cpp (keyedit_addsubkey_dlg_proc): Likewise.
1284
1285 2005-11-22 Timo Schulz <[email protected]>
1286
1287 * wptCardEditCB.cpp (gpg_write): Due to removed _DEBUG
1288 macro debug output will be generated in release version.
1289
1290 2005-11-21 Timo Schulz <[email protected]>
1291
1292 * WinPT.cpp (WinMain): Implement --stop switch.
1293 * wptClipEditDlg.cpp (clip_edit_dlg_proc): Localize
1294 missing string.
1295 * wptPreferencesDlg.cpp (prefs_dlg_proc): Likewise.
1296 * wptKeygenDlg.cpp (keygen_dlg_proc): Verify valid context
1297 first. Thanks to Ralf.
1298 * wptFileManagerDlg.cpp (update_ui_items): New.
1299 * wptFileManager.cpp (fm_set_status): New sigmode param.
1300 Changed all callers.
1301
1302 2005-11-17 Timo Schulz <[email protected]>
1303
1304 * wptGPG.cpp (check_last_gnupg_access): Kludge to avoid that
1305 the cache will be loaded twice.
1306 * wptRegistry.cpp (regist_inst_winpt): More comments.
1307 * wptKeyManagerDlg.cpp (do_center_window): Make sure that
1308 neg. coordinates are never used.
1309 * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Localize all
1310 strings.
1311 * wptPassphraseCB.cpp (passphrase_callback_proc): Likewise.
1312 * wptFileManagerDlg.cpp (filemanager_dlg_proc): Localize menu
1313 and save 'AlwaysOnTop' in the registry.
1314
1315 2005-11-16 Timo Schulz <[email protected]>
1316
1317 * WinPT.cpp (check_crypto_engine): Min is now GPG 1.4.2.
1318 * wptKeylist.cpp (keylist_add_key): Add disabled keys in list
1319 mode.
1320 * wptPreferencesDlg.cpp (prefs_dlg_proc): Localize all strings.
1321 * wptRegistry.cpp (regist_inst_winpt): Set install directory.
1322 Useful for other programs to figure out the path to the EXE.
1323
1324 2005-11-14 Timo Schulz <[email protected]>
1325
1326 * wptGPG.cpp (check_gnupg_engine): Fix version check.
1327 * wptMainProc.cpp (winpt_main_proc): Check keyring
1328 file permissions always and do not use interative output
1329 when the windows session ends.
1330 * wptProxySettingsDlg.cpp (proxy_settings_dlg_proc):
1331 Localize all strings.
1332 * wptPassphraseDlg.cpp (passwd_dlg_proc): Likewise.
1333 * wptGPGPrefsDlg.cpp (gpg_prefs_dlg): Likewise.
1334 * wptKeyEditDlgs.cpp (do_init_keylist): Skip all
1335 non-valid keys.
1336
1337 2005-11-12 Timo Schulz <[email protected]>
1338
1339 Fix more GCC warnings.
1340
1341 2005-11-10 Timo Schulz <[email protected]>
1342
1343 * wptClipSignDlg.cpp (one_key_proc): Use
1344 release_gpg_passphrase_cb() to free the context.
1345 * wptListView.cpp (listview_deselect_all): New.
1346 * wptMAPI.cpp (mapi_send_pubkey): Works again.
1347 * wptFileManagerDlg.cpp (file_manager_dlg_proc): Support encrypt &
1348 zip.
1349 * wptPassphraseCB.cpp (passphrase_callback_proc): Fix passphrase
1350 caching for signing operations.
1351 * wptKeyManager.cpp (km_send_to_mail_recipient): Works again.
1352 * wptFileManager.cpp (fm_send_file): Likewise.
1353 (fm_encrypt_into_zip): New.
1354
1355 2005-11-09 Timo Schulz <[email protected]>
1356
1357 * wptNLS.c (get_gettext_langid): Map user language id to
1358 printable gettext language strings.
1359 * wptRegistry.cpp (get_reg_entry_mo): Support for the
1360 gettext environment.
1361 * wptFileManager.cpp (fm_encrypt): Close all files before
1362 the wipe procedure is called.
1363 * wptVerlist.cpp (verlist_add_sig): Handle the case the
1364 issuer is not valid but the signature is.
1365 (verlist_add_sig_log): Likewise. Thanks to the folks on
1366 winpt-users.
1367
1368 2005-11-08 Werner Koch <[email protected]>
1369
1370 * SAFE.ICO, SIGN.ICO: Fixed capitalization.
1371 * WinPT-en.rc: Ditto.
1372 * winpt_km.ico: Moved from ../.
1373
1374 * Makefile.am (resource_files): Add missing backslash.
1375
1376 2005-11-08 Timo Schulz <[email protected]>
1377
1378 More minor changes to avoid GCC warnings.
1379
1380 * wptGPG.cpp (check_homedir): Free memory in case of errors.
1381 (multi_gnupg_path): Add strict mode. If non-strict mode return
1382 the folder even if it does not exist.
1383 (check_for_gpgwin): New.
1384 * wptKeyserverDlg.cpp (hkp_recv_key): Make sure import_res is
1385 initialized.
1386 * wptRegistry.cpp (get_reg_entry_gpg4win): New.
1387 (get_reg_entry_mo): Support for gpg4win.
1388
1389 2005-11-07 Timo Schulz <[email protected]>
1390
1391 * wptMainProc.cpp (winpt_main_proc): Disable
1392 some menu items when no secret key is available.
1393
1394 2005-11-05 Timo Schulz <[email protected]>
1395
1396 More minor changes to avoid GCC warnings.
1397
1398 * wptErrors.cp (winpt_strerror): Return w32
1399 formatted error and do not use 'break'.
1400
1401 2005-11-04 Werner Koch <[email protected]>
1402
1403 * WinPT-en.rc: Fixed locations of icons.
1404
1405 2005-11-03 Timo Schulz <[email protected]>
1406
1407 A lot of minor changes to avoid GCC warnings.
1408
1409 * wptGPG.cpp (get_gnupg_keyring): Only check size for
1410 public keyring.
1411 * wptKeyManager.cpp (km_update_default_key_str): Do
1412 not issue a bug message when no secret key was found.
1413 * wptGPGPrefsDlg.cpp: Replace "" with NULL in the name struct.
1414
1415 2005-11-02 Werner Koch <[email protected]>
1416
1417 * WinPT.cpp (WinMain): Disabled PTD version tests.
1418 (check_crypto_engine): Fixed version check for scard.
1419
1420 * wptErrors.cpp (debug_end): Add dummy function.
1421
1422 * Makefile.am (code_files): Added wptCardEditCB.cpp and
1423 wptKeyEditCB.cpp.
1424
1425 2005-10-31 Werner Koch <[email protected]>
1426
1427 * wptCurrWnd.cpp: Include wptVersion.h to get prototypes of PTD
1428 functions.
1429
1430 * wptKeyEditDlgs.cpp: Include oleauto.h
1431 * wptKeyEdit.cpp: Include time.h.
1432 * wptRegistry.cpp (gpg_filetypes): New from ../Include/wptGPG.h.
1433 * wptGPGUtil.cpp (gpg_manage_ownertrust): s/export/exportflag/.
1434
1435 * Makefile.am (code_files): Add wptGPGUtil.cpp, wptCardEdit.cpp,
1436 wptKeyEdit.cpp and wptKeycache.cpp.
1437
1438 * wptPassphraseCB.cpp: Fixed spelling of wptKeylist.h
1439 * wptImportList.cpp (implist_load): Use remove and not unlink.
1440 * wptGPG.cpp: Fixed spelling of wptGpgCmds.h
1441 * wptImportList.cpp (implist_load): Use remove and not unlink.
1442 * wptKeyManager.cpp (km_http_import): Ditto
1443 * wptMainProc.cpp: Include wptCrypto.h
1444 * wptKeyManager.cpp: Ditto.
1445 * wptFileManager.cpp: Ditto.
1446 * wptImportList.cpp (parse_colon_key): Need to cast argument for
1447 isdigit. Include ctype.h.
1448 * wptGPG.cpp: Include shlobj.h.
1449
1450 Fixed double inclusion of windows.h.
1451
1452 * Makefile.am (bin_PROGRAMS): Don't build KeyManagerExe for now.
1453 * wptKeylist.cpp (get_key_created): Broke up trigraph.
1454 (get_key_status): Removed dangerous use of sprintf. Still other
1455 flaws present, see comment.
1456
1457 * wptCardPCSC.c: Don't include winscard.h.
1458 (pcsc_readerstate_t, pcsc_context_t): New. Changed call users to
1459 use these types.
1460 (PCSC_): Added a lot of constants, all taked from GnuPG 1.9.
1461 (SCARD_S_SUCCESS): Changed all compares to test the value directly
1462 against zero.
1463
1464 * WinPT.cpp: Include wptCrypto.h.
1465 (WinMain): Don't shard S. Removed usunsed variable SIZE.
1466 * Makefile.am (code_files): Actually add files by adding a first
1467 backslash.
1468 * wptMDSumDlg.cpp: Include wptCrypto.h.
1469 * wptProxySettingsDlg.cpp: Included ctype.h.
1470 * wptKeysigDlg.cpp: Fixed spelling of wptKeylist.h.
1471 * wptKeysignDlg.cpp: Ditto
1472 * wptKeyRevokersDlg.cpp: Ditto. Fixed spelling of wptW32API.h.
1473 * wptKeyPropsDlg.cpp (keyprops_dlg_proc): Replaced unlink by remove.
1474 Removed unused variable.
1475 * wptClipVerifyDlg.cpp (show_notation_data): s/not/nota/ due to
1476 silly c++ operator synonyms.
1477 * wptKeyEditDlgs.cpp: Include time.h.
1478 * wptClipDecryptDlg.cpp: Include wptCrypto.h to define PGP_MESSAGE.
1479 * wptFileManagerDlg.cpp: Ditto.
1480 (space_wipefrees_dlg_proc): Replaced unlink by remove; it doesn't
1481 matter if it does an rmdir for a directory.
1482
1483 Fixed include of resource.h which is not anymore in the top
1484 directory.
1485
1486 2005-10-28 Werner Koch <[email protected]>
1487
1488 * wptProxySettingsDlg.cpp (check_number): Cast isdigit() arg to
1489 unsigned. Never ever use a possible signed char as argument for
1490 ctype tests. An alternative is to first test using isascii ().
1491 (keyserver_proxy_dlg_proc): Removed unused variable.
1492
1493 2005-10-27 Timo Schulz <[email protected]>
1494
1495 * wptKeyPropsDlg.cpp (get_validity): Take care of disabled keys.
1496 * wptKeylist.cpp (keylist_add_key): Check global key flag to
1497 see if the key is disabled and not each subkey.
1498 (seclist_init): Likewise.
1499 * wptClipDecryptDlg.cpp (gpgme_op_clip_decrypt): Use
1500 gpgme_op_decrypt_verify.
1501 (clip_decrypt_dlg_proc): Fixed fingerprint
1502 to keyid conversation. This also fixes a crash.
1503 * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Likewise.
1504 * wptKeyEditDlgs.cpp (do_editkey_expire): Ask if the key
1505 already expired if the user wants to change the date.
1506 * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Replace old
1507 'v3 sig' option with the 'ask cert level' option. Sync
1508 with global preferences.
1509 * wptKeySignDlg.cpp (keysign_dlg_proc): Watch if the
1510 gpg.conf contains 'ask-cert-level'. If not disable button.
1511 * wptKeySigDlg.cpp (keysig_dlg_proc): Automatically disable
1512 the button when the key is available.
1513 Reload key directly, not the entire cache.
1514
1515 2005-10-26 Timo Schulz <[email protected]>
1516
1517 * wptFileManager.cpp (is_floppy_disc): Prevent very unlikely but
1518 possible overflow.
1519 (is_openpgp_ext): Compare case insentensive.
1520 (add_single_file): New.
1521 (fm_add_opened_files): Support multi file selection.
1522 * wptKeyPropsDlg.cpp (do_change_ownertrust): Removed.
1523 * wptKeyManager.cpp (km_enable_disable_key): Do not set cache
1524 reload flag. Just update the single key.
1525 * wptFileManagerDlg.cpp (file_encrypt_dlg_proc): Remove static var
1526 and disable anonymize recipient for now.
1527
1528 Begin to port code to GCC. Fix all warning issued by the gcc
1529 compiler.
1530
1531 2005-10-25 Timo Schulz <[email protected]>
1532
1533 * wptGPGUtil.cpp (create_process): Hide window.
1534 * wptKeyPropsDlg.cpp (get_photo_tmpname): New.
1535 * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Remove
1536 static var 'enable'.
1537 * wptKeygenDlg.cpp (keygen_dlg_proc): Likewise.
1538 (gpg_genkey_params): Make sure all primary keys are capable
1539 for signing and certification.
1540 * wptKeySigDlg.cpp (is_sig): If no item is selected, return 0.
1541 * wptGPG.cpp (gnupg_access_keyring): Check return value for
1542 NULL. Noted by Ralf.
1543 (get_gnupg_prog): Simplified.
1544 (check_homedir): Fixed. Return 0 when the dir is successfully created.
1545 * wptKeyManagerDlg.cpp (km_file_import): Use the hourglass to
1546 indicate a pending GPG process.
1547 * wptFileManager.cpp (op_begin, op_end): New. Indicate an start
1548 and and of an operation. For now just the cursor changes.
1549 (fm_parse_command_line): Remove debug output. Thanks to Ralf again.
1550 * WinPT.cpp (WinMain): Check if there is already an instance and
1551 set a variable early as possible.
1552 (load_gettext): If a previous instance was found, do not output
1553 any errors. Kudos to Ralf.
1554
1555 2005-10-24 Timo Schulz <[email protected]>
1556
1557 * wptPassphraseCB.cpp (passphrase_callback_proc): Allow to use
1558 pre-defined recipients.
1559 (release_gpg_passphrase_cb): Release recipients.
1560 * wptKeyPropsDlg.cpp (keyprops_load_photo): Set photo-id
1561 validity if needed.
1562 (keyprops_dlg_proc): Issue a warning if the photo is valid.
1563
1564 2005-10-23 Timo Schulz <[email protected]>
1565
1566 * wptFileManager.cpp (fm_get_file_type): Detect detached sigs.
1567 * wptKeyList.cpp (keylist_cmp_cb): Take care of expired/revoked keys.
1568 (get_ext_validity): New.
1569 * wptFileVerifyDlg.cpp (file_verify_dlg_proc): Several cleanups.
1570 * wptClipEditDlg.cpp (load_clipboard): Factored out some code into
1571 this function.
1572 (load_clipboard_from_file): Likewise.
1573 (save_clipboard_to_file): New.
1574 * wptKeyManagerDlg.cpp (keyprops_dlg_proc): Fix stack overflow.
1575
1576 2005-10-22 Timo Schulz <[email protected]>
1577
1578 Localized a lot of more strings.
1579
1580 * wptMainProc.cpp (load_smartcard): New.
1581 * wptFileManager.cpp (fm_parse_command_line): Simplify code.
1582 (fm_check_armor_type): Add new arg. Change all callers.
1583 (fm_get_file_type): Likewise.
1584 * wptKeyPropsDlg.cpp (display_key_info): New.
1585 (keyprops_show_photo): Factored out some code into..
1586 (keyprops_load_photo): ..this function.
1587
1588 2005-10-21 Timo Schulz <[email protected]>
1589
1590 * wptFileManagerDlg.cpp (file_manager_dlg_proc): Use
1591 WM_INITPOPUPMENU to localize popup menu texts.
1592 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Likewise.
1593 * wptClipSignDlg.cpp (one_key_proc): Use wipememory instead of memset.
1594
1595 2005-10-20 Timo Schulz <[email protected]>
1596
1597 Now WinPT depends on GPG 1.4.3 and GPGME 1.2.0.
1598
1599 * wptPassphraseCB.cpp (passphrase_cb): Complete card support.
1600 * wptCardEdit.cpp (genKey): Handle cancel case.
1601 * keycache.c: Renamed into...
1602 * wptKeyCache.cpp: ...this.
1603 * wptW32API.cpp (set_menu_text): Removed unused code.
1604 (set_menu_text_bypos): New.
1605 * wptCrypto.h: New.
1606 * wptMainProc.cpp (winpt_main_proc): Complete localize
1607 menu texts.
1608 * wptErrors.cpp (log_debug): Use a static var so the file
1609 is only opened once.
1610 (debug_end): Cleanup. Currently just close the log file.
1611 * wptErrors.h (wipememory): New.
1612 (sfree_if_alloc): Use it here.
1613 * WinPT.cpp (WinMain): Display the min. GPGME version which
1614 is needed in case of an error.
1615
1616 2005-10-17 Timo Schulz <[email protected]>
1617
1618 Free all memory returned by the GPGME dll with gpgme_free ().
1619
1620 s/GPG_ERR_CARD_REMOVED/GPG_ERR_CARD_NOT_PRESENT.
1621
1622 * wptKeyEdit.cpp (getCardStatus): Remove dummy key.
1623 (list_handler): With user interaction to allow to insert
1624 the card into the reader.
1625 * wptKeyEditCB.cpp (gpg_edit_card): Likewise.
1626 (common_card_handler): Fixed incorrect command string.
1627 * wptKeyPropsDlg.cpp (get_card_type): New.
1628 (keyprops_dlg_proc): Show card information if present.
1629 * wptFileManager.cpp (secret_key_available): Make the code faster.
1630
1631
1632 2005-10-16 Timo Schulz <[email protected]>
1633
1634 * wptPassphraseCB.cpp (passphrase_cb): Fix problem
1635 with hanging GPG process on cancel.
1636 * keycache.c (gpg_keycache_release): Release all objects.
1637
1638 2005-10-15 Timo Schulz <[email protected]>
1639
1640 * wptCardEdit.cpp (setResult, getResult): New.
1641 (reset): New.
1642 (getCardStatus): Check return codes and release all objects
1643 in case of errors.
1644 * wptCardEditCB.cpp (change_pin_handler): Call reset()
1645 before quit.
1646 (editcard_handler): Likewise.
1647 (common_card_handler): New.
1648 * wptCardDlg.cpp (card_changepin_dlg_proc): Also unmask
1649 the old PIN when 'Hide Typing' is disabled.
1650 * wptPassphraseCB.cpp (passphrase_cb): The card detection
1651 works again. Support to re-enter passphrase.
1652
1653 2005-10-14 Timo Schulz <[email protected]>
1654
1655 * wptCardDlg.cpp (card_status): New fields for the
1656 fingerprint creation time. Display card info as title.
1657 (get_printable_version): New.
1658 * wptCardEditCB.cpp (editcard_handler): Fix problem
1659 with the counter comparison.
1660
1661 2005-10-11 Timo Schulz <[email protected]>
1662
1663 Port to GPGME basically finished.
1664
1665 2005-09-20 Timo Schulz <[email protected]>
1666
1667 * wptFileManagerDlg.cpp (file_secdel_confirm_dlg_proc):
1668 Do not use gpgme_recipients_t but the listview directly
1669 to add the selected files.
1670
1671 2005-09-07 Timo Schulz <[email protected]>
1672
1673 * Make sure all GetOpenFileName filters are terminated by \0\0.
1674
1675 2005-09-01 Timo Schulz <[email protected]>
1676
1677 * wptW32API.cpp (center_window): New argument for parent window.
1678 Change all callers.
1679 (center_window2): Likewise.
1680 * GPGME now can read gpgProgram entries with 'REG_EXPAND_SZ'.
1681 * wptGPG.cpp (gnupg_backup_options): Remove param. One backup
1682 file is enough. Changed all callers.
1683
1684 2005-08-15 Timo Schulz <[email protected]>
1685
1686 * wptKeyEditDlgs.cpp (do_editkey_showpref): Take care of v3 keys.
1687 * wptGPGOptDlg.cpp (gpgopt_dlg_proc): Fixed name of title.
1688 * Make sure the passphrase is always overwritten before it is
1689 freed (or the function returns).
1690 * wptKeyPropDlg.cpp (get_pref_cipher): New.
1691 (keyprops_dlg_proc): Use it here.
1692
1693 2005-08-06 Timo Schulz <[email protected]>
1694
1695 * wptGPGME.cpp (keycache_update): Reload OpenPGP parts
1696 of the secret key.
1697 (keycache_init): cache name of secret keyring.
1698 * wptKeyList.cpp (keylist_upd_key): Do not add long keyid.
1699 (get_key_type): Do not assume 'ultimate' means key pair.
1700 * wptKeyEditDlgs.cpp (diff_time): New.
1701 (keyedit_addsubkey_dlg_proc): Changed design and use
1702 diff_time. Drop checks for invalid keylength (< 1024, > 4096)
1703 because the combo box automatically handles this.
1704 * wptKeyManager.cpp (km_set_implicit_trust): Return error code.
1705 * wptGPG.cpp (get_backup_name): New.
1706 (gnupg_backup_keyrings): Rotate backup names, from 0..3.
1707 * wptClipImportDialog.cpp (clip_import_dlg_proc): Free memory.
1708 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Use 0x short keyid and
1709 not the long keyid.
1710
1711 2005-08-05 Timo Schulz <[email protected]>
1712
1713 * wptListView.cpp (listview_set_item2): New.
1714 * wptKeyManager.cpp (km_check_if_protected): Directly
1715 retrieve gpgme_key_t from the list.
1716 (km_check_key_status): Likewise.
1717 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Also use
1718 a human-readable name for secret key export.
1719 Reload just the keys which were affected by updates
1720 (edit-key).
1721 (update_key): New.
1722 * wptKeyList.cpp ((keylist_upd_key): Stripped down
1723 version of keylist_add_key.
1724 * wptKeyEditDlgs.cpp (keyedit_main_dlg_proc): Do not
1725 reload the keycache here, just flag 'update'. Give the
1726 control to the calling dialog.
1727 * wptKeySignDlg.cpp (keysign_dlg_proc): Use winpt_key_t
1728 as parameter. Changed all callers.
1729 Add date of expiration to the key info.
1730 (get_expire_date): New.
1731 Use a checkbox to allow to ask for the cert level.
1732 * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): Do no reload
1733 the cache.
1734
1735 2005-08-04 Timo Schulz <[email protected]>
1736
1737 * wptListView.cpp (listview_scroll): New.
1738 (listview_get_item2): New.
1739 * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): If the
1740 item was found, make it visible with scrolling.
1741 * wptKeyManager.cpp (km_find_key): New.
1742 (keylist_subclass_proc): Support to handle some acceleators.
1743 Strg+{C, P, F, A}.
1744 (km_get_key_status): Get the gpgme_key_t object directly
1745 from the list.
1746 * wptGPGPRefsDlg.cpp (gpgprefs_dlg_proc): Also try to set
1747 the config file (if it exists).
1748 * wptKeySignDlg.cpp (keysign_dlg_proc): Use easier code
1749 to handle the click->activate situation.
1750 * wptPassphraseCB.cpp (passphrase_callback_proc): Likewise.
1751 Support to check the passphrase quality.
1752 * wptPassphraseDlg.cpp (passwd_dlg_proc): Likewise.
1753 (request_passphrase): Rename 'init' to 'flags' to allow more
1754 options.
1755 * wptMAPI.cpp: Check all *alloc results.
1756 * wptKeyGenDlg.cpp (keygen_dlg_proc): Use a rudimentary
1757 passphrase quality check.
1758 * wptMDSumDlg.cpp (mdsum_dlg_proc): Use md5/sha1sum file
1759 format and allow to save the checksum in a file.
1760 * wptKeyRevokeDlg.cpp (key_revoke_dlg_proc): Issue a warning
1761 when the PGP mode is disabled.
1762 wptKeyEditDlgs.cpp (do_editkey_primary): Return if just
1763 one user-ID exists.
1764 (keyedit_dlg_proc): Fixed index problem.
1765 * wptKeyPropsDlg.cpp (get_validity): New.
1766 (keyprops_dlg_proc): Actually show extended validity if possible.
1767 * wptKeyList.cpp (get_key_fpr): Support for old v3 format.
1768 (do_addkey): Use listview_add_item2 to store key as opaque
1769 param inside the list.
1770 * wptFileStatDlg.cpp (get_digest_algo): Add SHAxxx.
1771 (file_stat_dlg_proc): End dialog if no PGP data was found.
1772 (do_list_packets): Return the number of valid PGP packets
1773 of the file.
1774
1775 2005-08-02 Timo Schulz <[email protected]>
1776
1777 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Instead of
1778 using 'Default Keyserver' add the real keyserver name to
1779 the menu.
1780 The rebuild command does not reload the cache any longer.
1781 Use ATTR_NAME + .asc as the filename and not keyid + .asc.
1782 * wptProxySettingsDlg.cpp (enable_proxy_auth): New.
1783 (keyserver_proxy_dlg_proc): Changed the design a little
1784 and add some additional sanity checks.
1785 * wptGPGParser.cpp (commit_gpg_options): Use W32 line endings.
1786 This fixes the problem that the GPG option dialog does not show
1787 very nice lines.
1788 * wptGPGOptDlg.cpp (gpgopt_dlg_proc): s/options/config.
1789 * wptKeySigDlg.cpp (keysig_dlg_proc): If a single key is selected
1790 check for 'NOKEY' before asking a keyserver.
1791 * wptKeyManager.cpp (km_delete_keys): Do not set 'refresh' flag.
1792 If a lot of keys were selected, ask if the user wants to confirm
1793 each delete procedure or allow to cancel the operation.
1794 * wptFileManagerDlg.cpp (file_import_dlg_proc): Display how much
1795 keys the file contain.
1796 * wptKeyList.cpp (get_key_algo): Beautified.
1797 (get_key_status): Drop the "[XYZ] Unknown" format, it is too
1798 confusing for users.
1799 * wptKeyManager.cpp (km_check_key_status): Adjustments for the
1800 new code.
1801 (km_check_for_seckey): Reset utrust parameter. Return -1 for
1802 invalid (exp+rev+dis) keys.
1803
1804 2005-08-01 Timo Schulz <[email protected]>
1805
1806 * wptKeyserver.cpp (kserver_urlencode): Use unsigned for all given
1807 sizes.
1808 (check_IP_or_hostname): New.
1809 (kserver_load_conf): Correct finger URL parsing problem.
1810 (port_from_proto): New.
1811 (keyserver_load_conf): Guess the port.
1812 (keyserver_set_default): Allocate new buffer.
1813 (kserver_load_conf): Likewise.
1814 * wptHTTP.c (parse_reqline, parse_request): Removed.
1815 Use WinPT error code and remove all unused code.
1816 * wptKeyserverDlg.cpp (keyserver_dlg_proc): Properly handle finger URLs.
1817 * wptProxySettingsDlg.cpp (read_proxy): Simple check for
1818 invalid host/IP addresses.
1819 * wptGPG.cpp (multi_gnupg_path): Return allocated buffer.
1820 Changed all callers.
1821 * wptPreferencesDlg.cpp (prefs_dlg_proc): At the first start,
1822 automatically set 'backup to homedir'.
1823 * WinPT.cpp (WinMain): Use desktop window as the parent window
1824 to load 'first-start' dialogs.
1825 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Do not set 'refresh'
1826 flag after deleting keys.
1827 * wptFirstRunDlg.cpp (first_run_dlg_proc): Use a new structure
1828 for passing the arguments.
1829 * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Do not store "" for
1830 the OptFile. This was responsible for a lot of 'General Errors'
1831 after the first start related to key caching.
1832 Automatically set the gpg binary if possible.
1833
1834 2005-07-22 Timo Schulz <[email protected]>
1835
1836 * wptMainProc.cpp (winpt_main_proc): Take care for shutdown
1837 messages and make sure WinPT make a keyring backup in this case.
1838 * wptGPGME.cpp (keycache_reload): Do not rebuild the signature
1839 cache each time. Just do it on startup.
1840 * wptKeyManager.cpp (km_key_is_v3): Use new ATTR_VERSION.
1841 * wptKeyEditDlgs.cpp (keyedit_main_dlg_proc): Assume the v3 flag
1842 was set by the calling function.
1843 * wptKeyGenDlg.cpp (keygen_wizard_dlg_proc): Ask for backups.
1844 (keygen_dlg_proc): Only add the generated key to the keycache
1845 and do not reload the entire cache.
1846 * wptKeyManager.cpp (km_delete_keys): Store the number of keys
1847 because in each loop iteration it will be new calculated.
1848 * wptListView.cpp (listview_del_items): Likewise.
1849 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Directly add the
1850 generated key to the list instead of reloading the entire cache.
1851 * wptKeyEditDlgs.cpp (parse_preflist): Support fpr SHAnnn.
1852
1853 2005-05-09 Timo Schulz <[email protected]>
1854
1855 * wptCommonDlg.cpp (http_file_dlg_proc): Renamed to..
1856 (http_dlg_proc): ..this.
1857 (get_keyserver_URL_dlg): New.
1858 (check_URL): New.
1859 * wptKeyEditDlgs.cpp (keyedit_set_pref_keyserver): New.
1860 (keyedit_main_dlg_proc): Avoid massive keycache reloads, just reload
1861 the single key.
1862 * wptKeyRevokersDlg.cpp (key_revokers_dlg_proc): Show the key
1863 properties of the selected desig. revoker.
1864 * wptVerifyList.cpp (verlist_build): Increase the column
1865 size of 'keyid'.
1866 * wptGPGME.cpp (keycache_update): New.
1867 * wptKeySigDlg.cpp (keysig_dlg_proc): Update the key if a signature
1868 was deleted.
1869 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Zeroing the key struct
1870 before we set any values.
1871
1872 2005-05-03 Timo Schulz <[email protected]>
1873
1874 * wptFileManager.cpp (fm_parse_command_line): Handle
1875 'SYMKEYENC' files. Thanks to the user who reported it.
1876 * wptKeyEditDlgs.cpp (do_find_userid): Optionally return the context.
1877 (showpref_dlg_proc): New.
1878 (keyedit_main_dlg_proc): Support SHOWPREF.
1879 (userid_list_init): New field 'Email'. Split userID into 'Name' + 'Email'.
1880 (do_add_new_userid): Adjust for new ListView.
1881 (do_find_userid): Use email for searching.
1882 (parse_preflist): New.
1883
1884 2005-04-19 Timo Schulz <[email protected]>
1885
1886 * wptKeyserver.cpp (kserver_update_proxyuser): Fixed
1887 buffer overflow that occurred when the proxy password
1888 is > 29 chars. Thanks to the friendly user who reported this.
1889 (kserver_search): Handle the case the key is revoked. Thanks
1890 to Ralf.
1891 (kserver_connect): More logging.
1892 (kserver_sendkey): Likewise.
1893 * wptProxySettingsDlg.cpp (check_number): New.
1894 (read_proxy): Check the entered port number.
1895 * wptKeySignDlg.cpp (sig_class_dlg_proc): Check default button.
1896 * wptW32API.cpp (get_folder_dlg): Free memory.
1897
1898 2005-04-11 Timo Schulz <[email protected]>
1899
1900 * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Reset
1901 'enable' flag always at the begin.
1902 * wptClipDecryptDlg.cpp (clip_decrypt_dlg): Show correct
1903 key trust. Noted by a friendly user.
1904 * wptListView.cpp (listview_add_item_pos): New.
1905 * wptKeyEditDlgs.cpp (get_subkey_fingerprint): Due to
1906 the fact that GPG does not return the fingerprint of
1907 the generated subkey any longer, we need to get it manually.
1908 Thanks to Maxime Brandt.
1909 (keyedit_addsubkey_dlg_proc): If key size too large, ask
1910 if this was a mistake.
1911 (keyedit_add_subkey): Use it here.
1912 (do_add_new_subkey): Fix list contrl insertion.
1913 * wptTypes.h (DEFAULT_KEYSIZE): Define new default keysize constant.
1914
1915 2005-04-04 Timo Schulz <[email protected]>
1916
1917 * WinPT.cpp (check_crypto_engine): Correct version
1918 check. Noted by Werner.
1919
1920 2005-03-22 Timo Schulz <[email protected]>
1921
1922 * WinPT.cpp (WinMain): --debug as an alias for --enable-debug.
1923 (enable_mobile_mode): New.
1924 * wptKeyEditDlg.cpp (keyedit_addsubkey_dlg_proc): Use new
1925 ID's for adding subkeys.
1926
1927 2005-03-06 Timo Schulz <[email protected]>
1928
1929 * wptKeySignDlg.cpp (do_fill_seckeylist): Skip secret keys without
1930 a public key. Noted by Kurt Fitzner.
1931
1932 2005-03-04 Timo Schulz <[email protected]>
1933
1934 * GPG asks twice for the new PIN. Thanks to Achim.
1935 * wptCardDlg.cpp (card_changepin_dlg_proc): Reset the 'safety' pin also.
1936 Only check the passphrase if the backup flag is enabled. Again thanks to
1937 Achim.
1938
1939 2005-03-03 Timo Schulz <[email protected]>
1940
1941 * wptCardDlg.cpp (card_changepin_dlg_proc): Add item to re-type the
1942 new PIN. Suggested by Achim.
1943 Support to show the unmasked PIN.
1944 Modified TAB-order.
1945 * wptPINDlg.cpp (pin_cb_dlg_proc): Show unmasked PIN.
1946
1947 * Fixed wrong GPG --command-fd strings. Thanks to Achim.
1948
1949 2005-02-23 Timo Schulz <[email protected]>
1950
1951 * wptKeyserver.cpp (check_hkp_response): Support for HTTP/1.1.
1952 (kserver_search): Be more strict.
1953 * WinPT.cpp (WinMain): Enable FM progress by default.
1954 * wptFileManagerDlg.cpp (file_preferences_dlg_proc): New.
1955 (fm_parse_files): Use progress dialog only if it is
1956 enabled.
1957
1958 2005-02-07 Timo Schulz <[email protected]>
1959
1960 * wptFileManager.cpp (fm_parse_files): Do not use the progress dialog
1961 for signing and verifying. But this does not fix the problem tha the
1962 dialog sometimes stay and is not destroyed.
1963
1964 2005-02-04 Timo Schulz <[email protected]>
1965
1966 * wptProgressDlg.cpp (progress_cb_thread): Set root window if available.
1967 If the progress window survives by accident, it will be closed when the
1968 File Manager (root window) is closed.
1969
1970 2005-02-02 Timo Schulz <[email protected]>
1971
1972 * wptPassphraseDlg.cpp (passwd_dlg_proc): use center_window2, otherwise
1973 it is invisible.
1974 * wptPassphraseCB.cpp (passphrase_callback_proc): Do not cache symmetric
1975 passphrases.
1976 * Enable the progress dialog for symmetric encryption.
1977 * wptFileManager.cpp (fm_check_file_type): Also check for 'SYMKEYENC' in
1978 FM_ENCRYPT mode.
1979 * WinPT.cpp (WinMain): SETUP_EXISTING implemented.
1980 * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Reset 'Locale directory' when
1981 no value is entered.
1982
1983 2005-01-26 Timo Schulz <[email protected]>
1984
1985 * wptGPG.cpp (multi_gnupg_path): Zero buffer before use.
1986 * wptKeyManagerDlg.cpp: Add 'Select All' feature.
1987 Move 'Edit->Key' to 'Key->Edit'.
1988 * wptFileManagerDlg.cpp: Likewise.
1989 * wptKeyPropsDlg.cpp (keyprops_show_photo): Show the JPG photo directly.
1990 * wptKeyManager.cpp (spawn_loadimage): Removed.
1991 (km_show_photo): Removed.
1992 * wptRevokersDlg.cpp (revokelist_init): Fixed index.
1993 * wptErrors.cpp (winpt_strerror): Show system error for registry
1994 related problems.
1995
1996 2005-01-25 Timo Schulz <[email protected]>
1997
1998 * wptCardDlg.cpp (card_keygen_dlg_proc): Make 'backup keys' default
1999 and that all values are 7-bit ASCII.
2000 Use '*' for the passphrase field.
2001 * wptGPG.cpp (multi_gnupg_path): New.
2002 (get_gnupg_path): Use it here.
2003 (check_homedir): Likewise.
2004 * wptKeyserverDlg.cpp (save_default_ks): Fix problem that the port
2005 is actually set.
2006 * wptFileManager.cpp (fm_clearsign_8bit): New.
2007 (fm_parse_files): Check if the file to clearsign is really 7-bit.
2008 Thanks to djek.
2009 (fm_set_ftype): Factored out some code from...
2010 (fm_add_dropped_files): ...here. Simplied the code.
2011 (fm_add_dir_files): New.
2012 * Removed MD5 from MyGPGME and the new default sym cipher is AES.
2013 * wptProgressDlg.cpp (progress_dlg_proc): Use additional HAND var
2014 to track the window handle.
2015 (progress_cleanup): Try to close tracking handle first.
2016
2017 2005-01-21 Timo Schulz <[email protected]>
2018
2019 * wptFileVerifyDlg.cpp (file_verify_dlg_proc): Allow to retrieve keys
2020 which are not in the keyring. Suggested by djek.
2021 * wptFileManagerDlg.cpp (filemanager_dlg_proc): Implement basic
2022 'Always on Top'.
2023 Allow to send encrypted files via MAPI.
2024 * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Only reload the keycache
2025 if the HKP retrieval succeeded.
2026 * wptFileStatDlg.cpp (do_list_packets): Make sure that the pkt pointer
2027 is not NULL.
2028 * wptKeyManager.cpp (km_clip_export): Prefix the clipboard text with
2029 a header similar to 'gpg -k name'.
2030 * wptErrors.cpp (log_box): Use msg_box to make sure the box is visible
2031 with 'Always on Top' windows.
2032 * wptFileManager.cpp (fm_parse_files): Set progress callback for
2033 wiping files.
2034 (fm_add_opened_files): Do not add the file in case of an error.
2035 * wptKeyserverDlg.cpp (kserver_get_port): New.
2036 (save_default_ks): Save port.
2037 * wptKeyserver.cpp (set_default_kserver): Get port or use default.
2038 (kserver_connect): Logging.
2039 (kserver_send_request): Likewise. Thanks to Markus.
2040 * wptError.cpp (w32_fmt_msg): New.
2041 (winpt_strerror): Show the W32 API error if the hotkey could not
2042 be registered.
2043
2044 2005-01-20 Timo Schulz <[email protected]>
2045
2046 * wptKeycacheDlg.cpp (keycache_dlg_proc): Be less strict with the
2047 keyring check. If the file exists, it is enough.
2048 * wptKeyring.cpp (kserver_load_conf): Use C++ new for proxy_host.
2049 Several cleanups and allow to specify the port of the keyserver.
2050 * wptMainProc.cpp (winpt_main_proc): Handle WM_CLOSE to make sure
2051 the application terminates clearly when Windows shutdown.
2052
2053 2005-01-10 Timo Schulz <[email protected]>
2054
2055 * WinPT.cpp (load_gettext): New.
2056 (WinMain): Use it here to load it before --keymanager. Thanks to Ralf.
2057
2058 2005-01-08 Timo Schulz <[email protected]>
2059
2060 * Applied the patches to make the source G++ compatible.
2061 * wptKeyserver.cpp (kserver_load_conf): Use the stripped string.
2062 * wptKeygenDlg.cpp (keygen_dlg_proc): Default key size is now 2048.
2063 * wptFileManagerDlg.cpp (fill_drive_combobox): Do not add CD-Roms.
2064
2065 2005-01-07 Timo Schulz <[email protected]>
2066
2067 * wptKeyserver.cpp (skip_type_prefix): Support all URL schemes.
2068 (finger_recvkey): Use skip_type_prefix and prevent buffer overflows.
2069 (ldap_recvkey): Likewise.
2070 (check_hkp_response): Be more liberal with error strings.
2071 (kserver_connect): Prevent buffer overflow and use the right return
2072 code for inet_addr().
2073 (kserver_search_chkresp): New.
2074 (kserver_search): Fixed. Now it works with modern keyservers.
2075 * wptKeylist.cpp (seclist_init): Add new flags param.
2076 * wptFileManagerDlg.cpp (file_encrypt_dlg_proc): Use short secret key
2077 listing.
2078 * wptClipboardSignEncDlg.cpp (clip_signenc_dlg_proc): Likewise.
2079 * wptMainProc.cpp (winpt_main_proc): GPGME cleanup.
2080 * WinPT.cpp (WinMain): call GPGME init.
2081 Reword the 'you have no keyring' problem and revamp the first run dialog.
2082 * wptGPG.cpp (gnupg_access_keyring): New.
2083 (gnupg_check_keyring): Removed unused code.
2084 * wptFirstRunDlg.cpp (first_run_dlg_proc): Adjust dialog for the
2085 new texts and remove unused elements.
2086 * wptKeyserverDlg.cpp (keyserver_dlg_proc): s/keyserver/kserver. The
2087 last annoying typo.
2088 * wptKeyserverSearchDlg.cpp (hkpsearch_dlg_proc): End dialog in case of
2089 an error.
2090
2091 2004-12-30 Timo Schulz <[email protected]>
2092
2093 * wptKeyserverDlg.cpp (keyserver_list_build): Initialize pointer.
2094 This fixes the problem that the dialog crashes when the user selects
2095 anything. Thanks to my users.
2096 (keyserver_dlg_proc): s/keyserver/kserver. Thanks to Ulf.
2097
2098 2004-12-20 Timo Schulz <[email protected]>
2099
2100 * wptGPG.cpp (check_gnupg_engine): Fixed version checking.
2101 * wptFileManager.cpp (fm_encrypt): Delete the passphrase from the
2102 cache if it is not valid.
2103
2104 Fix problem with a NULL pointer.
2105
2106 2004-12-15 Timo Schulz <[email protected]>
2107
2108 * wptFileManagerDlg.cpp (space_wipefrees_dlg_proc): Use the right
2109 temp name.
2110 * wptKeyEditDlgs.cpp (keyedit_main_dlg_proc): Disable 'OK' button
2111 when no secret key is available.
2112
2113 2004-12-11 Timo Schulz <[email protected]>
2114
2115 * wptFileManager.cpp (fm_add_opened_files): Fix broken code to detect
2116 the file type.
2117 (fm_parse_command_line): Likewise.
2118
2119 2004-12-02 Timo Schulz <[email protected]>
2120
2121 * wptKeySigDlg.cpp (do_load_keyprops): Only issue errors for non-main nodes.
2122
2123 2004-11-04 Timo Schulz <[email protected]>
2124
2125 * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Support preferred
2126 keyserver sub packets.
2127
2128 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Set a flag to
2129 indicate we need to reload the cache. If a user deletes a key
2130 and exits the manager and loads it again the deleted key is
2131 still in cache and provoked an error.
2132
2133 * wptKeySigDlg.cpp (do_load_keyprops): Stricter key checks.
2134
2135 * wptW32API.cpp (center_window): Replaced with real code which calculates
2136 the position relative to the desktop window.
2137
2138 2004-10-25 Timo Schulz <[email protected]>
2139
2140 * wptClipDecryptDlg.cpp (clip_decrypt_dlg): Issue an info box
2141 if the PGP message is complete but broken during the transport.
2142 Thanks to Werner and Achim.
2143 * wptFileManager.cpp (fm_sym_encrypt): Do not force CAST5. Thanks
2144 to the gnupg-users.
2145 * Automatically add '\r\n' to the text before signing. This solves
2146 the problem the last line is not included if no \r\n is present.
2147 * wptClipEditDlg.cpp (clip_edit_dlg_proc): Add a 'mail quote' mode
2148 which prepends the text with '> '. This makes it easier to quote
2149 decrypted text.
2150 * wptKeyserverDlg.cpp (keyserver_list_build): Code which was factored
2151 out from..
2152 (keyserver_dlg_proc): ..here.
2153
2154 2004-10-15 Timo Schulz <[email protected]>
2155
2156 * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Make sure that opt
2157 is really initialized.
2158
2159 2004-10-07 Timo Schulz <[email protected]>
2160
2161 * wptErrors.cpp (winpt_errmsg): Use a generic header when no
2162 filename is supplied.
2163 * wptMainProc.cpp (cleanup_tmp_files): Do not use BUG but
2164 an error message which is more clean. Thanks to Ralf.
2165 * wptCardDlg.cpp (card_keygen_dlg_proc): Support new card
2166 admin mode.
2167 * wptKeySignDlg.cpp (do_check_protection): Also check for smart
2168 card protection.
2169 (get_keyinfo): Return if this is a smart card key.
2170 * wptKeyEditDlgs.cpp (do_find_userid): Use UTF8 encoding before
2171 comparing the names.
2172 * winpt.cpp: Now depends on PTD 0.7.1.
2173
2174 2004-10-01 Timo Schulz <[email protected]>
2175
2176 * wptClipSignDlg.cpp: Really use the selected subkey with the
2177 right '!' syntax. Thanks to Vedaal for pointing this out.
2178 * wptGPG.cpp (gnupg_backup_keyrings): Check if the backup device
2179 is accessable and writeable, otherwise inform the user. Kudos to
2180 the one who reported this problem.
2181
2182 2004-09-20 Timo Schulz <[email protected]>
2183
2184 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Disable 'Sign' in
2185 context menus when the key is flagged as revoked.
2186 (update_ui_items): Likewise and set the 'ShowPhoto' flag only if
2187 the key has such an item.
2188
2189 2004-09-08 Timo Schulz <[email protected]>
2190
2191 * wptKeyserverDlg.cpp (kserver_get_pos): If only one element is
2192 in the list, return zero.
2193
2194 2004-09-07 Timo Schulz <[email protected]>
2195
2196 * wptAboutDlg.cpp (about_dlg_proc): Add 'Help' button. Suggested by Ralf.
2197 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Likewise.
2198
2199 2004-09-01 Timo Schulz <[email protected]>
2200
2201 * wptGPG.cpp (GPG_CONF): Define it. Use gpg.conf by default.
2202 (default_key_from_cache): Use new key attribute 'usable'.
2203 * WinPT.cpp (show_unprotected_keys): Removed.
2204 * wptKeylist.cpp (check_key): Removed.
2205 (seclist_init): Use new 'usable' key attribute.
2206 (keylist_add_key): Likewise.
2207 * wptKeyManagerDlg.cpp (keylist_subclass_proc): support to
2208 add keys via 'INSERT'.
2209 * wptListView.cpp (listview_select_one): New.
2210 (listview_find): New.
2211 * wptFileManager.cpp (fm_get_current_pos): If there is only
2212 one item, return 0 but also select it. Thanks to Christian.
2213
2214 2004-08-28 Timo Schulz <[email protected]>
2215
2216 * WinPT.cpp (WinMain): Free gpg table in case of an error.
2217 * wptFileManagerDlg.cpp (filelist_subclass_proc): New.
2218 (filemanager_dlg_proc): Subclass the list control.
2219 * Fix Alt+C for the winpt_prefs_dlg_proc.
2220 * wptKeyserver.cpp (kserver_load_conf): Ignore lines with
2221 just whitespaces. Thanks to the folks on winpt-users.
2222
2223 2004-08-27 Timo Schulz <[email protected]>
2224
2225 * wptKeyserver.cpp (skip_whitespace): New.
2226 * Fix a problem with the key cache. The new hash item was
2227 not initialized to zero and thus the free caused an illegal access.
2228 Thanks to Ralf for pointing this out.
2229 * wptTextInputDlg.cpp (text_input_dlg_proc): Finished with localisation.
2230 * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Likewise.
2231 * wptFirstRunDlg.cpp (first_run_dlg_proc): Remove global variable and
2232 use a context to store the value. Loalize all text strings.
2233 * wptKeyList.cpp (key_check_validity): Cannot use gettext here.
2234 (keylist_get_recipients): Increase buffer for gettext messages.
2235
2236 2004-08-26 Timo Schulz <[email protected]>
2237
2238 * WinPT.cpp (load_keyserver_conf): New. Factored out some code
2239 from WinMain ().
2240 (WinMain): Load keyserver config at the begin. Thanks to Bodo Aßner
2241 * wptKeyserverDlg.cpp (keyserver_dlg_proc): If there is no keyserver
2242 in the list control, add at least the internal default HKP server.
2243 * wptKeygenDlg.cpp (keygen_wizard_dlg_proc): NLS support.
2244 * wptKeySignDlg.cpp (sig_class_dlg_proc): Likewise.
2245 (keysign_dlg_proc): Likewise.
2246 * wptKeySigDlg.cpp (keysig_dlg_proc): Likewise.
2247 * wptKeyserver.cpp (skip_type_prefix): New. Thanks to Marcus Junk.
2248 (kserver_connect): use it here.
2249 (kserver_send_request): Likewise.
2250 (kserver_recvkey): Likewise.
2251
2252 2004-08-25 Timo Schulz <[email protected]>
2253
2254 * wptFileManager.cpp (fm_get_file_type): Skip files over 32 MB
2255 and skip to read large files on floppy discs.
2256 (fm_wipe): Display a 'wait' cursor until the wipe is complete.
2257 (is_floppy_disc): New.
2258 * wptFileManagerDlg.cpp (filelist_subclass_proc): New.
2259 (file_manager_dlg_proc): Use subclassing to allow some hotkeys.
2260
2261 2004-08-24 Timo Schulz <[email protected]>
2262
2263 * wptKeyEditDlgs.cpp (userid_list_init): Add creation date for
2264 the user-ids.
2265 * wptKeygenDlg.cpp (key_wizard_dlg_proc): Allow to switch into
2266 expert mode when the non-interactive mode is used.
2267 * WinPT.cpp (WinMain): Start the keygen wizard instead of the
2268 expert dialog and allow to switch to it.
2269
2270 2004-08-20 Timo Schulz <[email protected]>
2271
2272 * wptKeyManagerDlg.cpp (do_create_minpopup): In read-only
2273 mode the menu is not available.
2274 (popup_gpg_readonly): New.
2275 (menu_gpg_readonly): New.
2276 (keymanager_dlg_proc): Use it here. Do not check the permissions
2277 any longer since this is now handle via the read-only code.
2278 * wptMainProc.cpp (winpt_main_proc): Check if the keyrings
2279 are in read-only mode.
2280 * wptKeyGenDlg.cpp (keygen_wizard_dlg_proc): RSA support.
2281 * wptKeySignDlg.cpp (keysign_dlg_proc): Allow non-revocably
2282 signatures in expert mode.
2283 * wptKEyEditDlgs.cpp (do_find_userid): Release context.
2284 * wptGPG.cpp (gpg_check_permissions): Only print out a warning
2285 in the interactive mode.
2286 * wptTrayPopDlg.cpp (WndProc): Destroy the window when the left
2287 mouse button is clicked.
2288
2289 2004-08-19 Timo Schulz <[email protected]>
2290
2291 * wptKeyEditDlg.cpp (keyedit_addsubkey_dlg_proc): Corrected
2292 key numbers.
2293
2294 * wptKeysigDlg.cpp (do_delsig): New. Implement 'delsig' command.
2295 (is_sig): Change code to allow to check pre-defined fields.
2296
2297 * WinPT.cpp (WinMain): Allow read-only support for keyrings.
2298
2299 2004-08-06 Timo Schulz <[email protected]>
2300
2301 * wptContext.h: Move subclass_s context to this file.
2302
2303 * wptKeysigDlg.cpp (subclass_dlg_proc): New.
2304
2305
2306 2004-08-05 Timo Schulz <[email protected]>
2307
2308 * wptKeySigDlg.cpp (sigprops_dlg_proc): Set the 'expired' flag
2309 when possible.
2310 New dialog layout to enhance the readability of the text. Use
2311 flat check boxes for the same reason.
2312
2313 * wptKeyEditDlgs.cpp (do_editkey_expire): Set new value to
2314 the right column (3 not 4).
2315
2316 * wptFileManagerDlg.cpp: Make sure the wipe freespace tempfile
2317 uses a unique name.
2318
2319
2320 2004-08-04 Timo Schulz <[email protected]>
2321
2322 * wptClipEditdlg.cpp (clip_edit_dlg_proc): Removed the
2323 edit-field to display the text. Now a RichEdit field is
2324 used. This solves the XP problem that the viewer is empty
2325 even if there is text in it.
2326
2327 * wptKeyManger.cpp (km_file_export): Add WinPT specific comment.
2328
2329 * wptKeySigDlg.cpp (sigprops_dlg_proc): New.
2330 (keysig_dlg_proc): Add new 'Properties' button and implement
2331 the code for it.
2332
2333 * wptSigList.cpp: Add support to show the expiration date.
2334
2335 * wptGPGME.cpp (keycache_init): Support to show the progress bar.
2336 (keycache_release): Store the amount of keys in the registry for
2337 the progress dialog.
2338
2339 * wptPreferenceDlg.cpp (prefs_dlg_proc): Add support to generate
2340 default keyserver.conf.
2341
2342 * wptKeyserver.cpp (kserver_load_conf): Store the mod-time of the file.
2343 Fix possible buffer overflow.
2344 (wsock_end): Release stored keyserver list.
2345
2346 * wptEncryptDlg.cpp (clip_encrypt_dlg_proc): Allow to search for
2347 a specific recipient and select it.
2348
2349 2004-08-02 Timo Schulz <[email protected]>
2350
2351 * wptKeysigDlg.cpp (do_create_popup): New.
2352 (do_load_keyprops): New.
2353
2354 (keysig_dlg_proc): Factor out some common code and use
2355 do_load_keyprops.
2356
2357 * wptKeyServer.cpp (kserver_check_inet_connection): New.
2358
2359 * wptKeyManger.cpp (km_refresh_from_keyserver): First check
2360 for an active internet connection. It's annoying for the
2361 user to confirm an connection error for each key (n>40).
2362
2363 2004-07-27 Timo Schulz <[email protected]>
2364
2365 * wptKeyManagerDlgProc.cpp (keymanager_dlg_proc): Set the new
2366 value for the ownertrust.
2367
2368 * wptKeyManager.cpp (get_key_trust): Make it public.
2369 (get_key_trust_str): New.
2370 (km_refresh_from_keyserver): Allow to select random keys.
2371 (km_refresh_one_key): New.
2372
2373 * wptKeyserver.cpp: Use default keyserver if possible.
2374
2375 2004-07-13 Timo Schulz <[email protected]>
2376
2377 * wptFileManager.cpp (fm_assume_onepass_sig): New.
2378 Thanks to Vedaal who found out that armored one-pass sigs are not
2379 correctly recognized.
2380
2381 (ask_filename): New.
2382 Again thanks to Vedaal who suggested to ask for a new output name
2383 for the case the user does not want to overwrite the file.
2384
2385 (fm_encrypt): Use it here.
2386 (fm_decrypt): Likewise.
2387 (fm_sign): Likewise.
2388
2389 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): New context menu entry
2390 to set secret keys to ultimate trust.
2391
2392 * wptKeyManager.cpp (km_check_for_seckey): Optionally return if the
2393 key has ultimate trust.
2394 (km_set_implicit_trust): New.
2395
2396 2004-07-12 Timo Schulz <[email protected]>
2397
2398 * wptRegistry.cpp: Support for disable compression of multi-media files.
2399 (set_reg_winpt_single): New.
2400 (get_reg_winpt_single): New.
2401
2402 * wptFileManager.cpp (is_multi_media): New.
2403 (fm_encrypt): Disable compression of multi-media files.
2404 (fm_state_new): Set comment to indicate armored files were generated
2405 by WinPT. This is a replacement due to the fact the WinPT string is not
2406 added in the 'Version' for larger files.
2407
2408 * WinPT.cpp (WinMain): Extract the loadimage.exe from the DLL if not found.
2409
2410 2004-07-11 Timo Schulz <[email protected]>
2411
2412 * Bug fix for the validity revoked status. Now it is 'revoked'
2413 and not 'unknown' any longer.
2414
2415 * Feature to disable encryption. This might be useful for filetypes
2416 GPG does not recognize as compress (movies, ...).
2417
2418 * wptFileManager.cpp (fm_get_file_type): Skip packet detction if
2419 the file is large and it has no openpgp extension.
2420
2421 2004-06-19 Timo Schulz <[email protected]>
2422
2423 * wptInet.cpp: Renamed to ...
2424 * wptHttp.c: ... this.
2425 * wptKeyManager.cpp (km_http_import): Release 'p' not too early.
2426 * WinPT.cpp (WinMain): If there is a problem with the homedir,
2427 jump to the first start settings.
2428
2429 2004-06-12 Timo Schulz <[email protected]>
2430
2431 * wptInet.cpp: Updated.
2432 * wptKeyManager.cpp (km_http_import): Use http_send_request2() to
2433 parse the URL.
2434 * wptCommonDlg.cpp (http_file_dlg_proc): New.
2435 (get_http_file_dlg): New.
2436
2437 2004-06-08 Timo Schulz <[email protected]>
2438
2439 * wptInet.cpp: New.
2440 * wptKeyManagerDlg.cpp (key_manager_dlg_proc): Support for http
2441 transfers.
2442 * wptKeyManager.cpp (km_http_import): New.
2443
2444
2445 2004-06-02 Timo Schulz <[email protected]>
2446
2447 * wptClipEditDlg.cpp (clip_edit_dlg_proc): Do not issue an error
2448 if there is no clipboard data.
2449
2450 Release memory in case of an error.
2451
2452 * wptKeyManager.cpp (keylist_cmp_cb): Allow to sort by algorithm.
2453
2454 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Likewise.
2455
2456
2457 2004-05-31 Timo Schulz <[email protected]>
2458
2459 * wptFileVerifyDlg.cpp (file_verify_dlg_proc): Implement the
2460 'X' close button. Noted by a friendly user.
2461
2462 Disable 'Save' button.
2463
2464 * wptMainProc.cpp (cleanup_tmp_files): Delete all related temp files.
2465
2466 * wptFileManager.cpp (fm_set_status): Do not use the data file name
2467 for signatures but keep the original file name.
2468
2469 (fm_verify_pasted_detsig): Try to verify detached signatures from
2470 the clipboard.
2471
2472 2004-05-14 Timo Schulz <[email protected]>
2473
2474 * WinPT.cpp (check_crypto_engine): Due to some
2475 internal GPG changes the min. version for smart card
2476 support is now 1.3.6.
2477
2478 * wptProxySettingsDlg.cpp (read_proxy): Correct prefix
2479 handling. Thanks to the folks who reported this via SF.net.
2480
2481 * wptRegistry.cpp (get_reg_winpt_prefs): Corrected enum ids.
2482 Thanks to the folks on winpt-users who reported it.
2483
2484 * wptPreferencesDlg.cpp (prefs_dlg_proc): Fix code in case of
2485 the hotkeys are disabled.
2486
2487 * wptKeylist.cpp (do_addkey): Broken ElGamal dection, fixed.
2488
2489 * wptFileManager.cpp (fm_get_file_type): Do not parse the entire
2490 file if the size is >= 256MB.
2491
2492 2004-03-15 Timo Schulz <[email protected]>
2493
2494 * Decrypt list box has now a vertical scroll bar.
2495
2496 2004-03-11 Timo Schulz <[email protected]>
2497
2498 * The DLL is now complety C-source.
2499
2500 2004-03-08 Timo Schulz <[email protected]>
2501
2502 * wptGPG.cpp (gnupg_import_keyrings): cleanups.
2503
2504 * wptUTF8.c (utf8_to_wincp): New. Directly convert UTF-8 to Windows
2505 CP.
2506 (wincp_to_utf8): Likewise.
2507 (conv_charset): Now internal and static.
2508
2509 * wptUTF8.h: New prototypes and remove the old prototypes.
2510
2511 * WinPT.cpp (WinMain): Destroy the windows handle in case of an error.
2512
2513
2514 2004-03-07 Timo Schulz <[email protected]>
2515
2516 * wptGPG.cpp (get_gnupg_keyring): Special case because GPG creats
2517 dummy keyrings with a size of zero in the homedir.
2518
2519 (gpg_check_permissions): Check for read-only keyrings and add code
2520 for this case.
2521
2522 This problem fixes a lof of other problems related to the OpenPGP
2523 parsing stuff for the key cache.
2524
2525 * WinPT.cpp (check_crypto_engine): Store the GPG version for later use.
2526
2527 2004-03-04 Timo Schulz <[email protected]>
2528
2529 * wptKeyserver.cpp (finger_recvkey): Error if key was not found
2530 or garbled.
2531
2532 * wptGPG.cpp (gpg_check_permissions): Take care of the entries
2533 in gpg.conf.
2534
2535 * wptFileManagerDlg.cpp (file_encrypt_dlg_proc): Support to select
2536 the signer. Suggested by Sebastian.
2537
2538 * wptKeylist.cpp (seclist_init): Moved from the clip dialog file to
2539 this file.
2540 (seclist_free): Likewise.
2541 (seclist_select_key): Likewise.
2542
2543 * wptFileManager.cpp (fm_encrypt): Handle the case the signer was
2544 already set.
2545
2546 2004-03-02 Timo Schulz <[email protected]>
2547
2548 * wptGPG.cpp (check_keyring): Handle the case that the keyring
2549 is set in the gpg.conf file and the pubring.gpg file is zero bytes.
2550
2551 (gnupg_backup_keyrings): Support backup of keyrings which were set
2552 in gpg.conf. Thanks to the user who reminded me of this problem.
2553
2554 (gnupg_check_file_ext): Make check not case sentensive.
2555
2556 * (sfree_if_alloc): Overwrite the memory with zeros before freeing
2557 it. This only works with c-strings! Use it everywhere we handle
2558 sentensive information (passphrases).
2559
2560 * Try to improve the usability with better menu names and new
2561 ordering.
2562
2563 * wptKeyMangerDlg.cpp: Make the 'Trust' column sortable.
2564
2565 * wptMainProc.cpp (winpt_main_proc): Removed GPG about dialog. Now
2566 it is part of the WinPt about dialog. This way we can minimize the
2567 elements in the popup menu.
2568
2569 2004-02-29 Timo Schulz <[email protected]>
2570
2571 * wptFileManagerDlg.cpp (file_encrypt_dlg_proc): Support throw-keyid.
2572
2573 * wptKeySignDlg.cpp (do_fill_seckeylist): Make sure we skip key itself
2574 so we are not allowing to sign ourself.
2575
2576 * wptSigList.cpp (siglist_add_key): Support for the signature
2577 flags (local, non-revocably, ...).
2578
2579 * Key signing with GPG 1.2.x should work again. Hopefully.
2580
2581 2004-02-26 Timo Schulz <[email protected]>
2582
2583 * wptFileManagerDlg.cpp (file_encrypt_dlg_proc): Issue an error
2584 if no recipient was selected.
2585
2586 * wptFileManager.cpp (fm_parse_files): Make sure the progress dialog
2587 is destroyed. This fixes the bug that the dialog sometimes exist even
2588 after the procedure ended.
2589
2590 * wptProgressDlg.cpp (progress_callback): Change the if-then-else
2591 struct to prevent zombie dialogs.
2592
2593 * wptKeyserver.cpp: Removed unused prototypes.
2594
2595 2004-02-25 Timo Schulz <[email protected]>
2596
2597 * wptKeyManagerDlg.cpp: Use consequently 'List Signatures' and
2598 do not mix the names in the different menus.
2599
2600 * wptSigList.cpp: Support to show the signature class.
2601
2602 * wptKeyEditDlgs.cpp (keyedit_main_dlg_proc): Disable the combo
2603 box when there is no secret key available.
2604
2605 (do_init_keylist): Do not allow to use the owners key as a desig
2606 revoker.
2607
2608 * wptKeylist.cpp (get_key_trust): New.
2609 (do_addkey): Use it here.
2610
2611 2004-02-24 Timo Schulz <[email protected]>
2612
2613 * WinPT.cpp (WinMain): Call a selftest check procedure to
2614 make sure all cryptographic code works as expected.
2615
2616 2004-02-22 Timo Schulz <[email protected]>
2617
2618 * PTD: Cryptdisk seems to have problems with locking. Use
2619 a forced flag to tell the code if it should bail out or
2620 ignore locking errors.
2621
2622 * wptCryptdisk.cpp (cryptdisk_umount_dlg_proc): Use new
2623 locking code.
2624 (cryptdisk_new_dlg_proc): Adjust size of the volume.
2625
2626 2004-02-21 Timo Schulz <[email protected]>
2627
2628 * wptCryptdisk.cpp (cryptdisk_cleanup): New.
2629 (is_nt4): Because my Platform-SDK is too old I need to load
2630 some prototypes dynamically.
2631 (init_drives): Return the first useable drive letter if
2632 called with appropriate parameters.
2633 * wptMainProc.cpp (winpt_main_proc): Use it here.
2634
2635 2004-02-18 Timo Schulz <[email protected]>
2636
2637 * Modify the cryptdisk code for crosscrypt 0.4.1.
2638 * wptCryptDisk.cpp (do_mount): Add key algorithm param.
2639
2640 2004-02-17 Timo Schulz <[email protected]>
2641
2642 * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Also encrypt
2643 to the signers key. Suggested by Alexander.
2644 Use new keycache system, we use the public key part of the
2645 cache because it has all flags set.
2646 * wptGPG.cpp (default_key_from_cache): Use new cache system.
2647 * wptKeySignDlg.cpp (do_fill_seckeylist): Likewise.
2648
2649
2650 2004-02-12 Timo Schulz <[email protected]>
2651
2652 * wptErrors.cpp: New error codes for the cryptdisk feature.
2653 * wptCryptdisk.cpp (do_dispatch): Better error handling.
2654 (cryptdisk_mount_dlg_proc): Use it here.
2655 (cryptdisk_umount_dlg_proc): Likewise.
2656 (init_drives): Use system list.
2657
2658 Localized all strings.
2659
2660 2004-02-09 Timo Schulz <[email protected]>
2661
2662 * wptCryptdisk.cpp (cryptdisk_umount_dlg_proc): New.
2663 (do_reaping): New. Release the list if all items are 'expired'.
2664 (cryptdisk_mount_dlg_proc): New.
2665 (init_drives): New.
2666 * wptMainProc.cpp (cryptdisk_proc): Renamed from...
2667 (handle_cryptdisk): this. And filled with life.
2668
2669 2004-02-08 Timo Schulz <[email protected]>
2670
2671 * wptCryptdisk.{cpp,h}: New. Support for the extended
2672 filedisk application.
2673 * wptMainProc.cpp (winpt_main_proc): Likewise.
2674 * WinPT.cpp (WinMain): Make sure the new PTD lib is installed.
2675
2676 2004-02-05 Timo Schulz <[email protected]>
2677
2678 * wptRegistry.cpp (set_reg_winpt_prefs): Forget to handle
2679 CMD_DISHOTKEYS. Thanks to the user who reminded me.
2680 * wptMainProc.cpp (spawn_cryptdisk): New interface to
2681 the Cryptdisk application.
2682
2683 2004-02-04 Timo Schulz <[email protected]>
2684
2685 * wptRegistry.cpp (get_reg_winpt_prefs): Revamped the core.
2686
2687 2004-02-03 Timo Schulz <[email protected]>
2688
2689 * WinPT.cpp (check_crypto_engine): New. Factor out common code.
2690 (WinMain): Check the crypto engine after the first start.
2691
2692 * wptRegistry.cpp (set_reg_winpt_prefs): Make sure an error is
2693 issued if the values could not stored. Revamped the core.
2694
2695 * Removed the last appearance of the GPG agent support.
2696
2697 * wptGPG.cpp (init_gnupg_table): Do not use static buffers.
2698 (free_gnupg_table): Free memory.
2699
2700 * wptClipImportDlg.cpp (clip_import_dlg_proc): Make sure the
2701 ctx pointer get malloced and set the contents to zero.
2702
2703
2704 2004-02-02 Timo Schulz <[email protected]>
2705
2706 * wptCardDlg.cpp (card_keygen_dlg_proc): Make sure the name
2707 is long enough. The same check for the mail address.
2708
2709 Thanks to Achim.
2710
2711 2004-01-28 Timo Schulz <[email protected]>
2712
2713 * wptCardDlg.cpp (card_keygen_dlg_proc): A info is issued
2714 if keys on the card exist but the user does not said overwrite.
2715
2716 Make sure the expire date is not in the past.
2717
2718 * wptMainProc.cpp (winpt_main_proc): Avoid to release the file
2719 lock twice. Not sure if this fixes some other problems but it
2720 was definitely a bug.
2721
2722 * wptMapi.cpp (mapi_init): Make sure all function ptrs are
2723 initialized otherwise bail out.
2724 (mapi_send_message): New. Interface to allow to send an
2725 encrypted mail with zero ore more encrypted attachments.
2726 (secure_attachment): New.
2727 (parse_recipients): New.
2728
2729 2004-01-25 Timo Schulz <[email protected]>
2730
2731 * WinPT.cpp (WinMain): Silently die when an instance is already
2732 running. Do not confuse the user with a message. Suggested by
2733 Sebastian.
2734 * wptKeyManager.cpp (delete_keys_from_cache): New.
2735 (km_delete_keys): Use it here. Thanks to Achim.
2736
2737 2004-01-23 Timo Schulz <[email protected]>
2738
2739 * wptCardDlg.cpp (check_pin_len): New. Check if the
2740 PIN is long enough and give an appropriate error.
2741 (card_changepin_dlg_proc): Use the new check function.
2742
2743 2004-01-22 Timo Schulz <[email protected]>
2744
2745 * Remove all internal card reader config. It's up to the
2746 user to do this. It would be too error proune to offer it.
2747 * wptCard.h: Removed all card driver stuff.
2748 * wptPinDLG.cpp (pin_cb_dlg): Use better names to differ
2749 between the admin and the user (normal) PIN.
2750
2751 2004-01-04 Timo Schulz <[email protected]>
2752
2753 * wptImageList.{cpp,h}: New. Contributed by Andreas Jobs.
2754 * wptKeylist.cpp (keylist_cmp_cb): More patches from Andreas
2755 and minor changes.
2756 * wptListView.cpp (listview_sort_items): Likewise.
2757 * wptKeyManager.cpp (key_manager_dlg_proc): Likewise.
2758 (regist_sep_wnd): Factored out some code.
2759
2760 2004-01-03 Timo Schulz <[email protected]>
2761
2762 * wptClipImportDlg.cpp (clip_import_dlg_proc): automatically allow
2763 to import secret keys.
2764
2765 2003-12-31 Timo Schulz <[email protected]>
2766
2767 * wptKeyEditDlgs.cpp (keyedit_addsubkey_dlg_proc): Do not sort
2768 the list otherwise the index is wrong.
2769 * wptKeySignDlg.cpp (keysign_dlg_proc): Add the ability to set
2770 a signature expire date.
2771
2772 2003-12-30 Timo Schulz <[email protected]>
2773
2774 * fixed the GPG edit-key commands sign and addrevoker.
2775
2776 2003-12-23 Timo Schulz <[email protected]>
2777
2778 * wptKeyEditAddKEyDlg.cpp (keyedit_addsubkey_dlg_proc): Remove
2779 ElGamal s+e support. Oops, this should be already done.
2780 * wptGPGME.cpp (keycache_init): Sync both key caches. In other
2781 words transfer some flags from the sec-cache to the pub-cache.
2782 * wptKeySignDlg.cpp (key_sign_dlg_proc): A workaround for the
2783 key sign procedure. If it is already signed, the process
2784 sometimes hangs.
2785
2786 2003-12-14 Timo Schulz <[email protected]>
2787
2788 * wptKeyeditSetPrefDlg.cpp (get_userid_preflist): New.
2789 * wptKeyEditDlgs.cpp (keyedit_main_dlg_proc): Support for updpref.
2790 (do_editkey_setpref): Implement updpref command.
2791
2792
2793 2003-12-10 Timo Schulz <[email protected]>
2794
2795 * GPGME support to change key preferences.
2796 * wptKeyeditSetPrefDlg.cpp (keyedit_setpref_dlg_proc): New.
2797 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Use the new feature here.
2798
2799
2800 2003-11-29 Timo Schulz <[email protected]>
2801
2802 * wptMAPI.cpp (mapi_init): New.
2803 (mapi_deinit): New.
2804 (mapi_send_pubkey): New.
2805 * wptKeyManager.cpp (km_send_to_mail_recipient): New.
2806 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Support
2807 to send the public key via MAPI to a recipient.
2808 * wptKeySignDlg.cpp (do_fill_seckeylist): Make sure we rewind
2809 the secret key cache so it's not at the end.
2810 (keysign_dlg_proc): Issue a warning when no secret key was
2811 found which could be used for signing the key.
2812 * wptKeylist.cpp (do_addkey): Never add an Elgamal sign+encrypt key.
2813 * wptKeySignDlg.cpp (do_fill_seckeylist): Likewise.
2814
2815 2003-11-28 Timo Schulz <[email protected]>
2816
2817 * Remove all support for ElGamal sign+encrypt keys.
2818
2819 There is a flaw in GPG which makes all such keys useable and
2820 they are comprised even if one signature they made is accessable.
2821 And due to the fact the key is self signed, such a sig is always
2822 available for the public.
2823
2824 We warn the user at startup if such keys were found!
2825
2826 * wptMainProc.cpp (elgamal_warn_dlg_proc): New.
2827 * wptGPGME.cpp (count_insecure_elgkeys): New.
2828 * WinPT (WinMain): Use it here.
2829
2830 2003-11-14 Timo Schulz <[email protected]>
2831
2832 * wptCardDlg.cpp (card_edit_dlg_proc): Release the second PIN.
2833
2834 2003-11-13 Timo Schulz <[email protected]>
2835
2836 * Clarify pin names. Now all PIN's are labeled 'Admin' or 'User'.
2837 * wptPINDlg.cpp (pin_cb_dlg_proc): Length check for the PINs.
2838 Thanks to Achim.
2839 * Change PIN interface. Now it is easier when an operation requires
2840 both PINs.
2841 * wptCardDlg.cpp (do_proc_card_cmds): Now GPG requires both PINs
2842 to change card attributes. Do not ask me why, but now the user
2843 needs to enter 2 PINs.
2844
2845 Name parts were swapped, now they have the right order again.
2846
2847 2003-10-02 Timo Schulz <[email protected]>
2848
2849 * Prepare test release.
2850 * wptGPGCmds.h: New from GPG 1.3.4-cvs.
2851
2852 2003-10-29 Timo Schulz <[email protected]>
2853
2854 * wptKeyEditDlgs.cpp: New logging scheme. Changed all callers.
2855
2856 * Create a new interface for an interactive card callback. GPG
2857 provides card control status messages if the wrong card is inserted.
2858
2859 * wptCardManager.cpp (card_cb_dlg_proc): New.
2860 (card_callback): New.
2861
2862 * wptCardPCSC.cpp (pcsc_loadlib): Use some 'A' to declare we use
2863 the ASCII functions and not the Unicode function names. Thanks to
2864 Werner for pointing this out.
2865
2866 * wptPassphraseCB.cpp (passphrase_cb): Better card interface. Now the
2867 serial card number is shown to help the user to find the right card.
2868
2869 * wptClipSignDlg.cpp (clip_sign_dlg_proc): New logging scheme.
2870
2871 2003-10-26 Timo Schulz <[email protected]>
2872
2873 * wptClipDecryptDlg.cpp (clip_decrypt_dlg): Implement new logging.
2874
2875 * Changed the code at several other places to support the new logging
2876 scheme.
2877
2878
2879 2003-10-24 Timo Schulz <[email protected]>
2880
2881 * Implemented a better logging system. If the return code
2882 of GPG is != 0 and the error is not known, display the errors
2883 from stderr.
2884
2885 * wptGPGME.cpp (logging_cb): New.
2886
2887 2003-10-23 Timo Schulz <[email protected]>
2888
2889 * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): Show GPG output
2890 if the error is unknown.
2891 (clip_sign_dlg_proc): Likewise.
2892 (clip_signenc_dlg_proc): Likewise.
2893 (clip_import_dlg_proc): Likewise.
2894
2895 2003-10-21 Timo Schulz <[email protected]>
2896
2897 * wptClipDecryptDlg.cpp (list_recipients): New.
2898 (algo_from_list): New.
2899 (clip_decrypt_dlg): New concept to list all recipients.
2900 * wptFileManager.cpp (fm_list_keys): New.
2901 (fm_decrypt): Same changes as for the clipboard decryption.
2902
2903 2003-10-21 Timo Schulz <[email protected]>
2904
2905 * wptClipDecryptDlg.cpp (clip_decrypt_dlg): If the passphrase
2906 was wrong, delete the cache item (if available).
2907 * wptClipSignDlg.cpp (clip_sign_dlg): Likewise.
2908 * wptClipSignEncDlg.cpp (clip_signenc_dlg): Likewise.
2909 * wptPassphraseCB.cpp (set_gpg_passphrase_cb): Set 'is_card'
2910 flag to zero.
2911
2912
2913 2003-10-19 Timo Schulz <[email protected]>
2914
2915 * wptPINDlg.cpp (pin_cb_dlg_proc): Support to store the admin and
2916 the working PIN.
2917 wptCardDlg.cpp (free_pincb): New.
2918 (card_keygen_dlg_proc): Pin callback implemented.
2919 Simple check for the e-mail address.
2920 (card_edit_dlg_proc): End the dialog if no changes were made.
2921
2922 * Expanded GPGME passphrase interface to work both with PINs
2923 and passphrases.
2924
2925 2003-10-18 Timo Schulz <[email protected]>
2926
2927 * wptCardDlg.cpp (card_keygen_dlg_proc): New.
2928 (do_askpin): Handle the case there is no card.
2929 (card_edit_dlg_proc): Add 'New Keys' feature.
2930 (card_changepin_dlg_proc): Implemented.
2931 * WinPT.cpp (WinMain): Ability to start the card manager directly.
2932 * wptMainProc.cpp (smartcard_init): Global stuff to init the reader
2933 driver and the inserted card.
2934
2935 2003-10-17 Timo Schulz <[email protected]>
2936
2937 * wptGPGME.cpp (keycache_init): Do not use secring the first time.
2938 * wptKeySignDlg.cpp (keysign_dlg_proc): Make sure only the short
2939 keyid will be displayed.
2940
2941 2003-10-16 Timo Schulz <[email protected]>
2942
2943 * Changed GPGME interface for edit card. Now one context is
2944 used for all edit card operations.
2945 * wptCardDlg.cpp (card_edit_dlg_proc): Support for working
2946 and admin PIN. Changed gpgme interface.
2947 (ask_pin): Renamed to..
2948 (do_askpin): this. Provide more information about the card
2949 and its holder.
2950 (do_proc_card_cmds): If no error, reset modify flags for
2951 all controls. Show a short message that the operation ended.
2952 * wptCardPCSC.c (pcsc_free_readers): New.
2953 (pcsc_scan_readers): New.
2954 (pcsc_get_reader): New.
2955 (pcsc_get_card_status): New.
2956
2957
2958 2003-10-14 Timo Schulz <[email protected]>
2959
2960 * wptKeyList.cpp (do_addkey): Add the case the secret key
2961 is stored on a smart card.
2962 (km_check_for_seckey): Take care of the new code.
2963 * wptKeyManager.cpp (km_delete_keys): Extra warning when
2964 the secret key is stored on a card.
2965 * wptKeyEditDlgs.cpp (subkey_list_init): Add the key cabilities
2966 to the list view. Now the user can see if the key is useable
2967 for: signing, certifying or encrypting.
2968
2969 2003-10-13 Timo Schulz <[email protected]>
2970
2971 * Extended the GPGME API that it is possible to retrieve
2972 the key data. This is for the planned card login but it
2973 might be also useful for other purposes.
2974
2975 * wptCardPCSC.c: New. General code for PC/SC card readers.
2976
2977
2978 2003-10-12 Timo Schulz <[email protected]>
2979
2980 * wptCardDlg.cpp (guess_libname): New.
2981 (card_status): Simplified the code with an attribute
2982 table. Now it is a loop and not hard coded.
2983 * The card interface has changed. Now the surname and
2984 the given name are two fields and not one field.
2985 * wptMainProc.cpp (winpt_main_proc): Check if the card
2986 reader is configured where appropriate.
2987
2988 2003-10-09 Timo Schulz <[email protected]>
2989
2990 * wptCardDlg.cpp (get_card_status): New.
2991 (show_card_status): New. Retrieve the card status and show an
2992 error if approprioate.
2993 * Make sure that WinPT does not try to use non-OpenPGP cards.
2994 * Add GPGME support for the forthcoming AUTH flag for keys.
2995 * Implemented the detection of keys where the secret key components
2996 are stored on a smart card.
2997
2998
2999 2003-10-08 Timo Schulz <[email protected]>
3000
3001 * wptCardDlg.cpp (do_proc_card_cmds): Check that only US-ASCII
3002 is used. Otherwise reject the value.
3003 (ask_pin): New. Enable PIN caching for the 'dialog session' so
3004 the user does not need to re-enter it again and again.
3005
3006 2003-10-07 Timo Schulz <[email protected]>
3007
3008 * wptPINDlg.cpp (pin_cb_dlg_proc): New.
3009 * wptCardDlg.cpp (do_proc_card_cmds): New.
3010 (card_edit_dlg_proc): Use it here.
3011
3012 2003-10-06 Timo Schulz <[email protected]>
3013
3014 * wptFileManager.cpp (fm_encrypt): Wipe files in both modes.
3015 * wptGPG.cpp (gnupg_display_error): Display general error
3016 when the file does not exit.
3017 * wptW32API.cpp (get_folder_dlg): New.
3018 * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Ability to select
3019 the folder for the home directory.
3020 * wptKeyManager.cpp (km_update_default_key_str): Return length
3021 of the string.
3022 (km_complete_status_bar): Use the offset of the default
3023 key string so it is not appened twice.
3024 * wptRegistry.cpp (regist_inst_winpt): Create 'Card' subkey.
3025 * wptCard.h: New.
3026 * wptCardDlg.cpp (new_card_driver): New.
3027 (load_card_driver): New.
3028 (free_card_driver): New.
3029 (card_config_dlg_proc): If the reader is configured, load the
3030 values. This is needful to change the driver later.
3031 (gpg_load_scard): Use driver as a parameter.
3032 * wptMainProc.cpp (winpt_main_proc): Load card driver and
3033 unload it after use.
3034
3035 2003-09-28 Timo Schulz <[email protected]>
3036
3037 * wptCardDlg.cpp (card_edit_dlg_proc): New.
3038 (gpg_load_scard): New. Try to use GPG load the card info.
3039 (print_fpr): New. Print beautified fingerprint.
3040 (card_status): New. Set all dialog fields with the values from
3041 the card.
3042 (prepare_dialog): New. Load combo boxes with pre-defined strings.
3043
3044
3045 2003-09-25 Timo Schulz <[email protected]>
3046
3047 * wptProgressDlg.cpp (progress_cb_thread): New.
3048 (progress_callback): Use asynchron code.
3049 * wptFileManager.cpp (fm_parse_files): Implement progress callback.
3050
3051
3052 2003-09-25 Timo Schulz <[email protected]>
3053
3054 * wptClipSignEncDlg.cpp (seclist_dlg_proc): The dialog was broken.
3055 (check_key): New.
3056 Removed the old Secret Key List dialog. Now the key can be directly
3057 chose in the dialog.
3058 (seclist_init): New.
3059 (seclist_destroy): New.
3060 (seclist_select_key): New.
3061 * wptFileManager.cpp (fm_sign): Ask for output file if needed.
3062
3063 * Client side implementation of the --enable-progress-filter feature.
3064
3065 * wptProgressDlg.cpp: Server side implementation.
3066 (progress_dlg_proc): New. The actual dialog procedure.
3067 (progress_callback): The GPGME wrapper callback.
3068
3069 2003-09-24 Timo Schulz <[email protected]>
3070
3071 * wptKeygenDlg.cpp (keygen_dlg_proc): Implement 'Hide Typing' feature.
3072 * wptFileManager.cpp (fm_encrypt): Ask for output file if needed.
3073 * wptFileManagerDlg.cpp (fm_dlg_proc): Removed im- and export from
3074 the menu. We use import internally, but export was not useful and
3075 thus the code were removed.
3076 * wptPreferenceDlg.cpp (prefs_dlg_proc): Disable some controle at
3077 startup when they are not allowed.
3078 * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Removed PGP2 option.
3079 Make the parsing code much shorter (read).
3080
3081
3082 2003-09-22 Timo Schulz <[email protected]>
3083
3084 * wptSigList.cpp (extract_filename): Make sure there is a '\',
3085 otherwise just dup the string and return.
3086 * wptVerifyList.cpp (verlist_add_sig): Use a variable for the key
3087 to make the code more readable.
3088 * Implemented the GPGME part of the new smartcard interface.
3089 The WinPT interface will be open until the scard stuff is back
3090 ported to GPG 1.3.x.
3091 * wptKeyEditDlgs.cpp (do_editkey_revuid): Need a secret key to do it.
3092 Several code cleanups.
3093
3094 2003-09-08 Timo Schulz <[email protected]>
3095
3096 * wptRegistry.cpp: Remove some hotkeys to correct index calculation.
3097 (get_reg_winpt_flag): Check buffer first.
3098 (get_reg_winpt_prefs): Support for the new backup system.
3099 (set_reg_winpt_prefs): Likewise.
3100 * wptHotkey.h: Removed import and export hotkey. Re-ordered elements.
3101 * wptRegistry.h: Cleaned up the hotkey interface.
3102 * wptPreferenceDlg.cpp (enable_backup_items): New.
3103 (prefs_dlg_proc): Simplified hotkey handling. Use new code.
3104 * wptMainProc.cpp (clip_gpg_dlg): Remove hotkey handling for
3105 im- and export. Use the code directly.
3106 (currwnd_gpg_dlg): Likewise.
3107 * wptGPG.cpp (gnupg_backup_keyrings): New.
3108 (backup_one_file): New.
3109
3110 2003-09-04 Timo Schulz <[email protected]>
3111
3112 * wptFileManager.cpp (fm_get_file_type): Due to an unknown reason,
3113 the packet parsing return value check was wrong again. Now it does
3114 not recognize Word documents as SECKEY or ENCRYPTED any longer.
3115
3116 2003-09-03 Timo Schulz <[email protected]>
3117
3118 * The secret key listing does not contain any 'validity' or
3119 'status' flags any longer. Thus we only can use the cache to
3120 make sure we have a secret key. All attributes need to be retrieved
3121 from the public key listing.
3122
3123 * wptGPG.cpp (default_key_from_cache): New.
3124 (get_gnupg_default_key): Use new function to make sure we try
3125 to get the key from cache if there is a problem with the config
3126 file.
3127
3128 2003-08-30 Timo Schulz <[email protected]>
3129
3130 * wptGPG.h: Support for the GPG status messages REVKEYSIG and
3131 EXPKEYSIG. With this new feature, GPG 1.2.3 is required.
3132 * Make sure that the signature status does not cause an
3133 segfault.
3134 * WinPT.cpp: Use new check to detect the GPG version and make sure
3135 it is the minimum.
3136 * wptGPG.cpp (parse_version_nr): New.
3137 (check_gnupg_engine): Improved. Now it returns the actual version.
3138
3139 2003-08-24 Timo Schulz <[email protected]>
3140
3141 * wptPreferencesDlg.cpp (prefs_dlg_proc): Use better code to disable
3142 dialog controls.
3143
3144 2003-08-17 Timo Schulz <[email protected]>
3145
3146 * wptKeyManagerDlg.cpp (keymanager_dlg_proc):
3147 #ID_KEYMISC_EXPORT_PRIVKEY: Retrieve the current list view index. The
3148 value was malformed.
3149 * wptClipEditDlg.cpp (clip_edit_dlg_proc): Free global memory.
3150 * wptKeyserver.cpp (kserver_load_conf): If the file does not exist,
3151 don't bother the user with an error message. Closes #782751.
3152 * wptKeyEditDlgs.cpp (do_editkey_primary): New. Implement the
3153 "primary" edit key command.
3154 * wptKeyserverDlg.cpp (hkp_recv_key): New flag parameter. Now it is
3155 possible to supress the status message. This is useful when the whole
3156 keyring will be refreshed.
3157 * wptFileManager.cpp (fm_parse_command_line): Unquote file if needed.
3158 (quote_file): Avoid double quotes.
3159 * GPGME support for quoted file names.
3160 (fm_sym_encrypt): Double check password and to additional 8-bit checks.
3161 * WinPT.cpp (my_acces): Moved to this file..
3162 * wptGPG.cpp: ..here.
3163 (gpg_check_permissions): Renamed from check_permissions and make it global.
3164 * wptKeyManagerDlg.cpp (key_manager_dlg_proc): Check to make sure we
3165 have write access to the keyring for some commands.
3166
3167 2003-07-22 Timo Schulz <[email protected]>
3168
3169 * wptClipEditDlg.cpp (clip_edit_dlg_proc): Figure out the size of
3170 the text instead of allocating the maximum.
3171
3172 2003-07-13 Timo Schulz <[email protected]>
3173
3174 * wptKeygenDlg.cpp (check_passphrase): Check if the passphrase contains
3175 characters >= 127. Due to the fact that we use CP-1250 and GPG uses CP-850
3176 it would be a bad idea to use such passphrases. And thus we disallow it.
3177 * wptKeyEditDlgs.cpp (keyedit_change_passwd): Likewise.
3178 * wptSymEnc.cpp (gpgme_encrypt_symmetric): Likewise.
3179 * wptHotkey.cpp (hotkeys_strerror): Use capital letters.
3180
3181 2003-07-12 Timo Schulz <[email protected]>
3182
3183 * wptFileManager.cpp (fm_verify): Support for multiple signatures.
3184 * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Likewise.
3185 * wptProxySettingsDlg.cpp (read_proxy): Skip http:// prefix.
3186 * wptKeyserver.cpp (check_URL): Support for hkp://. Closes #755156.
3187 (kserver_connect): Likewise.
3188 (kserver_read_config): Likewise.
3189 * wptSymEnc.cpp (gpgme_encrypt_symmetric): Free memory if the passphrases
3190 are not equal.
3191 * wptKeyGenDlg.cpp (keygen_wizard_dlg_proc): New. An easy to use wizard to
3192 generate a key pair.
3193
3194 2003-06-24 Timo Schulz <[email protected]>
3195
3196 * Fixed filter code in Get{Open,Save}FileName. Changed all callers.
3197 Thanks to Alex.
3198 * wptKeyManager.cpp (km_delete_keys): Quote the user-id.
3199
3200
3201 2003-06-13 Timo Schulz <[email protected]>
3202
3203 * wptClipDecryptDlg.cpp (clip_decrypt_dlg): Quote the user-id name.
3204 * wptClipSignDlg.cpp (clip_sign_dlg_proc): Fix the code due to
3205 the fact the signer is now dymanic and not static.
3206 * wptGPG.cpp (check_gnupg_engine): Check if IDEA is available and
3207 change all code that it only shows an error if no plug-in was loaded.
3208 * wptKeyEditDlgs.cpp (is_cmd_openpgp): Remove REVKEY since you
3209 can revoke v3 keys.
3210 (do_editkey_revoke): Clarify command because it can be only used
3211 for secondary keys.
3212 * wptKeyManagerDlg.cpp (file_sign_dlg_proc): Make sure an error
3213 is issued when no key was selected. Thanks to vedaal.
3214
3215 2003-06-11 Timo Schulz <[email protected]>
3216
3217 * wptKeylist.cpp (keylist_add_key): Now the user-ids are in the
3218 right order and we do not use the last user-id but the first
3219 because this is always the primary user-id or the newest user-id.
3220 * wptGPGME.cpp (get_default_keyid): Removed. Some better code
3221 were added to get_gnupg_default_key.
3222
3223 2003-06-10 Timo Schulz <[email protected]>
3224
3225 * wptKeysignDlg.cpp (do_fill_seckeylist): Make sure disabled keys
3226 are skipped.
3227 (keysign_dlg_proc): Removed some redundant code.
3228 * wptKeyEditDlgs.cpp (is_idea_protect_algo): New. Find out if
3229 it is possible to change the passphrase.
3230
3231 2003-06-06 Timo Schulz <[email protected]>
3232
3233 * wptKeylist.cpp (keylist_get_recipients): Use a stronger warning
3234 message and include the user-id.
3235 * Encryption: use force overwrite (--yes) to make sure there are
3236 no complications with GPG.
3237 * Import: skip all record types we do not understand.
3238
3239
3240 2003-06-05 Timo Schulz <[email protected]>
3241
3242 * wptPassphraseCB.cpp (passphrase_callback_proc): Now the dialog
3243 shows all involved recipients and also the public key algorithm.
3244 * wptRegistry.cpp (reg_inst_winpt): If the user does not want
3245 the extensions, set the entry to "1" so the message is not shown
3246 again.
3247
3248 2003-06-04 Timo Schulz <[email protected]>
3249
3250 * wptKeylist.cpp (get_key_algo, get_key_size): Due to the fact
3251 that GPG uses the newest subkey by default, we always return
3252 the info of this subkey and not the first.
3253 * wptKeyImportStatusDlg.cpp (import_status_dlg_proc): Fixed off-by-one
3254 bug. Now the indicies are correctly.
3255 * wptGPG.cpp (gnupg_check_keyring): Do not free the value before
3256 get_file_size is called.
3257 * WinPT.cpp (WinMain): Only check the GPG engine version if there
3258 were no problems with the GPG config. And differ between a problem
3259 to get the version and if a wrong version were detected.
3260
3261
3262 2003-06-01 Timo Schulz <[email protected]>
3263
3264 * wptCurrWnd.cpp (rel_key, hit_key): Replaced with macros...
3265 (KEYDOWN, KEYUP): macros for the functions above.
3266
3267 2003-05-31 Timo Schulz <[email protected]>
3268
3269 * wptKeyManager.cpp (km_key_is_v3): Return if the selected
3270 key is an old PGP 2 (v3) key.
3271 * wptKeyManagerDlg.cpp (key_manager_dlg_proc): Only allow
3272 (#ID_KEYMISC_EDITKEY): Bail out if no key was selected.
3273 to add extented items if the key is NOT version 3.
3274 * wptKeyEditDlgs.cpp (keyedit_main_dlg_proc): Check if the
3275 key is v3 and forbid most commands.
3276 (is_cmd_openpgp): New.
3277
3278 2003-05-28 Timo Schulz <[email protected]>
3279
3280 * wptKeyManager.cpp (km_set_clip_info): New.
3281 * wptKeyManagerDlg.cpp (key_manager_dlg_proc): Use it here.
3282 * wptImportList.cpp (implist_build): Some column changes for
3283 the listview control.
3284 (implist_load): Return if secret keys were found.
3285 * wptClipImportDlg.cpp (data_cb_dlg_proc): Store if secret keys
3286 were found.
3287 (clip_import_dlg_proc): New message if secret keys were found.
3288
3289
3290 2003-05-25 Timo Schulz <[email protected]>
3291
3292 * wptImportList.cpp (implist_add_key): Address charset problem.
3293 * wptVerifyList.cpp (verlist_add_sig_log): Use UTF8 decoding.
3294 * wptKeyserver.cpp (set_default_kserver): New.
3295 (wsock_init): Call the new function.
3296 (kserver_load_conf): If the FP is invalid, skip to read the file.
3297 * WinPT.cpp (WinMain): Call set_default_kserver to make sure the
3298 item has a value.
3299
3300 2003-05-24 Timo Schulz <[email protected]>
3301
3302 * wptKeyEditDlgs.cpp (keyedit_main_dlg_proc): Subclass the two lists
3303 to allow to use virtual keys (DEL, INS).
3304 Release the uid control context when the dialog will be destroyed.
3305
3306
3307 2003-05-22 Timo Schulz <[email protected]>
3308
3309 * wptMainProc.cpp (winpt_main_proc): Set use_hotkey for current
3310 window mode sign+encrypt. This fixes a couple of other problems.
3311 * wptKeyPropsDlg.cpp (keyprops_dlg_proc): Get new values of the
3312 key when the cache was reloaded.
3313
3314
3315 2003-05-21 Timo Schulz <[email protected]>
3316
3317 * wptSiglist.cpp (siglist_add_key): Only list signatures which are
3318 user-id certificates (0x10-0x13) and ignore key and subkey sigs.
3319 c-strings are now handle correctly and decoded into GPGME.
3320
3321 2003-05-20 Timo Schulz <[email protected]>
3322
3323 * wptKeyPropsDlg.cpp (key_props_dlg_proc): Factor out code to change
3324 the passphrase from here to...
3325 * wptKeyEditDlgs.cpp (keyedit_change_passwd): ...this place.
3326
3327 2003-05-19 Timo Schulz <[email protected]>
3328
3329 * wptPasswdDlg.cpp (create_passwd_dlg): Removed.
3330 (request_passphrase): New.
3331 The passphrase_s context is now internal, all externl function use now
3332 request_passphrase. Changed all callers.
3333 * wptKeygenDlg.cpp (keygen_dlg_proc): Reworded the passphrase
3334 warning and a check for the comment field was added.
3335 * wptKeyEditDlgs.cpp: New. This file now combines the dialogs which
3336 has shown the subkeys and the userids.
3337 * wptKeySubkeyDlg.cpp: Deleted and stuff merged into wptKeyEditDlgs.cpp.
3338
3339 2003-05-17 Timo Schulz <[email protected]>
3340
3341 * wptFileManager.cpp: Moved gpgme_file_get_extension to this file
3342 and renamed it to...
3343 (file_get_extension): this. gpgme_control now also returns the
3344 (get_file_name): Corrected the calculation of the basename.
3345 state of the command if you use -1 as the value.
3346 * wptImportList.cpp (implist_load): Make sure we really have the key ID.
3347 * wptClipEditDlg.cpp (clip_edit_dlg_proc): Some small changes all over
3348 the place.
3349
3350 2003-05-14 Timo Schulz <[email protected]>
3351
3352 * wptKeyManager.cpp (km_enable_disable_key): New.
3353
3354 2003-05-13 Timo Schulz <[email protected]>
3355
3356 * wptKeyList.cpp (keylist_add_key): Add 'DISABLED' flag for keys.
3357 (key_check_validity): Moved from GPGME to this file.
3358 * wptKeyManager.cpp (km_get_key_status): New.
3359
3360 2003-05-09 Timo Schulz <[email protected]>
3361
3362 * wptMDSumDlg.cpp (mdsum_dlg_proc): New.
3363 * wptFileManager.cpp (fm_print_md): New.
3364 * wptFileManagerDlg.cpp (file_manager_dlg_proc): Support for the Print MD
3365 command.
3366
3367 2003-05-08 Timo Schulz <[email protected]>
3368
3369 * wptMainProc.cpp (winpt_main_proc): Symmetric encryption for the current
3370 window mode.
3371 (currwnd_gpg_dlg): Likewise.
3372 * wptCurrWnd.cpp (wnd_msg_em_set_pos): Fix an off-by-one bug.
3373 * WinPT.cpp (WinMain): If the default key was not found, show the string
3374 in the error message to make it easier for the user to fix the problem.
3375 * wptImportStatusDlg.cpp (import_status_dlg_proc): Take care of secret
3376 keys.
3377 * wptfileManager.cpp (fm_get_file_type): Fix packet type detection error.
3378 This makes the priority of the rc2 update more urgent.
3379
3380 2003-05-07 Timo Schulz <[email protected]>
3381
3382 * Clean up the outer GPGME interface. Internal functions should be
3383 invisible in gpgme.h.
3384 Merge the photo-id, formerly attribute id stuff with gpgme_key_get_xxx_attr.
3385 * wptKeyserver.cpp: Some cleanups.
3386 (finger_recvkey): Skip URL postfix if there.
3387
3388 2003-05-06 Timo Schulz <[email protected]>
3389
3390 * wptKeySigDlg.cpp (keysig_dlg_proc): Disable the button when all keys
3391 are available. Removed old [unused] code.
3392 Make sure we really have the key in the cache.
3393
3394 2003-05-04 Timo Schulz <[email protected]>
3395
3396 * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): If invalid recipients
3397 were found, output a more precise error message. Now the GPGME code
3398 first tests for special cases and if no one hit the nail on the head,
3399 a general error is used.
3400
3401 2003-05-03 Timo Schulz <[email protected]>
3402
3403 * wptParser.cpp: Renamed to...
3404 * wptGPGParser.cpp: this.
3405 (release_option): Renamed to...
3406 (release_gpg_options): this.
3407 (commit_option): Renamed to...
3408 (commit_gpg_options): this.
3409 (parse_option): Renamed to...
3410 (parse_gpg_options): this.
3411 * wptGPG.cpp: Use new parser function names.
3412 (set_gnupg_default_key): Free memory.
3413 * wptKeylist.cpp (keylist_add_groups): New group code.
3414 * wptGroups.{c,h}: Removed. Now we use the GPG group command.
3415 * wptKeySigListDlg.cpp (keysig_dlg_proc): Change column from
3416 2 to 4.
3417 (recv_missing_keys): Likewise. Now it is possible to retrieve
3418 missing keys. Thanks to Klaus.
3419 * wptKeyserverDlg.cpp (hkp_recv_key): Use a dymanic buffer rather
3420 than a static buffer to avoid garbled keys. There are some very
3421 large keys and these cause some trouble with a 16k buffer.
3422 (keyserver_dlg_proc): Localized some strings.
3423 * wptKeyserverSearchDlg.cpp (hkpsearch_dlg_proc): Use new column
3424 names which are equal to the names we use in the Key Manager.
3425 * wptKeySignDlg.cpp (keysign_dlg_proc): Fix a silly '=' but
3426 should be "==" bug.
3427 * wptKeygenDlg.cpp (mbox): Removed. Too much overhead.
3428 * Add --expert option for the GPG procedure call if needed.
3429
3430 2003-05-02 Timo Schulz <[email protected]>
3431
3432 * wptW32API.cpp (set_foreground_wnd): Removed. Changed all callers.
3433
3434 2003-04-30 Timo Schulz <[email protected]>
3435
3436 * wptKeyManagerdlg.cpp (keymanager_dlg_proc): Support for the
3437 next context menu ("Add"). Make sure the entries are disabled
3438 when the key has no secret key.
3439 * wptKeyEditAddPhotoDlg.cpp (keyedit_addphoto_dlg_proc): New.
3440 * wptFileManager.cpp (fm_decrypt): Set sig to NULL so it won't
3441 cause a segfault when the pointer free tries to deallocate the
3442 pointer.
3443
3444 2003-04-27 Timo Schulz <[email protected]>
3445
3446 * wptKeysigDlg.cpp (keysig_dlg_proc): A double click now allows
3447 to show the properties of the signers keys.
3448 * wptKeyEditAddRevokerDlg.cpp (keyedit_addrevocer_dlg_proc): New.
3449
3450 2003-04-26 Timo Schulz <[email protected]>
3451
3452 * wptParser.cpp: A lot of structural changes. Always add items
3453 at the end of the list so we don't need to make a copy of the list
3454 to restore the original order. Fix the group problem.
3455 * wptKeylist.cpp (keylist_build): Use OR to get the flags and
3456 not ==.
3457 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): The export command
3458 (file) does not use the keyid as the file name when more than one
3459 keys were selected.
3460 Allow allow to set default keys which are not revoked or expired.
3461 * wptFileEncryptDlg.cpp (file_encrypt_dlg_proc): Allow to sort
3462 the columns.
3463 Set the force trust flag in GPGME if there are some recipients
3464 with no validity.
3465
3466 2003-04-25 Timo Schulz <[email protected]>
3467
3468 * wptVerList.cpp (verlist_build): Change the name of some columns.
3469 * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Instead of just the
3470 notation (if present!) present the user a general message box
3471 with extended signature information. This means the notation
3472 data and a possible policy URL.
3473
3474
3475 2003-04-24 Timo Schulz <[email protected]>
3476
3477 * wptKeyEditAddSubKeyDlg.cpp (keyedit_addsubkey_dlg_proc): Init
3478 default values to make it easier for newbies.
3479 * wptClipDecryptDlg.cpp (clip_decrypt_dlg): Use a better error
3480 when no secret key was found. Also mention the public key algo.
3481 * wptFileManager.cpp (fm_decrypt): Likewise.
3482
3483 2003-04-23 Timo Schulz <[email protected]>
3484
3485 * wptKeyPropsDlg.cpp (ownertrust_to_string): Moved the function
3486 from GPGME#gpgme_ownertrust_to_string into WinPT.
3487
3488 2003-04-20 Timo Schulz <[email protected]>
3489
3490 * wptClipboard.cpp: Removed. All these functions and constants
3491 are now available in MyGPGME/clip.c and thus part of GPGME.
3492 * wptKeylist.cpp (keylist_add_to_recipients): Renamed to...
3493 (keylist_get_recipients): this. Return the context instead of
3494 an argument.
3495 (get_key_size): Add key index.
3496 (get_key_algo): Likewise.
3497 (keylist_build): Use a special mode when signing is used.
3498 (keylist_enum_recipients): Return a malloced pointer to the
3499 recipients.
3500 * wptClipDecryptDlg.cpp (clip_decrypt_dlg): Add primary fingerprint
3501 when we have a signature result and we do not trust the key.
3502
3503 2003-04-20 Timo Schulz <[email protected]>
3504
3505 * wptFindWnd.h: Removed. We don't use it any longer.
3506 * wptGPG.h: Merged GPGERR_xxx constants with WPTERR_xxx.
3507 (gpg_strerror): Removed. Now it is handled in winpt_strerror.
3508 * wptFileManager.cpp (fm_get_file_name): move this to
3509 * wptVerifyList.cpp (get_file_name): ..this place and declare
3510 it as static because no other file need this function.
3511
3512 2003-04-15 Timo Schulz <[email protected]>
3513
3514 * wptClipImportDlg.cpp (data_cb_dlg_proc): New.
3515 (data_cb_thread): New.
3516 (data_cb_dlg_create): New.
3517 (data_cb_dlg_destroy): New.
3518 (data_cb_new): New.
3519 (clip_import_dlg_proc): Use a callback dialog to
3520 show the user the data decoding procedure is in
3521 progress. This dialog is destroyed in the key
3522 import statistics dialog.
3523
3524
3525 2003-04-13 Timo Schulz <[email protected]>
3526
3527 * wptSubkeyDlgProc.cpp (key_subkey_dlg_proc): Use a callback
3528 context.
3529 * wptUidDlgProc.cpp (keyuid_dlg_proc): Likewise.
3530 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Set the protect
3531 flag inside the KEY contect if needed.
3532 * wptKeySubkeyDlg.cpp (key_subkey_dlg_proc): Only ask for a
3533 passphrase if the protect flag is set.
3534 Display the callback dialog to show the progress.
3535 Implemented the "revkey" feature.
3536 * wptKeyUidDlg.cpp (key_uid_dlg_proc): Likewise.
3537 (do_add_new_userid): New. Add an entry to the list box
3538 after the GPG process finished.
3539 * wptClipDecryptDlg.cpp (clip_decrypt_dlg): Initialize sig
3540 to zero to avoid segfaults.
3541
3542 2003-04-12 Timo Schulz <[email protected]>
3543
3544 * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Use the new
3545 GPGME code.
3546 * wptVerifyList.cpp (verlist_add_sig_log): Likewise.
3547 * wptClipDecryptDlg.cpp (clip_decrypt_dlg_proc): Likewise.
3548 * wptFileManager.cpp (fm_decrypt): Likewise.
3549 * WinPT.cpp (check_default_key): Check if the keys in gpg.conf
3550 are valid and in the keyring.
3551 * wptKeySignDlg.cpp (do_check_protection): Disable the passphrase
3552 item if the key is not protected.
3553
3554
3555 2003-04-09 Timo Schulz <[email protected]>
3556
3557 * wptFirstRunDlg.cpp (first_run_dlg_proc): Mark selection as
3558 invalid for cancel.
3559
3560 2003-03-20 Timo Schulz <[email protected]>
3561
3562 * wptFindWnd.cpp: Removed.
3563 * wptW32API.c (dialog_box_param): Use FindWindowEx() instead of
3564 find_window.
3565 * Whenever it's possible, use case insentensive searches to avoid
3566 problems.
3567
3568 2003-03-19 Timo Schulz <[email protected]>
3569
3570 * wptMainProc.cpp (winpt_main_proc): Put the init_dtp code here.
3571 * wptPassphraseCB.cpp (hide_typing): Removed. Use short code directly
3572 in the code.
3573 * wptPasswdDlg.cpp: Likewise.
3574 (passphrase_cb_init): Declare as static.
3575 (passphrase_cb_gpgme): Modified to use the static function and rename
3576 it to...
3577 (passphrase_gpgme_set_cb): ..this. New.
3578 * wptSecListDlg.cpp: Complete new appraoch. Now we use CB_SETITEMDATA
3579 and friends to assign data to each item.
3580 Move dialog code to...
3581 * wptClipSignEncDlg.cpp: ..here.
3582 * MyGPGME/keycache.c: We first look for directly key signatures and
3583 then we skip all other signatures if we've already seen the key. This
3584 is needed to gather the designated revoker keys.
3585
3586 2003-03-18 Timo Schulz <[email protected]>
3587
3588 * wptKeyImportStatDlg.cpp (import_status_dlg_proc): Fix index
3589 of revocation from 9 to 8.
3590 Set the text that no key was updated only if no new sig, subkey,
3591 userid and no public were added.
3592 Add more information: new {subkeys, signatures, userid}.
3593 * wptKeyManager.cpp (km_delete_keys): Fixme lame, '=' instead of '==' bug.
3594 * wptDlgs.cpp: Removed.
3595 * wptDlgs.h: (dlg_fatal_error): New. Macro.
3596
3597 2002-03-16 Timo Schulz <[email protected]>
3598
3599 * wptKeyRevokeDlg.cpp (key_revoke_dlg_proc): Encode the
3600 optional text in UTF-8 to avoid charset problems.
3601 * wptKeyManager.cpp (km_quote_uid): Use dynamic memory instead
3602 of a static buffer. Changed all callers.
3603 * wptKeylist.cpp (keylist_cmp_cb): Implemented sort functions
3604 for the rest of the columns.
3605 (keylist_handle_column_click): New.
3606 * wptKeyEditOwnertrustdlg.cpp (keyedit_ownertrust_dlg_proc):
3607 Removed the 'Advanced' button because it only confuses users
3608 and it is not often used.
3609 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Support to ex-
3610 and import the trustdb values (ownertrust).
3611 * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): Ability to
3612 sort columns.
3613
3614 2002-03-09 Timo Schulz <[email protected]>
3615
3616 * 64-bit support for wipe operations.
3617
3618 2002-03-08 Timo Schulz <[email protected]>
3619
3620 * wptFileManager.cpp (fm_parse_command_line): Ignore lines with '--'
3621 because they are options rather than files.
3622 * WinPT.cpp (WinMain): Allow to start the key manager directly
3623 via --keymanager.
3624 * wptFileManagerDlg.cpp (file_secdel_confirm_dlg_proc): New.
3625 (wipe_cb): New. Wipe callback function.
3626 (fill_drive_combobox): New. Fill in all logical drives into
3627 the given combo box.
3628 (wipe_thread): New. Worker thread.
3629 (update_disc_stats): New. Set the disc statistics for the
3630 given drive entry.
3631 (space_wipefrees_dlg_proc): New.
3632
3633 2002-03-01 Timo Schulz <[email protected]>
3634
3635 * wptFileManager.cpp (fm_check_file_type): Fix bug in the detection
3636 logic. Now we can decrypt symmetrically encrypted files again.
3637 Be stricter on memory alloaction checks.
3638 (fm_get_file_type): Be more strict with the return code of
3639 parse_packet. This avoids bogus file types for MS-Word files and
3640 other non-PGP data.
3641 (fm_wipe): Use the wipe mode from the registry and not a fixed value.
3642 * WptRegistry.cpp (set_reg_winpt_prefs): Support wipe mode.
3643 (get_reg_winpt_prefs): Likewise.
3644 * wptFilePrefsDlg.cpp: Removed. We don't use it any longer.
3645 * wptDlgs.h: Corrected all dialog protypes to BOOL.
3646 LRESULT was not correct.
3647
3648 2002-02-08 Timo Schulz <[email protected]>
3649
3650 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Only export
3651 the secret key when a file was chosen.
3652
3653 2002-02-01 Timo Schulz <[email protected]>
3654
3655 * wptKeyserver.cpp (kserver_search): Fix <KEYID bug.
3656
3657 2002-01-25 Timo Schulz <[email protected]>
3658
3659 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Support to copy the key id
3660 and the fingerprint to the clipboard. Closes #674455.
3661 Automatically reload the keycache when a command is chosen and the cache
3662 state is set to 'reload requested'. Closes #671218.
3663 * wptKeySignDlg.cpp (do_fill_seckeylist): Make sure the public key parts
3664 are not invalid.
3665 * WinPT.cpp (check_permissions): Make sure we have the permission to
3666 write the keyring. Stop if not because it's expected at many other places.
3667 * wptSigList.cpp (siglist_add_key): Indent signatures under the root entry.
3668 (siglist_build): Use a placeholder sig to avoid the position chaos.
3669 * wptKeyUidDlg.cpp: Unified text for 'user-ID'.
3670 * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): If a key is not found,
3671 display more information and use a GPG like output.
3672 * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Force trust if there is
3673 an invalid key in the list of recipients. Closes #674965.
3674
3675
3676 2002-01-21 Timo Schulz <[email protected]>
3677
3678 * wptSymEnc.cpp (gpgme_encrypt_symmetric): Ask the passphrase twice to
3679 avoid typing mistakes.
3680
3681 2003-01-19 Timo Schulz <[email protected]>
3682
3683 * winpt.cpp (WinMain): Fixed spelling mistake. Closes #669321.
3684 * wptKeyManagerDlg.cpp (do_resize_window): New.
3685 (do_create_minpopup): New. Closes #669730.
3686 * wptVerifyList.cpp (get_sig_date): Renamed to...
3687 (longdate_to_strdate): New. Changed all callers.
3688 * wptClipDecryptDlg.cpp (clip_decrypt_dlg): If the ciphertext contains
3689 a signature, also display the time of it. Closes #669780.
3690 * wptKeyImportStatusDlg.cpp (import_status_dlg_proc): Localize 2 strings.
3691 * wptEditKeyOwnertrust.cpp (keyedit_ownertrust_dlg_proc): Fixed a typo.
3692 * wptKeySignDlg.cpp (do_add_local_user): New. Now the dialog has the ability
3693 to choose the signer.
3694 (keysign_dlg_proc): Implemented a feature request. See above.
3695
3696 2003-01-08 Timo Schulz <[email protected]>
3697
3698 * wptKeyEditAddUidDlg.cpp (keyedit_adduid_dlg_proc): Output a warning
3699 if the user tries to add the email address in the name field.
3700 * wptKeyserver.cpp: Add support for protocols.
3701 (finger_readline): New.
3702 (finger_recvkey): New.
3703 * wptKeyUidDlg.cpp (keyuid_dlg_proc): Add a warning icon to the revoke
3704 message box to show it's a serious decision.
3705 * wptPasswdDlg.cpp (passwd_dlg_proc): Center dialog window.
3706 * wptRegistry.cpp (regist_single_filetype): Now internal and we use
3707 an easier way to get the location of the binary.
3708 (regist_inst_winpt): Implemented the 'with_ext' part and add a registry
3709 entry to avoid double file registering.
3710
3711 2003-01-07 Timo Schulz <[email protected]>
3712
3713 * wptKeyManagerDlg.cpp (do_center_window): New. Try to set the window
3714 pos from the coordinates from the registry.
3715 (keymanager_dlg_proc): Store the window pos in the registry.
3716 * wptKeyRevokeDlg.cpp (key_revoke_dlg): Check box for PGP compatible certs.
3717 * wptKeyImportStatusDlg.cpp (import_status_dlg_proc): Print out a hint when
3718 a revcert was found.
3719 * wptKeyserverDlg.cpp (hkp_recv_key): Print an error if the LDAP import does
3720 not succeed.
3721 (keyserver_dlg_proc): Corrected some listview index values.
3722 * wptKeylist.cpp (keylist_add_key): Use primary user-id when possible.
3723
3724 2002-12-23 Timo Schulz <[email protected]>
3725
3726 * wptRegistry.cpp (regist_inst_winpt): Try to create \Keyserver
3727 directory if does not exist.
3728 * wptKeyserver.cpp: Simpliefied config file.
3729 (kserver_change_proxy): Write config to the registry. Remove
3730 code for the config file.
3731 * wptProxySettingsDlg.cpp (read_proxy): More robust code.
3732 * wptKeyserverDlg.cpp (keyserver_dlg_proc): Removed the feature
3733 to send keys. The Key Manager is better for this.
3734
3735
3736 2002-12-21 Timo Schulz <[email protected]>
3737
3738 * Fixed some language mistakes.
3739 * wptMainproc.cpp: Use the desktop window as the parent window
3740 for the main dialogs so they are visible in the taskbar.
3741 * wptKeyManagerDlg.cpp: Enable minimize.
3742 * wptFileManager.cpp (fm_parse_command_line): Support for detached
3743 signatures.
3744 (fm_encrypt_directory): New.
3745 * wptKeylist.cpp (keylist_add_key): Check the current key if it
3746 is not expired, not the primary (idx=0).
3747
3748 2002-12-18 Timo Schulz <[email protected]>
3749
3750 * wptGPG.cpp (get_gnupg_optfile): Support for gpg.conf instead
3751 of the old name "options".
3752 * WinPT.cpp (WinMain): Try to repair broken home directories
3753 in the registry. Thanks to Gustavo who reminded me of it.
3754 * wptKeyserver.cpp (check_hkp_response): Only copy the text
3755 between <p> and </p> when possible.
3756 * wptAgent.cpp: Re-activated the old code. Now the passphrase
3757 timer can be used.
3758
3759 2002-12-14 Timo Schulz <[email protected]>
3760
3761 * wptKeyManager.cpp (km_check_for_seckey): Ultimate doesn't mean
3762 any longer there is also a secret key.
3763 (km_check_photo): New.
3764 (km_complete_status_bar): New.
3765 * wptFileManager.cpp (fm_verify): Support for bad signatures.
3766 Set the sigmode if not set.
3767 * wptKeyPropsDlg.cpp (keyprops_dlg_proc): Output a warning when
3768 the ownertrust of a non-valid (not signed) key is changed.
3769 * wptRegistry.cpp (expand_path): New. Use this code because it's
3770 much shorter.
3771
3772 2002-10-14 Timo Schulz <[email protected]>
3773
3774 * wptKeyserver.c: Replaced all strdup's with m_strdup and free
3775 with free_if_alloc.
3776 (ldap_recvkey): Fill with life. We use the GPG plugin to avoid
3777 all the LDAP overhead.
3778
3779 2002-10-13 Timo Schulz <[email protected]>
3780
3781 * wptKeyManager.cpp (km_file_import): Alloc buffer, it's not static
3782 any longer.
3783
3784 2002-10-31 Timo Schulz <[email protected]>
3785
3786 * wptKeyManager.cpp (km_update_default_key_str): Fixed '0x' handling.
3787 Thanks to Gustavo.
3788 * wptKeylist.cpp (add_key): Now we only use find_secret_key to detect
3789 whether it's a key pair or not.
3790 * Callback struct into KEY so we can modify the values in the background.
3791 * wptKeyPropsDlg.cpp (change_ownertrust): New.
3792
3793 2002-10-30 Timo Schulz <[email protected]>
3794
3795 * wptLDAP.cpp, wptLDAP.h: Removed. The plan is to use the gpgkey_xxx.exe
3796 LDAP plugin for this purpose.
3797 * wptMainproc.cpp (winpt_main_proc): Removed all LDAP stubs.
3798 * wldap32.lib is now not longer needed.
3799 * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Copy userid to clipboard.
3800 * Updated the resource file.
3801 * wptFileManager.cpp (fm_parse_command_line): Implemented the stuff
3802 for 'Decrypt', 'Verify', 'Import'.
3803
3804 2002-10-15 Timo Schulz <[email protected]>
3805
3806 * Changed all s(n)printf -> msg_box constructs to log_box.
3807
3808 2002-10-13 Timo Schulz <[email protected]>
3809
3810 * wptKeylist.cpp (get_key_expire_date): New.
3811 * wptKeyPropsDlg.cpp (key_props_dlg_proc): Use it here.
3812
3813 * Removed global keycache from GPGME. It's a bad style to mix
3814 general and specific interfaces.
3815
3816 * wptGPGME.cpp (get_pubkey): New. Used to hide keycache implementation
3817 details. Useful to replace it later.
3818 (get_seckey): Ditto.
3819 (keycache_reload): Moved from the GPGME library.
3820 (keycache_release): New.
3821 (keycache_init): New.
3822 (keycache_set_reload): New.
3823 (keycache_get_reload): New.
3824 (keycache_get_ctx): New.
3825
3826 * wptSigList.cpp (siglist_add_key): Use the new code.
3827 (siglist_build): Ditto.
3828
3829
3830 2002-10-10 Timo Schulz <[email protected]>
3831
3832 * wptW32API.cpp (get_filename_dlg): Added default filename parameter.
3833 Changed all callers.
3834 * wptKeyManagerDlg.cpp (keymisc_dlg_proc): Adjusted the code for the
3835 new get_filename_dlg.
3836 * wptFileManager.cpp (fm_export): Likewise.
3837 * wptClipDecryptDlg (clip_decrypt_dlg): Modified the verify message box.
3838 * wptKeySignDlg.cpp (keysign_dlg_proc): Changed the code for edit-key.
3839 Use signature class dialog.
3840 * wptKeyRevokeDlg.cpp (key_revoke_dlg_proc): Use the new code and the
3841 keyid instead of the userid to avoid charset problems.
3842 (err_message): New.
3843
3844 * Moved all wipe specific code (random, rmd160) to the DLL so we can
3845 save some memory for the tray section.
3846
3847 * wptKeyRevokersDlg.cpp (revokelist_build): New.
3848 (revokelist_init): New.
3849 (key_revokers_dlg_proc): New.
3850
3851 * wptKeyPropsDlg.cpp (key_props_dlg_proc): Use the designated revoker
3852 code here when available.
3853
3854 2002-09-25 Timo Schulz <[email protected]>
3855
3856 * wptClipboard.cpp (clip_parse_pgp_id): Add a flag when the text
3857 is dash escaped. This is useful for keys to avoid errors.
3858 * wptKeyManager.cpp (extract_dash_escaped_key): New. Extract an
3859 OpenPGP key from the clipboard which is dash escaped.
3860 (km_clip_import): Use the new code here.
3861
3862 2002-09-23 Timo Schulz <[email protected]>
3863
3864 * wptParser.cpp (add_multi_option): Support for values with more ' 's
3865 and skip the ' ' after the name.
3866 (modify_entry): New.
3867 * wptGPG.cpp (gnupg_save_options): Removed.
3868 (gnupg_load_options): Removed.
3869 (gnupg_release_options): Removed.
3870 * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Use the new code.
3871
3872 2002-09-17 Timo Schulz <[email protected]>
3873
3874 * winpt.cpp (WinMain): Use make_filename and no static buffer.
3875 Modified for the new gnupg interface.
3876 * wptFile.cpp (make_filename): New.
3877 * wptGpgCmds.h: New from GPG 1.1.92
3878 * wptGPG.cpp (gnupg_import_keyrings): Use dynamic buffers
3879 and make_filename.
3880 * wptKeygenDlg.cpp (ask_for_backup): Use new gpg code and
3881 make_filename instead of static buffers.
3882 * wptKeyCacheDlg.cpp (keycache_dlg_proc): Likewise.
3883 * wptParser.cpp: Changed to new allocation instead of malloc.
3884 * wptGPGOptSkel.h: Updated from GPG 1.1.92
3885 * wptRegistry.cpp (get_reg_entry): Expand %s like registry strings.
3886
3887 2002-09-13 Timo Schulz <[email protected]>
3888
3889 * wptKeyManager.cpp (km_show_photo): Use a const buffer for the
3890 image and do NOT free it.
3891 * wptKeyUidDlg.cpp (keyuid_dlg_proc): Implement "revoke" function.
3892 (find_user_id): Use keyid to find the key. Changed all callers.
3893
3894 * Removed global gpg_version variable. Now we also support GPG 1.1.9x
3895 so we don't need to check this after the start again.
3896
3897 2002-09-12 Timo Schulz <[email protected]>
3898
3899 * wptPasswdDlg.cpp (passwd_dlg_proc): Implement the "Hide Typing" fature.
3900 * wptKeyManagerDlg.cpp (keymisc_dlg_proc): Off by one bug for secret
3901 key export.
3902 * wptKeyManager.cpp (fm_encrypt): Use the new GPG status messages to
3903 check if the encryption failed.
3904 (km_show_photo): Fixed offset calculation.
3905 Use keyid as filename and delete the tempfile after use.
3906 * wptFile.cpp (init_file_lock): Use dynamic buffer.
3907 (release_file_lock): Free this buffer.
3908 * wptFileManager.cpp (quote_filename): Removed.
3909 (quote_file): New. Use dynamic buffers.
3910 (fm_import, fm_decrypt, fm_encrypt, fm_sym_encrypt, fm_export):
3911 Use it here.
3912 * wptFileStatDlg.cpp (do_list_packets): Do not cache FD.
3913 Initalize packet at the begin and during the loop.
3914 * wptFileManager.cpp: Replaced all static memory handling with
3915 dynamic routines.
3916 * wptKeyCacheDlg.cpp (key_cache_dlg): Remove obsolete ownertrust
3917 functions.
3918 * wptKeyPropsDlg.cpp (keyprops_dlg_proc): Ditto.
3919
3920 2002-09-10 Timo Schulz <[email protected]>
3921
3922 * wptFileManager.cpp (fm_get_file_type): Disable FD cache.
3923 (fm_decrypt): Only cut off the extension if it belong to GPG.
3924 Added user ID to the box if the file was signed.
3925 Ask for the filename if the name has no valid GPG extension.
3926
3927 2002-09-09 Timo Schulz <[email protected]>
3928
3929 * wptKeyManagerDlg.cpp (keymisc_dlg_proc): Improved code for
3930 the privat key (export).
3931
3932 2002-09-08 Timo Schulz <[email protected]>
3933
3934 * wptKeygenDlg.cpp (ask_for_backup): Check if the copy process
3935 really succeeded.
3936 (mbox): Alias for msg_box with fixed title to avoid long lines.
3937 * wptKeyEditAddSubkeyDlg.cpp (keyedit_addsubkey_dlg_proc): Allow
3938 to generate keys with a length til 4096 bits.
3939 * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): Check for
3940 invalid recipients and print out the reasons.
3941 * wptKeylist.cpp (keylist_add_to_recipients): Improved error message
3942 and corrected the validity checking.
3943
3944 2002-09-07 Timo Schulz <[email protected]>
3945
3946 * wptClipVerifyDlg.cpp (clip_verify_dlg_proc):
3947 Print notation data when available.
3948 Show if the signature is expired or not.
3949
3950 * wptKeyManagerDlg.cpp (keymisc_dlg_proc): Added the show photo
3951 command to the context menu.
3952
3953 * wptKeygenDlg.cpp (keygen_dlg_proc): New default keysize is 1792.
3954 This is 256 bits more than the old size. Hopefully it's enough
3955 security to protect against the most enemies ;-).
3956
3957 2002-09-04 Timo Schulz <[email protected]>
3958
3959 * wptKeyManager.cpp (km_check_key_status): Parse new fields.
3960
3961 2002-09-03 Timo Schulz <[email protected]>
3962
3963 Removed all OpenCDK code from PTD. The code is not tested very
3964 well and it might contain some errors. Now we used a stripped down
3965 version of GnuPG code. This has two advantages. First the code is
3966 stable and second we can easier port other parts to native GPG code.
3967
3968 * wptFileManager.cpp (fm_get_file_type): Use native GPG code.
3969 * wptKeyCacheDlg.cpp (keycache_dlg_proc): Add photos from the
3970 keyring when present to the keycache.
3971 * wptKeyManager.cpp (km_show_photo): Fixes to work again with the
3972 modified code.
3973 (km_check_for_seckey): Check substrings of the value because we
3974 don't use '**' values any longer.
3975 * wptFileStat.cpp (do_list_packets): New. Adapted from the old code.
3976 (file_stat_dlg_proc): Uses the new code.
3977
3978 2002-09-02 Timo Schulz <[email protected]>
3979
3980 * wptKeyManager.cpp (km_privkey_export): Check return codes and
3981 some types has been changed.
3982 (km_file_export): Likewise.
3983
3984 2002-09-01 Timo Schulz <[email protected]>
3985
3986 * wptFirstRunDlg.cpp (get_setup_choice): New. Returns the choice
3987 of the dialog.
3988 * WinPT.cpp (WinMain): Use it here. Reworded the error message.
3989 * wptGPG.cpp (gpg_import_keyrings): New.
3990 Let the user chose the keyrings and then they are copied to the
3991 homedir. After the procedure, the key cache will be reloaded.
3992 * wptKeyManager.cpp (km_delete_keys): New delete confirmation messages.
3993 * wptSigClassDlg.cpp (sig_class_dlg_proc): New.
3994 (get_sig_class_choice): New.
3995 * wptKeySignDlg.cpp (get_printable_fpr): New. More human readable
3996 fingerprint.
3997 (keysign_dlg_proc): Added new value for the GPG callback to handle
3998 the signature class.
3999 * wptKeyUIDDlg.cpp (find_user_id): New. Find the index of the
4000 userID by calling edit-key with colons.
4001 (keyuid_dlg_proc): Use it here.
4002
4003 2002-08-31 Timo Schulz <[email protected]>
4004
4005 * wptGPG.cpp (gpg_check_homedir): Some fixes for the return codes.
4006 (check_homedir): Ask the user whether to create the directory.
4007 * wptKeysigDlg.cpp (keysig_dlg_proc): Fixed keyid. Now it works
4008 to retrieve missing keys from a HKP server.
4009 (recv_missing_keys): Likewise.
4010 * wptPassphraseCB.cpp (passphrase_callback_proc):
4011 Implemented the "Hide Typing" feature.
4012 (hide_typing): New.
4013 * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Improved error messages.
4014 * wptClipDecryptDlg.cpp (clip_decrypt_dlg): Improved MDC handling.
4015 Due to some attacks a MDC error is treated as a fatal error and a
4016 possible security risk.
4017 * wptClipImportDlg.cpp (print_import_status): Use a dialog instead
4018 of a silly message box. Furthermore the user gets more information
4019 about the import procedure.
4020 * wptKeyImportStatusDlg.cpp (import_status_dlg_proc): New.
4021 * wptFileManager.cpp (fm_import): Report invalid user ID's.
4022 (fm_verify): Try to guess the data name for detached signatures
4023 before we bother the user. When it's found, use it.
4024 * wptKeyManager.cpp (km_file_import): Ditto.
4025
4026 2002-08-28 Timo Schulz <[email protected]>
4027
4028 * wptClipboard.cpp (clip_parse_pgp_id): Support for PGP 2.6.x types.
4029 * wptFileMananger.cpp (fm_check_armor_type): Ditto.
4030
4031
4032 2002-08-26 Timo Schulz <[email protected]>
4033
4034 * wptTypes.h (free_if_alloc, CHECK_BOUND): New.
4035 * wptClipEditDlg.cpp (gpgopt_dlg_proc): Use free_if_alloc to make sure
4036 the memory is really released. Some strict checks for return values.
4037 Ident file.
4038
4039 * wptAboutDlg.cpp: Ditto. (ident)
4040 * wptGPGAboutDlg.cpp: Ditto.
4041 * wptClipDecryptDlg.cpp: Ditto.
4042 (clip_decrypt_dlg): Stricter return value checkings.
4043 Avoid one indent level.
4044
4045 * wptImportList.cpp (implist_add_key): More strict return value
4046 checking.
4047 * wptKeylist.cpp (keylist_cmp_cb): Fixed a typo.
4048 (add_key): New key status system.
4049 (keylist_get_keyflags): New.
4050 (keylist_enum_recipients): Simplified and use the new key flags.
4051
4052 * wptSiglist.cpp (siglist_add_key): Fix possible overflows.
4053 (verlist_add_sig_log): More stricter checks.
4054
4055 * wptRegistry.cpp (get_reg_winpt_prefs): Fixed possible bug.
4056
4057 2002-06-16 Timo Schulz <[email protected]>
4058
4059 Don't put the questions in the message box title bar.
4060
4061 * wptGPGPrefsDlg.cpp (gpg_prefs_dlg_proc): Only close FP if it
4062 is really opened. Thanks to Nelson.
4063
4064 * wptKeyProps.cpp (keyprops_dlg_proc): Use a more informative title
4065 for chaning the passphrase. Suggested by Ed.
4066
4067 2002-06-07 Timo Schulz <[email protected]>
4068
4069 * wptMainProc.cpp (winpt_main_proc): Support for sign & encrypt hotkeys.
4070 * wptKeyManagerDlg.cpp: Refresh keys was added in the menu.
4071 * wptListView.cpp (listview_select_all): New.
4072 * wptClipSignDlg.cpp (clip_sign_dlg_proc): Fixed the return code.
4073
4074 2002-05-31 Timo Schulz <[email protected]>
4075
4076 * wptTrayPop.cpp: Revamped some parts of the code.
4077
4078 Changed all status_box functions to show_msg. The advantage
4079 is that we only wait a fixed time and the user doesn't need
4080 to hit the OK key. We should add the time delay in the preferences.
4081
4082 * wptKeyManager.cpp (km_show_photo): New.
4083
4084 2002-05-30 Timo Schulz <[email protected]>
4085
4086 * wptFileManager.cpp (fm_verify): Corrected the handling
4087 for detached RSA signatures.
4088 (fm_add_sig_stat): Added support for short fingerprints.
4089
4090 2002-05-08 Timo Schulz <[email protected]>
4091
4092 * wptKeyserver.cpp (kserver_change_proxy): Check the values.
4093 Thanks to njek for reporting it.
4094
4095 2002-05-07 Timo Schulz <[email protected]>
4096
4097 * wptGPG.cpp (check_gpg_engine): New.
4098
4099 * wptKeyCacheDlg.cpp (keycache_dlg_proc): Add GPG 1.0.6 compatible
4100 routines.
4101
4102 * wptKeyPropsDlg.cpp (keyprops_dlg_proc): Ditto.
4103
4104 * wptKeyEditOwnertrustDlg.cpp (keyedit_owerntrust_dlg_proc): Ditto.
4105
4106 2002-05-06 Timo Schulz <[email protected]>
4107
4108 * wptClipEditDlg.cpp (clip_edit_dlg_proc): Change the wording of
4109 the buttons.
4110
4111 2002-05-05 Timo Schulz <[email protected]>
4112
4113 * Fixed problem with rev certs for imports stats.
4114
4115 * Cosmetical changes for the GPGME libraray.
4116
4117 2002-05-01 Timo Schulz <[email protected]>
4118
4119 * wptKeygenDlg.cpp (fill_keytype_box): New.
4120 (keygen_dlg_proc): Use a combo box for various key types. With GPG 1.0.7
4121 there is full RSA support.
4122
4123 Now we use the new status code by GPG (INV_RECP, NO_RECP) to figure out
4124 what the problem was when no encryption was done.
4125
4126 * wptKeysignDlg.cpp (keysign_dlg_proc): Before we sign a key, we make
4127 sure it was not already signed (ALREADY_SIGNED).
4128
4129 * wptKeyManagerDlg.cpp (keymisc_dlg_proc): Due to the new trust system,
4130 now we also support to sign ultimate trusted keys.
4131
4132 * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Try to check if the button
4133 is checked and do not check it.
4134
4135 * wptClipDecryptDlg.cpp (clip_decrypt_dlg_proc): New format for the verify
4136 box and now we also support the date of the signature.
4137
4138 Applied Rich's spelling and grammer mistakes.
4139 Fixed a lot of minor spelling mistakes and capital letters for dialogs.
4140
4141 2002-04-30 Timo Schulz <[email protected]>
4142
4143 Merge ownertrust handling into the keycache. Now GPG outputs the
4144 ownertrust in the key listing which means we can get the ownertrust
4145 value from the keycache.
4146
4147 (keymisc_dlg_proc): Add a button to rebuild the sig database cache.
4148 Please not that this is not the same as the key cache! The key cache
4149 will be updated when a new key was imported or a subkey was added/changed.
4150 The signature cache only affects the validity of the keys.
4151
4152 Removed the MyGPGME trustlist code. Now we can use the field in the key
4153 listing to determine the ownertrust (which makes things a lot of easier).
4154
4155 2002-04-29 Timo Schulz <[email protected]>
4156
4157 Adjustments for GPG 1.0.7
4158
4159 * wptKeyEditDlg.cpp (keyedit_ownertrust_dlg_proc): Support ultimate trust
4160 and ask the user if he knows what he's doing.
4161 * wptKeyManager.cpp
4162 (keylist_subclass_proc): Use double click to open the props.
4163 * wptKeyPropsDlg.cpp (keyprops_dlg_proc): Allow the user even to modify a
4164 ultimate ownertrust value.
4165 * wptKeyEditAddSubkeyDlg.cpp (keyedit_addsubkey_dlg_proc): Support for
4166 new RSA keys.
4167
4168 2002-04-28 Timo Schulz <[email protected]>
4169
4170 * wptRegistry.cpp (get_reg_winpt_prefs): New option for keylist mode.
4171 (set_reg_winpt_prefs): Ditto.
4172 * wptPreferencesDlg.cpp (prefs_dlg_proc): Support for keylist mode option.
4173 (set_keylist_mode): New.
4174
4175 Implement minimal keylist mode. Suggested by Fabian.
4176
4177 * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): Implement it here.
4178 * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Ditto.
4179 * wptKeylist.cpp (keylist_add_key): Ditto.
4180 (keylist_load): Ditto.
4181 (keylist_build): Ditto.
4182
4183 2002-04-27 Timo Schulz <[email protected]>
4184
4185 * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Support for the new dialog.
4186 * wptFileSaveDlg.cpp (file_save_dlg_proc): New.
4187 * wptClipboard.cpp (clip_parse_pgp_id): use logical OR to concat the values.
4188 * wptMainProc.cpp (clip_gpg_dlg): Use the new PGP id's.
4189 (currwnd_gpg_dlg): Ditto.
4190
4191 Now it's possible to parse cleartext signatures which contains an
4192 encrypted message inside the body.
4193
4194 * wptTextInputDlg.cpp (load_file_contents): New.
4195 (text_input_dlg_proc): Support for choosing the data file.
4196
4197 * wptFileManager.cpp (fm_verify): Support for detached signatures.
4198 (fm_parse_files): Ditto.
4199
4200
4201 2002-04-26 Timo Schulz <[email protected]>
4202
4203 * wptKeyUidDlg.cpp: Fixed a typo. Kudos to Dugan Chen.
4204 * wptKeyUidDlg.cpp: Ditto.
4205
4206 2002-04-25 Timo Schulz <[email protected]>
4207
4208 * wptImplist.cpp (implist_add_key): Catch possible segfault.
4209 * wptVerifyList.cpp (verlist_add_sig): Ditto.
4210 * wptKeyManager.cpp (km_check_for_seckey): Modified for GPG 1.0.7.
4211 * wptKeylist.cpp (find_secret_key): New.
4212 (add_key): Use it here.
4213 (keylist_add_key): And here.
4214
4215 * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Fixed a bug that prevent
4216 to fetch the key.
4217
4218 2002-04-24 Timo Schulz <[email protected]>
4219
4220 * wptKeyManagerDlg.cpp (key_misc_dlg_proc): Support to maximize windows.
4221
4222 Changed the way to modify the "Version:" string.
4223
4224 * wptKeyserver.cpp (add_node): New.
4225 (kserver_change_proxy): New.
4226 (kserver_read_config): New.
4227 (kserver_write_config): New.
4228 (kserver_cfgfile_release): New.
4229 (proxy_release): New.
4230
4231 * wptProxySettingsDlg.cpp (read_proxy): New.
4232 * wptFileStatDlg.cpp (file_stat_dlg_proc): New.
4233 * wptFileManager.cpp (fm_list): New.
4234 (fm_parse_files): Support the new list command.
4235
4236 2002-04-23 Timo Schulz <[email protected]>
4237
4238 * wptRFC2440.cpp: Removed. We now use the OpenCDK package.
4239 * wptFileManager.cpp (fm_get_file_type): Removed the old RFC2440 code.
4240 (fm_encrypt): Modified code to allow sign & encrypt.
4241 (fm_parse_file): Ditto.
4242 (fm_decrypt): Support for checking signatures.
4243 * wptFileManagerDlg.cpp (file_manager_dlg_proc): Ditto.
4244
4245 2002-04-19 Timo Schulz <[email protected]>
4246
4247 * wptImplist.cpp (implist_load): Support for the advanced PGP parser code.
4248
4249 2002-04-05 Timo Schulz <[email protected]>
4250
4251 * wptSigList.cpp (siglist_add_key): Added UTF8 support. Thanks to Scire.
4252 * wptKeyUidDlg.cpp (keyuid_dlg_proc): Ditto.
4253 * wptKeySignDlg.cpp (keysign_dlg_proc): Ditto.
4254 * wptKeyAddUidDlg.cpp (keyedit_adduid_dlg_proc): Ditto.
4255
4256 2002-03-31 Timo Schulz <[email protected]>
4257
4258 * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Ask if the user wants to
4259 select the key used for signing.
4260 * wptSeclistDlg.cpp (seclist_dlg_proc): New. Dialog for secret selecting.
4261 * wptFilePrefsDlg.cpp (file_prefs_dlg): Fixes for the combo box ;-).
4262 * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Reload the keycache after
4263 fetching keys via HKP and try to update the Gpgmekey inside.
4264 * wptVerifyList.cpp (verlist_add_sig): Check if the key context was
4265 set inside the signature. Fixes some segfaults related to the HKP key
4266 fetching during verification. Thanks to Julian. And force to use UTF8
4267 for user ID's.
4268 * wptClipSignDlg.cpp (one_key_proc): If only one secret exists,
4269 prevent that the dialog is loaded and ask for the passphrase directly.
4270
4271
4272 2002-03-29 Timo Schulz <[email protected]>
4273
4274 * wptGPG.cpp (create_groupdb): Only close the file handling if it
4275 really exists. Thanks to Mark.
4276 (gpg_check_homedir): Applied the patch. Now we're a little stricter
4277 about the homedir checks.
4278 (check_homedir): Fixed a possible memory leak.
4279 * WinPT.cpp (WinMain): Check the homedir functions to exit the program
4280 if we've found some problems.
4281 * wptErrors.cpp (winpt_strerror): New value if a directory could not
4282 created.
4283 * wptMainProc (winpt_main_proc): Use new code for the current window mode.
4284 * wptCurrWnd.cpp (get_curr_wnd): Ditto.
4285 (get_window_contents): Always set focus to the current window.
4286
4287 2002-03-22 Timo Schulz <[email protected]>
4288
4289 * wptMainProc.cpp (currwnd_gpg_dlg): If the viewer is used, doesn't
4290 set window contents for some commands.
4291 (winpt_main_proc): Use the code here.
4292 * wptKeygenDlg.cpp (keygen_dlg_proc): Allow to generate keys > 2048 bits.
4293 * wptProxySettingsDlg.cpp: (keyserver_proxy_dlg_proc): New.
4294 * wptKeyserverDlg.cpp (keyserver_dlg_proc): Use the proxy dialog here.
4295 * wptKeyserver.cpp (kserver_load_conf): Fixed malformed strings.
4296
4297 2002-03-02 Timo Schulz <[email protected]>
4298
4299 * Use capital letters in the main menus and applied Patricks spelling
4300 corrections.
4301
4302 * wptClipDecryptDlg.cpp (clip_decrypt_dlg): keyID is a string
4303 not an integer. Thanks to scrumpy.
4304 * wptWipeFile.cpp (rename_unlink): Use '\' instead of '/'.
4305 (overwrite): Some bugfixes to set the pointer to the begin of the file.
4306 * wptVerlist.cpp (verlist_build): New keyID column.
4307 (verlist_add_sig): Use it here.
4308
4309 2002-03-01 Timo Schulz <[email protected]>
4310
4311 * wptWipeFile: Replaced all low level I/O functions with W32 API
4312 functions. And support for more wiping modes. I don't know to
4313 support all, but those makes sense for me:
4314 1. Simple (2 random passes)
4315 2. DoD (as described in the standard)
4316 3. Peter Gutmanns method (from the paper)
4317
4318
4319 2002-02-28 Timo Schulz <[email protected]>
4320
4321 * wptImplist.cpp (implist_add_key): UTF8 support.
4322 Handle invalid userID's.
4323 * wptPassphraseCB.cpp (parse_gpg_description): UTF8 support.
4324 (passphrase_callback_proc): Ditto.
4325
4326
4327 2002-02-23 Timo Schulz <[email protected]>
4328
4329 * wptListview.cpp (listview_del_items): New.
4330 * wptKeyManager.cpp (km_delete_keys): Use it here.
4331 * wptKeygenDlg.cpp (keygen_dlg_proc): UTF8 support.
4332 * wptKeylist.cpp (add_key): UTF8 support.
4333
4334 2002-02-08 Timo Schulz <[email protected]>
4335
4336 * wptNLS.c: Now it's C-source because GPGME needs gettext too.
4337 (stpcpy): Makes it static.
4338 * errors.c: localize all error strings.
4339 * WinPT.cpp (get_gettext_lang): Move the code in this file because
4340 we can't use it in plain C.
4341
4342 2002-02-05 Timo Schulz <[email protected]>
4343
4344 * wptGPG.cpp (gpg_save_options): Catch the case when the options file
4345 exist but it has a length of zero.
4346 (gpg_display_error): Print out the data from the GPG stderr
4347 (when available).
4348 * w32-util.c (_gpgme_get_gpg_optfile): Check if the file exists and if
4349 not, return NULL.
4350 * wptKeyManagerDlg.cpp (keymisc_dlg_proc): Add support to export secret
4351 keys.
4352
4353 * Fixed a lot of memory allocation all over the place.
4354
4355 2002-02-05 Timo Schulz <[email protected]>
4356
4357 wptGPG.cpp (gpg_save_options): Fixed the code for the case the
4358 values don't exist in the options file. Thanks to Lutz who found this out.
4359 (get_gpg_default): First search for "default-key" then for "encrypt-to".
4360
4361 2002-02-04 Timo Schulz <[email protected]>
4362
4363 * WinPT.rc: Set LVS_SHOWSELALWAYS for all listview elements
4364 which need it. Thanks to Timo who find this out.
4365 * WinPT.cpp (WinMain): We don't quit in the case the user changed
4366 the preferences.
4367 (update_keycache): New. Handy function to update the keycache.
4368
4369 * Use quotation for the options file in any case.
4370
4371 * clipboard.c (gpgme_clipboard_verify): When the NO_PUBKEY status
4372 is set, we don' try to get the sig key.
4373
4374 * wptGPG.cpp (get_gpg_default_key): Revamped.
4375
4376 2002-01-26 Timo Schulz <[email protected]>
4377
4378 * wptKeylist.cpp (keylist_add_key): Use flags for the file manager
4379 to avoid to show all userid's. Thanks to Frank.
4380 * wptDateDlg.cpp (date_dlg_proc): New context to use different
4381 window texts and some other features.
4382 * wptKeygenDlg.cpp (keygen_dlg_proc): Use it here.
4383 * wptKeySubkeyDlg.cpp (subkey_dlg_proc): Ditto.
4384 * wptGPG.cpp (gpg_create_groupdb): Create the groupdb.gpg file if
4385 it doesn't exist.
4386 * WinPT.cpp (WinMain): Use the new code here.
4387
4388 2002-01-23 Timo Schulz <[email protected]>
4389
4390 * wptClipEditDlg.cpp (clip_edit_dlg_proc): Release the buffer for
4391 loading a file.
4392 Add new code to save file with clipboard contents.
4393
4394 2002-01-20 Timo Schulz <[email protected]>
4395
4396 * wptMainProc.cpp (winpt_main_proc): Fix the error, that the user
4397 have to click twice before the menu appears. Richard told me this.
4398
4399
4400 2002-01-18 Timo Schulz <[email protected]>
4401
4402 * wptMainProc.cpp (winpt_main_proc): NLS support for new menu style.
4403 * wptPassphraseCB.cpp (parse_gpg_description): Support when no
4404 description was given. One example is when symmetric was used.
4405
4406 2002-01-13 Timo Schulz <[email protected]>
4407
4408 * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Fixed some boolesche
4409 settings.
4410 * wptGPG.cpp (gpg_backup_options): New.
4411 (gpg_load_options): Ignore comment lines.
4412 (gpg_save_options): Rewritten.
4413
4414 2002-01-06 Timo Schulz <[email protected]>
4415
4416 * wptPreferencesDlg.cpp (prefs_dlg_proc): Support for the sign+encrypt
4417 hotkey.
4418 * wptRegistry.cpp: Ditto.
4419 * wptRegistry.h: Ditto.
4420 * wptHotkey.h: Ditto.
4421 * wptGPG.cpp (gpg_load_options): New.
4422 (gpg_save_options): New.
4423
4424 2002-01-01 Timo Schulz <[email protected]>
4425
4426 * wptFileManager.cpp (fm_verify): Support for the case there is
4427 no public key to verify the signature.
4428
4429 2001-12-30 Timo Schulz <[email protected]>
4430
4431 * wptFileManager.cpp (fm_sign): Always use callbacks for the
4432 passphrase.
4433 (fm_decrypt): Ditto.
4434 (fm_parse_files): Cache the passphrase for the session and check
4435 if the file still exists.
4436 * wptRFC2240.cpp (parse_ske_sesskey): Removed. We no longer use
4437 low level stuff here.
4438 * wptFile.cpp (get_keyid_from_file): Ditto.
4439
4440 2001-12-21 Timo Schulz <[email protected]>
4441
4442 * wptTextInputDlg.cpp (text_input_dlg_proc): New.
4443 * wptMainProc (clip_gpg_dlg): Support for deached signatures.
4444 * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Ditto.
4445
4446 2001-12-19 Timo Schulz <[email protected]>
4447
4448 * Completed work on the temporary file support for GPG.
4449 * wptRegistry.cpp (set_reg_winpt_prefs): Add mode for the
4450 plaintext viewer option. Suggested by Markus Winkler.
4451 (get_reg_winpt_prefs): Ditto.
4452 * wptPreferencesDlg.cpp (prefs_dlg_proc): Ditto.
4453 * wptMainProc.cpp (winpt_main_proc): Ditto.
4454
4455 2001-12-15 Timo Schulz <[email protected]>
4456
4457 * wptKeyManagerDlg.cpp (keymisc_dlg_proc): New menu items for
4458 copy and paste.
4459
4460 2001-12-02 Timo Schulz <[email protected]>
4461
4462 * wptGroups.c: Revamped from the base. Arggg.
4463
4464 2001-11-29 Timo Schulz <[email protected]>
4465
4466 * wptKeyManager.cpp (km_groupdb_expand_recipients): New.
4467 * wptMainProc.cpp (clip_gpg_dlg): New.
4468 Modify the whole event loop so we don't need all the same code
4469 for each command. And we use the new foreground code.
4470 * wptW32API.cpp (check_date): Fixed.
4471
4472 2001-11-27 Timo Schulz <[email protected]>
4473
4474 * wptKeyserver.cpp (base64_encode): New. Marco provided HTTP
4475 proxy authentifcation support for each command.
4476 (kserver_update_proxyuser): New. Ditto.
4477 (kserver_send_request): Ditto.
4478 (kserver_recv_request): Ditto.
4479 (kserver_search_init): Ditto.
4480
4481 2001-11-24 Timo Schulz <[email protected]>
4482
4483 * wptKeyManager.cpp (km_groups_new): New.
4484 (km_groups_release): New.
4485 (km_groups_load): Rewritten.
4486 (km_groups_add): New.
4487 (km_groups_del): New.
4488 (km_groupdb_open): New.
4489 * wptKeyManagerDlg.cpp (keymisc_dlg_proc): Added group support.
4490 * wptGroups.c (groupdb_enum_read): Store the record before increment it.
4491
4492 2001-11-23 Timo Schulz <[email protected]>
4493
4494 * wptW32API.cpp (set_active_window): New.
4495 (reset_active_window): New.
4496 (window_reminder): New. This is a delayed thread procedure to
4497 force the focus (foreground) to the dialogs for the current
4498 window mode.
4499 * wptMainProc.cpp (winpt_main_proc): Use it here.
4500 * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): Ditto.
4501 * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Ditto.
4502 * wptClipSignDlg.cpp (clip_sign_dlg_proc): Ditto.
4503 * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Ditto.
4504
4505 2001-11-22 Timo Schulz <[email protected]>
4506
4507 * wptW32API.cpp (set_foreground_wnd): New.
4508
4509 Fixed the return value of all EndDialogs.
4510
4511 * wptMainProc.cpp: Remove all code parts which did the same for the
4512 current window support. Now the code uses a dialog switch which is
4513 much smaller.
4514
4515 2001-11-18 Timo Schulz <[email protected]>
4516
4517 * wptKeyManager.cpp: New. Contains all handy functions from the
4518 wptKeyManagerDlg.cpp. This should help to cleanup the dialog code.
4519 (km_quote_uid): New.
4520 (km_check_for_seckey): New.
4521 (km_check_key_status): New.
4522 (km_clip_export): New.
4523 (km_clip_import): New.
4524 (km_file_export): New.
4525 (km_file_import): New.
4526 (km_delete_keys): New.
4527 (km_send_to_keyserver): New.
4528 (km_refersh_from_keyserver): New.
4529 (km_update_default_key_str): New.
4530 * wptKeygenDlg.cpp (ask_for_backup): New.
4531 (keygen_dlg_proc): Use new function to give the chance to the
4532 user for a complete backup.
4533
4534 2001-11-13 Timo Schulz <[email protected]>
4535
4536 * wptGPG.cpp (get_gpg_optfile): Check for the case the OptFile entry
4537 is set but to "". Then use default gpg directory.
4538 * wptKeyManagerDlg.cpp (send_to): New. Context entry for sending keys.
4539 (refresh_from_keyserver): New. Context entry for update keys.
4540 (keymisc_dlg_proc): Modify the way the popup is shown.
4541
4542 2001-11-07 Timo Schulz <[email protected]>
4543
4544 * wptGPG.cpp (set_gpg_default_key): Rewrote the part of changing
4545 the key id.
4546 * wptKeyManagerDlg.cpp (file_import): Use force trust to allow secret
4547 key imports.
4548 * wptGPGOptDlg.cpp (gpgopt_dlg_proc): If the options file exists and
4549 the user doesn't set the field, try to do this automatically.
4550
4551 2001-11-03 Timo Schulz <[email protected]>
4552
4553 (fm_remove_crit_file_attrs): First check if the file exists.
4554 Thanks to Peter.
4555
4556 2001-11-02 Timo Schulz <[email protected]>
4557
4558 * WinPT.cpp (WinMain): Add the chance to start the preferences dialog
4559 in the case a GPG error was detected.
4560 * wptKeyManagerDlg.cpp (delete_keys): Interface to delete all selected
4561 keys.
4562
4563 2001-10-30 Timo Schulz <[email protected]>
4564
4565 * wptHotkey.h: Fixed typo. Thanks to Timo.
4566 * wptGPG.cpp: (gpg_check_homedir): Fixed memory leak. By Timo.
4567 (get_gpg_default_key): Skip comment lines immediately.
4568 * wptRegisty.cpp (get_reg_winpt_prefs): Ditto.
4569 * wptKeyManagerDlg.cpp (keylist_subclass_proc): New. Procedure
4570 for subclassing.
4571
4572 Remove all unsafe WM_NOTIFY stuff because this was propably the
4573 reason for the crashes. And add as a sanity check if the control
4574 sent the message.
4575
4576 2001-10-28 Timo Schulz <[email protected]>
4577
4578 * wptKeyMiscDlg.cpp (key_misc_dlg_proc): New virtual key support
4579 for ENTER/SPACE and DELETE. Suggested by Graham.
4580 * wptKeyList.cpp (add_key): New code to figure out how trustworthy
4581 a expired/revoked secret key is.
4582 (keylist_enum_recipients): Show the key ID of the key when it's
4583 revoked.
4584 * wptFileManager.cpp (fm_decrypt): Parse all PKE packets and not
4585 only the first to figure out if a secret is available. Thanks to
4586 Graham.
4587 * wptFile.cpp (get_keyid_from_file): Ditto.
4588
4589 2001-10-27 Timo Schulz <[email protected]>
4590
4591 * wptKeylist.cpp (keylist_enum_recipients): Add a type to make
4592 the code more flexible.
4593 * wptKeyMiscDlg.cpp (file_import): New.
4594 (file_export): New.
4595 * wptKeySigDlg.cpp (recv_missing_keys): Fixed a typo.
4596
4597 Removed all OE code snippets.
4598
4599 2001-10-26 Timo Schulz <[email protected]>
4600
4601 * wptExtensions.cpp: Removed.
4602 * wptLDAPExt.cpp: Removed.
4603 * wptLDAP.cpp: New. This code now contains a direct interface to
4604 the WLDAP library so we don't need extra DLL's to handle LDAP keyservers.
4605 (wldap_init): New.
4606 (wldap_end): New.
4607 (ldap_set_verbose): New.
4608 (ldap_get_key_info): New.
4609 (ldap_recvkey): New.
4610 (init_ldap): New. Internal use only.
4611 (get_key): New. Ditto.
4612 (send_key): New. Ditto.
4613 * wptMainProc.cpp (wpt_main_proc): Init and de-init the LDAP dll.
4614
4615 2001-10-25 Timo Schulz <[email protected]>
4616
4617 * wptGPG.cpp (get_gpg_default_key): Support for the users options file.
4618 (check_gpg_path): Ditto.
4619 (get_gpg_options): Ditto.
4620 (set_gpg_default_key): Ditto.
4621 (set_gpg_options): Ditto.
4622 (gpg_check_keyring): Ditto.
4623 (set_gpg_default_keyid): Fix a typo.
4624 * wptGPGME.cpp (get_default_keyid): Rewrote most of the code.
4625
4626 2001-10-23 Timo Schulz <[email protected]>
4627
4628 * wptClipSignDlg.cpp (clip_sign_dlg_proc): Replace for with while
4629 because it's shorter.
4630 * wptFileSignDlg.cpp (file_sign_dlg_proc): Use keylist instead of
4631 the default keyid.
4632 * wptFileManager.cpp (fm_sign): Remove the default key ID code. Now
4633 we use the signer from the keylist.
4634 * wptGPGME.cpp (get_default_keyid): Revamp most of the code and fix
4635 some silly bugs.
4636 * WinPT.cpp (WinMain): if there is no valid keyring after the new
4637 preferences, start the key generation dialog.
4638
4639 2001-10-22 Timo Schulz <[email protected]>
4640
4641 Remove all MyGPGME code from the main project. Now we use the
4642 libmygpgme.dll to provide all cryptographic functions and interfaces.
4643
4644 * wptKeylist.cpp (key_array_new): New.
4645 (key_array_release): New.
4646 (key_array_search): New.
4647 * wptKeylist.cpp (keylist_add_to_recipients): Check if an untrusted key was
4648 already checked and don't bother the user if all userid's were selected.
4649 * wptPassphraseCB.cpp (passphrase_cb_init): Now void.
4650 (passphrase_cb_gpgme): Ditto.
4651 (passphrase_callback_proc): Support for a list of recipients.
4652 * wptImportList.cpp (implist_add_key): Support for secret keys.
4653
4654 2001-10-19 Timo Schulz <[email protected]>
4655
4656 * wptGPGPrefsDlg.cpp (gpg_prefs_dlg_proc): Support for various
4657 option files.
4658 * wptMainProc.cpp (wpt_main_proc): Remove the preferences menu and
4659 use a popup menu.
4660 * wptExtensions.cpp (gpgoe_load_plugin): New. Try to load the GPGOE
4661 plug-in.
4662 (gpgoe_unload_plugin): New.
4663
4664 2001-10-17 Timo Schulz <[email protected]>
4665
4666 * wptCurrWnd.cpp (get_window_contents): Only minimize the window
4667 when the clipboard contains text.
4668 * wptKeylist.cpp (keylist_add_key): Check only for invalid keys
4669 in the mainloop. The other flags are checked in the various cases.
4670 (add_key): Use the ** foo ** notation for invalid flags instead of
4671 skipping the key.
4672 * wptKeyMiscDlg.cpp (clip_export): Check for revoked keys and print
4673 out a warning.
4674 Change all error messages to one header.
4675 (check_key_status): Check if the key is valid in the sense of
4676 revocation and expire dates. If not, print out a warning.
4677 (keymisc_dlg_proc): Use the new code.
4678
4679 2001-10-16 Timo Schulz <[email protected]>
4680
4681 * wptW32API.cpp (check_date): New.
4682 (get_open_filename): New.
4683 * wptDlgs.cpp (init_dtp): New. Initialize a special common control.
4684 * wptKeygenDlg.cpp (keygen_dlg_proc): Add support for exipre dates.
4685
4686 2001-10-15 Timo Schulz <[email protected]>
4687
4688 * wptFileManager.cpp (fm_wipe): New.
4689 (fm_set_status): Add temporary wipe status and handle default values.
4690 (fm_parse_files): Use fm_wipe instead of sunlink. Delete all wiped
4691 files with a successful opeation.
4692 * wptKeygenCbDlg.cpp (keygen_cb_dlg_proc): New. Static dialog procedure.
4693 (keygen_cb_thread): New. Static dialog thread.
4694 (keygen_cb_dlg_create): New. Interface.
4695 (keygen_cb_dlg_destroy): New. Destroy the dialog.
4696 (keygen_cb): GPGME interface.
4697
4698 2001-10-13 Timo Schulz <[email protected]>
4699
4700 Set all ListviewControls to 'NULL' in all dialogs to be more crash
4701 resistent.
4702
4703 * wptFileEncryptDlg.cpp (file_encrypt_dlg_proc): Rebuild interface.
4704 * wptFileExportDlg.cpp (file_export_dlg_proc): Ditto.
4705 * wptFileImportDlg.cpp (file_import_dlg_proc): Ditto.
4706 * wptFileSignDlg.cpp (file_sign_dlg_proc): Ditto.
4707 * wptFileVerifyDlg.cpp (file_verify_dlg_proc): Ditto.
4708 * wptStringUtil.cpp: Removed.
4709 * wptFileManager.cpp: Rewrote the complete interface code for
4710 the file manager.
4711 * wptFileManagerDlg.cpp: Rewrote the whole file manager dialog.
4712
4713 2001-10-10 Timo Schulz <[email protected]>
4714
4715 * wptGPG.cpp (set_gpg_default_key): Use spaces if the entry in the
4716 file is longer then the keyid.
4717 (get_gpg_default_key): Replaced get_gpg_default_keyid. Check if the
4718 entry is an userid.
4719 * wptFileManager.cpp (fm_check_for_entry): New. Avoid to add a file
4720 more then one time.
4721 (fm_add_dropped_files): Use it here.
4722 * wptFileManagerDlg.cpp (file_manager_dlg_proc): Support for common
4723 keys.
4724
4725 2001-10-09 Timo Schulz <[email protected]>
4726
4727 * wptFileManagerDlg.cpp (file_manager_dlg_proc): Check the return
4728 code of sunlink.
4729 * wptGPG.cpp (get_keyring_from_optfile): New.
4730 Renamed gpg_errstr to gpg_strerror.
4731 (set_default_key): New.
4732 * wptKeyMiscDlg.cpp (keymisc_dlg_proc): Support for default key setting.
4733
4734 2001-10-08 Timo Schulz <[email protected]>
4735
4736 * wptKeyserver (kserver_connect): If the proxy settings are valid,
4737 use the proxy port instead of the HKP port.
4738 (kserver_recvkey): Proxy support.
4739 (kserver_search_init): Ditto.
4740
4741 2001-10-06 Timo Schulz <[email protected]>
4742
4743 * wptPassphraseCB.cpp (parse_gpg_description): Fixed a memory leak.
4744
4745 2001-10-05 Timo Schulz <[email protected]>
4746
4747 * wptKeylist.cpp: (addkey): Check if the used userID is not revoked.
4748 In the case it is, use the first userID.
4749 * wptKeySubkeyDlg.cpp (key_subkey_dlg_proc): Change the listbox.
4750 Remove the Pos column and add a status column instead.
4751 Add expire stuff for subkeys.
4752 (init_dtp): Initialize the common control.
4753 * wptClipEditDlg.cpp (clip_edit_dlg_proc): New code to load a file
4754 into the clipboard.
4755 * wptKeyPropsDlg.cpp (ot_id_to_string): New. Returns a long description
4756 of the ownertrust value.
4757 (keyprops_dlg_proc): Fixed ownertrust handling.
4758
4759 2001-10-04 Timo Schulz <[email protected]>
4760
4761 * wptPassphraseCB.cpp (parse_gpg_describtion): Free buffer.
4762 * wptKeyserver.cpp (kserver_search_init): Set buffer to NULL.
4763 Both were pointed out my Timo (not me ;-)).
4764 * wptKeylist.cpp (add_key): Fix a typo and now the code is more
4765 strict with returned attributes.
4766 * wptKeysignDlg.cpp (keysign_dlg_proc): Modify GPGME interface
4767 for local signatures.
4768
4769 2001-09-28 Timo Schulz <[email protected]>
4770
4771 * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): WM_NOTIFY to handle
4772 the double click messages.
4773 * wptClipSignDlg.cpp (clip_sign_dlg_proc): Ditto.
4774 * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Ditto.
4775 * wptFileManager.cpp (overwrite_file): Check if the file exists and
4776 then let the user decide.
4777 (fm_encrypt): Use the code here.
4778 (fm_sign): And here.
4779 (fm_sym_encrypt): And here. Now we use the passphrase dialog.
4780 (fm_decrypt): And here.
4781 * wptFile.cpp (unlink_file): Removed. We can use sunlink if we need
4782 a secure wipe.
4783
4784 Make the memory checking more strict.
4785
4786 2001-09-27 Timo Schulz <[email protected]>
4787
4788 * wptMainProc.cpp (wpt_main_proc): Fixed typo. Thanks to Andy who
4789 discovered this.
4790 * wptPasswdDlg.cpp (passwd_dlg_proc): New. Handy dialog to get the
4791 passphrase.
4792 * wptEditKeyDlg.cpp: Removed. The edit-key code is now moved to
4793 the various other dialogs to make the use more easier.
4794 * wptKeyUIDDlg.cpp: (keyuid_dlg_proc): ADDUID code, use it here.
4795 * wptSubkeyDlg.cpp: (subkey_dlg_proc): ADDKEY code. Ditto.
4796
4797
4798 2001-09-26 Timo Schulz <[email protected]>
4799
4800 * wptW32API.cpp (listbox_add_string): New. Shortcut to avoid long casts.
4801 (listbox_get_cursel): Ditto.
4802
4803
4804 2001-09-23 Timo Schulz <[email protected]>
4805
4806 * wptSubkeyDlg.cpp (key_subkey_dlg_proc): New. Lists the subkeys.
4807 The same as the userid dialog.
4808 * wptWndSwitchDlg.cpp: Removed.
4809 * wptWipeExt.cpp: Removed. Code is now included.
4810 * wptGPGME.cpp (get_default_keyid): If the keyid from the options
4811 file is in the keycache.
4812 * wptKeylist.cpp (keylist_reload): New. Reload a keylist.
4813
4814 2001-09-17 Timo Schulz <[email protected]>
4815
4816 * wptClipboard.cpp (clip_isalready_secured): Fixed two silly bugs
4817 who prevent the correct return value in the case of an clipboard error.
4818 (clip_parse_pgp_id): New. Returns the PGP message type.
4819 * wptHotkey.cpp (hotkeys_strerror): Fixed bug in the indexes.
4820 (hotkey_single_register): Return correct error value.
4821 (hotkey_single_unregister): Ditto.
4822 * wptW32API.cpp (get_thread_id): Removed.
4823 (attach_thread_input): Ditto.
4824 (detach_thread_input): Ditto.
4825 * wptCurrWnd.cpp (get_window_contents): Store main and focused window
4826 for later use.
4827 (set_window_contents): Use the new code.
4828
4829 2001-09-16 Timo Schulz <[email protected]>
4830
4831 * wptExtensions.h: New. This file is now used for the extenion
4832 declarations.
4833 * wptExtensions.new: (register_extensions): New. Enumerate and
4834 load all possible extensions.
4835 (unregister_extentions): New. Release all loaded extensions.
4836 * wptKeyserver.cpp (kserver_load_conf): Added support for different
4837 keyservers. Currently only HTTP/LDAP.
4838 * wptKeyserverDlg.cpp (keyserver_dlg_proc): Added LDAP support.
4839 (hkp_recv_key): Ditto.
4840 * wptMailPlugin.cpp (oe_set_focus): Fixed silly bug that prevents
4841 to set the focus.
4842 * (oe_check_recipient): New. Checks if the key is able to encrypt
4843 and valid in the sense of revocation.
4844
4845 2001-09-14 Timo Schulz <[email protected]>
4846
4847 * wptWAB.cpp: (wab_read): New. Interface to read all address book
4848 entries.
4849 (wab_open): New. Internal function to load the WAB.
4850 (wab_release): New. Release the WAB contexts.
4851 (wab_load): New. Load the contents of the WAB into a linked list.
4852 (addr_list_new): New. Linked address list.
4853 (addr_list_add): New.
4854 (addr_list_release): New.
4855
4856 2001-09-13 Timo Schulz <[email protected]>
4857
4858 * Revamped the whole plugin code for OE5.
4859 * wptMailPlugin.cpp (oe_plugin_new): New. Allocates new structure.
4860 (oe_plugin_releae): New.
4861 (oe_plugin_init): New. Searches for the OE main window and select
4862 all the recipients from the fields.
4863 (oe_get_msg): This code now uses the menu command id's to
4864 execute the commands.
4865 (oe_set_msg): Ditto.
4866 (oe_encrypt): Changed for the new code.
4867 * wptMainProc.cpp (wpt_main_proc): Re-activate the code.
4868 * wptHotkeys.cpp: Ditto.
4869 * Removed the hook project.
4870
4871 2001-09-12 Timo Schulz <[email protected]>
4872
4873 * wptClipDecryptDlg.cpp (clip_decrypt_dlg): Fixed a format error.
4874 Thanks to Rich who pointed this out.
4875
4876 2001-09-07 Timo Schulz <[email protected]>
4877
4878 * wptFileManagerDlg.cpp (file_manager_dlg_proc): Fix memory leaks.
4879
4880 2001-09-05 Timo Schulz <[email protected]>
4881
4882 * wptKeyMiscDlg.cpp (clip_export): New. Handy function to export keys.
4883 (clip_import): New. Handy function to import keys.
4884 * wptKeygenDlg.cpp (keygen_dlg_proc): Added a warning when the passphrase
4885 is too short.
4886
4887 2001-09-04 Timo Schulz <[email protected]>
4888
4889 * Rewrote most parts of the keymanager.
4890 * Ditto for the filemanager.
4891
4892 2001-09-01 Timo Schulz <[email protected]>
4893
4894 * wptMainProc.cpp (wpt_main_proc): Remove the im- and export operations.
4895 These code is now part of the key manager.
4896 * wptKeyPropsDlg.cpp (key_props_dlg): Removed the get_key_xxx functions.
4897 * wptKeylist.cpp (get_key_algo): New.
4898 (get_key_created): New.
4899 (get_key_type): New.
4900 (get_key_size): New.
4901 (get_key_fpr): New.
4902 * wptClipExportDlg.cpp (clip_export_dlg_proc): Removed. This is now
4903 a part of the keymanager.
4904
4905 2001-08-31 Timo Schulz <[email protected]>
4906
4907 * wptFileManager.cpp (fm_add_opened_files): New. Use a standard
4908 file open dialog instead of drag & drop.
4909 * wptHotkeys.cpp (hotkey_strerror): More detailed information which
4910 hotkey couldn't set up.
4911 (hotkey_register_single): Ditto.
4912
4913 2001-08-30 Timo Schulz <[email protected]>
4914
4915 * wptFilemanager.cpp (fm_encrypt): Add minor changes.
4916 (fm_decrypt): Ditto.
4917 (fm_sign): Ditto.
4918 (fm_verify): Make the code more modular.
4919 (fm_add_sig_stat): New. For new fm_verify code.
4920
4921 2001-08-28 Timo Schulz <[email protected]>
4922
4923 * wptKeylist.cpp (strlist_add_recipients): Fixed the listview handling.
4924 * wptKeyserver.cpp (kserver_load_conf): Proxy support
4925 (kserver_connect): Ditto.
4926
4927 2001-08-26 Timo Schulz <[email protected]>
4928
4929 * wptFileManager.cpp (fm_entry_new): New.
4930 (fm_entry_release): New.
4931 (fm_state_new): New.
4932 (fm_state_release). New.
4933 (fm_get_current_file): New.
4934 * wptKeylist.cpp (strlist_add_recipients): New.
4935
4936 2001-08-25 Timo Schulz <[email protected]>
4937
4938 * wptStringUtil.cpp (strlist_new): New. Linked list to hold strings.
4939 (strlist_release): New. Release the linked list.
4940 (strlist_add): New.
4941
4942 2001-08-21 Timo Schulz <[email protected]>
4943
4944 * wptGPG.cpp (get_gpg_default_keyid): Modify the code and now it
4945 also supports "encrypt-to" entries as default keys.
4946 * wptWipeExt.cpp (wipe_init_ext): New. Load the DLL to provide
4947 secure wiping.
4948 (wipe_deinit_ext): New. Unload the DLL and free all pointer.
4949 (wipe_loaded_ext): New. Checks wether the DLL was loaded.
4950 * wptW32API.cpp (set_menu_state): New.
4951
4952 2001-08-20 Timo Schulz <[email protected]>
4953
4954 * wptGPG.cpp (create_gpg_options): Fixed nul byte bug. Thanks to Thomas.
4955 * wptPreferencesDlg.cpp (prefs_dlg_proc): Fixed the code to disable
4956 the hotkeys. Automatically enable or disable the hotkey field depend
4957 on the switch.
4958
4959 2001-08-17 Timo Schulz <[email protected]>
4960
4961 * wptClipSignDlg.cpp (clip_sign_dlg_proc): Choose key if there is only
4962 one by default.
4963 * wptKeyList.cpp (keylist_add_to_recipients): Ditto.
4964 * wptGPG.cpp (gpg_check_homedir): Creates the GPGME specific gpgProgram
4965 entry in the registry in the case it's missing (whenever it's possible!).
4966 (check_gpg_path): Rewrite parts of the code.
4967
4968 2001-08-11 Timo Schulz <[email protected]>
4969
4970 * wptKeyPropsDlg.cpp (keyprops_dlg_proc): Beautify the dialog and
4971 separate the fingerprint from the othr information.
4972 * wptGPG.cpp (check_opt_keyring): New. Do a sanity check if the
4973 file, specified in the options line, does exist.
4974
4975 2001-08-08 Timo Schulz <[email protected]>
4976
4977 * wptGPG.cpp (check_gpg_path): Sanity check for size of the options file.
4978 Support for more configurations.
4979 * wptFileSignDlg.cpp (file_sign_dlg_proc): Fixed error in signature mode.
4980 Add all strings to the translation suite.
4981 * Updated all NLS dialog strings.
4982 * wptRFC2440.cpp (get_pkttype): Fixed error to check the CTB.
4983 * wptFileManager.cpp (fm_decrypt): Support to decrypt armored file,
4984 with a dynamic callback for the passphrase.
4985
4986 2001-08-06 Timo Schulz <[email protected]>
4987
4988 * wptFilemanager.cpp (fm_sign): Set the keyid length to 16.
4989
4990 2001-08-05 Timo Schulz <[email protected]>
4991
4992 * wptKeylist.cpp (keylist_add_key): Change the schematics to support
4993 all keyids.
4994 * wptSigList.cpp (siglist_build): New. Interface code to load the
4995 signature list.
4996 * wptKeysigDlg.cpp (keysig_dlg_proc): Uses siglist_build.
4997
4998 2001-08-03 Timo Schulz <[email protected]>
4999
5000 * wptMainProc.cpp (wpt_main_proc): The GPG menu was removed, now
5001 we support this code in the key manager.
5002 * wptKeyMisc.cpp (key_misc_dlg_proc): Supports new GPG commands.
5003 * wptKeyserver.cpp (kserver_index_request), (kserver_recv_request):
5004 Removed. The code moved into the main functions.
5005 (kserver_send), (kserver_recv): Ditto.
5006 (sock_write): Improved code.
5007 (sock_read): Ditto and some additional timeout.
5008 (sock_select): New. Figure out the socket state.
5009 (kserver_search_init): New. Make connection to the server.
5010 * wptHKPSearchDlg.cpp (hkp_search_dlg_proc): Now it uses the new
5011 keyserver code.
5012 * wptFile.cpp (get_keyid_from_file): Add support for the PGP marker
5013 packet. Thanks to Alan.
5014 (check_for_symenc_data): Ditto.
5015 * wptFileManager.cpp (fm_get_file_type): Ditto.
5016 (fm_decrypt): Move the keycache in the if loop and fix the keycache
5017 type.
5018
5019 2001-08-02 Timo Schulz <[email protected]>
5020
5021 * wptGPG.cpp (check_gpg_path): Check the size of both keyrings too.
5022 Useful in the case the file was generated but it's empty.
5023 * wptKeyEditDlg.cpp (key_edit_dlg_proc): Fixed some typos.
5024
5025
5026 2001-08-01 Timo Schulz <[email protected]>
5027
5028 * wptKeyserver.cpp (kserver_urlencode): Create a HTTP compatible
5029 request for uploading a key.
5030 (kserver_send_request): Use the urlencode to send the key.
5031 (sock_read): New. Improved read function to replace recv.
5032 (sock_write): New. Improved write function to replace send.
5033 * wptFileManager.cpp (fm_get_file_type): If the data is armored,
5034 call fm_check_armor_type().
5035 (fm_check_armor_type): New. Figure out the armor type of the data.
5036 * wptKeyMisc.cpp (key_misc_dlg_proc): Use a menu instead of the
5037 buttons. Optimized the code.
5038
5039 2001-07-30 Timo Schulz <[email protected]>
5040
5041 * wptClipSignDlg.cpp (clip_sign_dlg_proc): Added the interface code
5042 for the agent.
5043 * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Ditto.
5044
5045 2001-07-29 Timo Schulz <[email protected]>
5046
5047 * wptKeyRevokeDlg.cpp (key_revoke_dlg_proc): New. Dialog for creating
5048 a key revocation certificate. Add a hint to show how sentensive this
5049 data is.
5050 * wptKeyMiscDlg.cpp (keymisc_dlg_proc): Added the code to handle the
5051 revocation.
5052 * wptAgent.cpp: Source for the server interface removed.
5053 (agent_is_avail): New. Checks if the agent is available.
5054 * wptClipDecryptDlg.cpp (clip_decrypt_dlg): Added the interface code
5055 for the agent.
5056
5057 2001-07-26 Timo Schulz <[email protected]>
5058
5059 * wptGPG.cpp (check_gpg_keyring): New. Check if a gpg keyring
5060 exists. Useful if the keyring was moved during some commands.
5061 * wptMainProc.cpp (wpt_main_proc): Use the new code. Thanks to
5062 Rich to discover this.
5063
5064 2001-07-25 Timo Schulz <[email protected]>
5065
5066 * WinPT.cpp (WinMain): Add a sanity check for the keycache to detect
5067 serious GPG errors.
5068 * wptFileManager.cpp (fm_sym_encrypt): New. Symmetric encryption.
5069 Suggested by Graham.
5070 (fm_decrypt): Change code to support symmetric decryption.
5071 (fm_get_file_type): Fixed some typos.
5072
5073 2001-07-24 Timo Schulz <[email protected]>
5074
5075 * wptKeyMiscDlg.cpp (keymisc_dlg_proc): Get new cache context after
5076 reloading the keycache. Fixed the memory leaks. Thanks to Andreas.
5077 * wptKeyEditDlg.cpp (keyedit_dlg_proc): Better GPGME callback to inform
5078 the user about errors.
5079 * wptKeyTrustPathDlg.cpp (copy_trust_item): New. Copy the GPGME structure
5080 in our own context.
5081 (treeview_insert_item): New. Handy function to insert an entry.
5082 (treeview_create_child_item): New. Insert a trustlist node.
5083 (treeview_add_trustpath): New. Add recursively the whole trust path
5084 int the tree view.
5085 * wptKeysigDlg.cpp (check_for_missing_keys): New. Checks if the
5086 signature list contains entries with a NOKEY status.
5087 (recv_missing_keys): New. Receive all keys with a NOKEY as the signature
5088 status.
5089 * wptImportList.cpp (implist_load): New. Initialize the listview item
5090 with an import overview.
5091 * wptClipImportDlg.cpp (clip_import_dlg_proc): Use implist_load instead
5092 of the code.
5093 (print_import_status): Summarize the results. We need this because file
5094 import needs the same function.
5095 * wptFileImportDlg.cpp (file_import_dlg_proc): New. Interface for the
5096 file manager.
5097 * wptFileManagerDlg.cpp (file_manager_dlg_proc): New code for the key
5098 import from file.
5099 * wptFileManager.cpp (fm_import): New. Ditto.
5100 * wptKeyserver.cpp (kserver_connect): Take care for some return values
5101 and set the socket to non blocking mode.
5102 Moved the Winsock2 init code to wptMainProc.cpp
5103 * wptMainProc.cpp (wpt_main_proc): Wsock2 code.
5104 * wptHKPSearchDlg.cpp (hkpsearch_dlg_prog): Remove Wsock2 init code.
5105
5106 2001-07-22 Timo Schulz <[email protected]>
5107
5108 * wptKeyPrefsDlg.cpp (keyprefs_dlg_proc): New.
5109 (get_key_created): New. Transform ulong timestamp to ascii.
5110 (get_key_algo): New. Returns a formatted algorithm (depend on subkeys).
5111 (get_key_size): New. Returns a formatted size depend (depend on subkeys).
5112 * wptSigList.cpp (siglist_add_key): Fix the timestamp.
5113 * wptKeyMiscDlg.cpp (keymisc_dlg_proc): Removed "list sigs" and replace
5114 this with list trust path.
5115 * wptKeySigDlg.cpp (keysig_dlg_proc): Remove the set_check_mode function
5116 because we always check the signatures.
5117 * wptKeyTrustPathDlg.cpp (keytrust_dlg_proc): New.
5118
5119 2001-07-21 Timo Schulz <[email protected]>
5120
5121 * wptFileEncryptDlg.cpp (file_encrypt_dlg_proc): Set cancel mode in
5122 the case of IDCANCEL.
5123 * wptFileSignDlg.cpp (file_sign_dlg_proc): Ditto.
5124 * wptKeyEditDlg.cpp (keyedit_dlg_proc): Check if the key is a key pair
5125 pair and only if activate the passphrase dlg items.
5126 Do sanity checks for all buttons that require key pairs.
5127 * wptKeyMiscDlg.cpp (keymisc_dlg_proc): Support the new code.
5128
5129 2001-07-20 Timo Schulz <[email protected]>
5130
5131 * wptKeyserver.cpp: (kserver_send_request): Correct the octect length
5132 of the request.
5133 (check_hkp_response): If an error ocurred, copy the error message into
5134 the static buffer.
5135 (kserver_strerror): Interface for the static error buffer.
5136 * wptKeyserverDlg.cpp (hkp_err_box): Generates a HKP specific message
5137 box.
5138 (hkp_send_key): Add more verbose messages at the end.
5139 (hkp_recv_key): Ditto.
5140 (check_pattern): Rewrote the entire code to be more bug proof.
5141 * wptKeylist.cpp (keylist_add_to_recipients): Add a flag to indicate
5142 that the recipient list contains untrusted entries.
5143 * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): Use the new flag to
5144 force GPG to add the need options.
5145 * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Ditto.
5146
5147 2001-07-19 Timo Schulz <[email protected]>
5148
5149 * wptClipDecryptDlg.cpp (clip_decrypt_dlg_proc): Support for more
5150 detailed error messages in the case for a missing key or an included
5151 signature.
5152
5153 2001-07-17 Timo Schulz <[email protected]>
5154
5155 * wptKeylist.cpp (keylist_build_small): Support for a minimal keybox
5156 and increment the 'cols' variable inside the structure for further use.
5157 (add_key): Watch for the 'cols' variable to figure out how much columns
5158 are used.
5159 * wptListView.cpp (listview_set_ext_style): Set an extended style for
5160 the given listview.
5161 * wptKeyserverDlg.cpp (keyserver_dlg_proc): Use WM_NOTIFY to save the
5162 selected server.
5163 * wptClipSignDlg.cpp (clip_sign_dlg_proc): Ditto.
5164 * wptKeyserver.cpp (kserver_connect): IP address support. This is faster
5165 and no DNS lookup is needed.
5166
5167 2001-07-14 Timo Schulz <[email protected]>
5168
5169 * wptKeylist.cpp (keylist_add_key): Check for secret keys before adding
5170 it to the signing keylist.
5171 * wptClipSignDlg.cpp (clip_sign_dlg_proc): Add newline if the passphrase
5172 is empty.
5173 * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Ditto.
5174
5175
5176 2001-07-13 Timo Schulz <[email protected]>
5177
5178 * wptKeyserver.cpp (kserver_send_request): Add the "keytext" string to
5179 the request. Arggg!
5180 (check_hkp_response): Add flag to differ between 'send' and 'recv' mode.
5181
5182
5183 2001-07-12 Timo Schulz <[email protected]>
5184
5185 * wptClipDecryptDlg.cpp (clip_decrypt_dlg): If the dialog was canceled,
5186 just quit without any messages. Suggested by Rich.
5187
5188
5189 2001-07-11 Timo Schulz <[email protected]>
5190
5191 * wptKeyserver.cpp (wsock_strerror): If it's an unknown error, add
5192 the integer.
5193 (keyserver_create_conf): Create a config file instead of the error.
5194 * wptGPG.cpp (create_gpg_options): If the file doesn't exist create
5195 a default file. This prevents confusing error messages.
5196 (get_gpg_options): Use new code.
5197 * wptErrors.cpp (winpt_debug_msg): Improved debug message that tells
5198 the user how to find the files.
5199
5200 2001-07-05 Timo Schulz <[email protected]>
5201
5202 * wptHotkey.cpp (mod_hotkeys): Fix a small typo.
5203
5204 2001-07-04 Timo Schulz <[email protected]>
5205
5206 * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Auto retrieve key
5207 if the user agree.
5208 * wptKeylist.cpp (keyload_load): Use the mode from the param, not
5209 the hardcoded.
5210 * wptGPGOptDlg.cpp (gpgopt_dlg_proc): Load options file on startup.
5211 Rename 'load' to 'reload' to make sense with the new code.
5212 * wptHotkeys.cpp (mod_hotkeys): Rewrite the entire code for the
5213 registry stuff.
5214 * wptRegistry.cpp (set_reg_winpt_prefs): Ditto.
5215 (get_reg_winpt_prefs): Ditto.
5216 (regist_inst_winpt): Remove the old code.
5217 (register_single_filetype): Replacement for the old code.
5218
5219 2001-07-01 Timo Schulz <[email protected]>
5220
5221 * wptFileManager.cpp (fm_verify): New.
5222 (fm_decrypt): New.
5223 * wptFileEncryptDlg.cpp (file_encrypt_dlg_proc): New.
5224
5225
5226 2001-06-30 Timo Schulz <[email protected]>
5227
5228 * wptFilemanagerDlg.cpp (file_manager_dlg_proc): Uses the new passphrase
5229 code.
5230 * wptClipSignDlg.cpp (clip_sign_dlg_proc): Ditto.
5231 * wptClipSignEncDlg.cpp (clip_sign_dlg_proc): Ditto.
5232 * wptFileManager.cpp: New. (fm_build): New. Initialize the filemanager.
5233 (fm_delete): New.
5234 (fm_encrypt): New.
5235 (fm_get_current_pos): New.
5236 (fm_get_file_type): New.
5237 (fm_add_dropped_files): New.
5238
5239 2001-06-29 Timo Schulz <[email protected]>
5240
5241 * wptClipEditDlg.cpp (clip_edit_dlg_proc): Fix a small bug that prevent
5242 to send data to the clipboard.
5243 * wptMainProc.cpp (wpt_main_proc): Change the SetForegroundWindow to
5244 destroy the window immediately.
5245 * wptKeyserver.cpp (kserver_getip): Removed.
5246 (kserver_get_langname): Removed.
5247 (kserver_load_conf): New. Load the keyserver.conf file and set the
5248 included keyserver addresses into the global context.
5249 * WinPT.cpp (WinMain): Add the kserver_load_conf to intialize the
5250 keyserver context.
5251 * wptImplist.cpp (get_key_date): New. Transform integer timestamp
5252 to ISO date.
5253 (implist_add_key): Now it uses the context instead of all single
5254 variables.
5255
5256 2001-06-28 Timo Schulz <[email protected]>
5257
5258 * wptRFC2440.cpp (get_pkttype): Renamed from get_pkt_type and all new
5259 flag variables to support RFC1991.
5260 (get_rfc2440_pktlen): Renamed from get_pkt_len to support RFC1991.
5261 (get_rfc1991_pktlen): Ditto.
5262
5263 2001-06-27 Timo Schulz <[email protected]>
5264
5265 * wptRFC2440.cpp (get_pkt_type): New. Extract the OpenPGP packet type.
5266 (get_pkt_len): New. Extract the OpenPGP packet length.
5267 (parse_pke_sesskey): Read a public key encrypted session key
5268 but without data.
5269 * wptFilemanagerDlg.cpp (quote_filename): Do some quotings if the
5270 filename contains spaces. Just to make GPG happy.
5271 (file_manager_dlg_proc): Check if the file exist after encryption.
5272 * wptFile.cpp (get_keyid_from_file): Checks the file for an valid
5273 packet and then extract the keyid.
5274
5275 2001-06-25 Timo Schulz <[email protected]>
5276
5277 * wptKeylist.cpp (keylist_load): New. Initialize a keylist item with
5278 the contents from the given cache context.
5279 (keylist_add_to_recipients): New. Add the selected keys to the
5280 recipient set.
5281 * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): Use the new keylist
5282 function to load the listview.
5283 * wptClipExportDlg.cpp (clip_export_dlg_proc): Ditto.
5284 * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Ditto.
5285 * wptClipDecryptDlg.cpp (parse_gpg_describtion): Beautify the userid
5286 and the keyid hint.
5287
5288 2001-06-24 Timo Schulz <[email protected]>
5289
5290 * wptGPG.cpp (get_gpg_path): Add null termination to the string.
5291 Thanks to Jonathan who pointed this out.
5292 (get_gpg_prog): Ditto.
5293 (gpg_check_file_ext): Check the file extension for the given GPG
5294 type.
5295 (get_gpg_default_keyid): Return null if there isn't an entry in the
5296 options file.
5297 * wptKeylist.cpp (add_key): Fixed the wrong return codes of listview_xxx
5298 style functions.
5299 * wptImpList.cpp (implist_add_key): Ditto.
5300 * wptSigList.cpp (siglist_add_key): Ditto.
5301 * wptVerifyList.cpp (verlist_add_key): Ditto.
5302
5303 2001-06-23 Timo Schulz <[email protected]>
5304
5305 * wptGPG.cpp (get_gpg_default_keyid): Determine the keyid with the
5306 options file.
5307
5308 2001-06-22 Timo Schulz <[email protected]>
5309
5310 * wptHKPSearchDlg.cpp (hkpsearch_dlg_proc): New. Dialog to perform
5311 keyserver seraching. As an additional feature it's also posible to
5312 import the keys directly.
5313
5314 2001-06-18 Timo Schulz <[email protected]>
5315
5316 * wptKeyserver.cpp (check_hkp_response): More detailed error check
5317 of the http response.
5318 (kserver_send_request): Debug mode now uses logfile.
5319 (kserver_recv_request): Ditto.
5320 (kserver_index_request): New. Create a request for a key index.
5321 (kserver_send): Now uses check_hkp_response.
5322 (kserver_recv): Ditto.
5323 (kserver_search): New. Start the key index loop.
5324 * wptKeyserverDlg.cpp (recv_key): Check if the key was really
5325 imported and received.
5326
5327 2001-06-17 Timo Schulz <[email protected]>
5328
5329 * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Force to use the
5330 default key for signing.
5331
5332 2001-06-16 Timo Schulz <[email protected]>
5333
5334 * wptKeyEditDlg.cpp (keyedit_dlg_proc): Added missing return.
5335 Corrected return values.
5336 * wptErrors.cpp (winpt_strerror): Removed all unused error strings.
5337 * wptGPG.cpp (get_gpg_path): Change to default path and prevent
5338 buffer overflows.
5339 (get_gpg_prog): Ditto.
5340
5341
5342 2001-06-15 Timo Schulz <[email protected]>
5343
5344 * wptKeylist.cpp (keylist_add_key): Change encrypt param to mode.
5345 Differ between the new keylist styles.
5346 * wptGPGME.cpp (keycache_xxx): Move the caching interface to this
5347 file. For an easier handling between dialogs and code.
5348 (keycache_rewind): New. Rewind a global keycache context.
5349 (keycache_next_key): New. Retrieve the next key from the keycache.
5350 (get_default_key): New. Return the default key, this is the secret
5351 key with the index 0.
5352 * wptClipSignDlg.cpp (clip_sign_dlg_proc): Modify the default key
5353 handling. Now the signer is set in any case. Prevent hanging GPG
5354 processes.
5355 * wptSecmem.cpp (vm_safe_init): New. Initialize the safe memory.
5356 (vm_safe_init_noswap): New. Initialize safe memory with tail data.
5357 See source for more information.
5358 (vm_safe_free): New. Free all used pointer and burn all buffers.
5359 (vm_safe_get): New. Get the begin of the alloced buffer.
5360 (vm_safe_set_swapfile): New. Set global swapfile name.
5361 (vm_safe_create_swapfile): New. Creats a swapfile and set its
5362 contents to zero.
5363
5364 2001-06-12 Timo Schulz <[email protected]>
5365
5366 * wptPreferencesDlg.cpp (check_hotkey): Check if the hotkey key is
5367 a big letter, otherwise convert.
5368 (preferences_dlg_proc): Check hotkeys.
5369 * wptKeylist.cpp (add_keys): Static functions to add a single key.
5370 (keylist_add_key): Now it adds all subkeys to the dialog.
5371 (keylist_alloc): Remove because it's not needed any longer.
5372 * wptImportList.cpp (implist_alloc): Ditto.
5373 * wptSigList.cpp (siglist_alloc): Ditto.
5374 * wptVerifyList.cpp (verlist_alloc): Ditto.
5375
5376 2001-06-10 Timo Schulz <[email protected]>
5377
5378 * wptHotkey.cpp (enable_hotkey): New. Set enable flag for a single
5379 hotkey.
5380 (mod_hotkeys): Take care of the enable flags.
5381 (register_hotkeys): Ditto.
5382 (unregister_hotkeys): Ditto.
5383 * WinPT.cpp (WinMain): If the registry entry of WinPT doesn't exist,
5384 don't try to modify hotkeys.
5385 * WptMainProc.cpp (wpt_main_proc): All message boxes are forced to
5386 the foreground.
5387
5388 2001-06-08 Timo Schulz <[email protected]>
5389
5390 * wptHotkey.cpp (mod_hotkeys): Change code to support the new
5391 registry style.
5392 * wptRegistry.cpp (get_reg_winpt_prefs): Support to disable
5393 single hotkeys. Suggested by Jonathan.
5394 * wptPreferencesDlg.cpp (preferences_dlg_proc): Support to disable
5395 single hotkeys.
5396 * wptKeyserver.cpp (kserver_connect): Reset winsock error var.
5397 (keyserver_recv): Ditto.
5398 (keyserver_send): Ditto.
5399 (wsock_strerror): Returns a description of the winsock problem.
5400 * wptClipboard.cpp (clip_get_pgp_type): Check if the returned buffer
5401 is valid.
5402
5403 2001-06-07 Timo Schulz <[email protected]>
5404
5405 * wptOwnertrustDlg.cpp (ownertrust_dlg_proc): Set to foreground,
5406 add windows title.
5407
5408 2001-06-05 Timo Schulz <[email protected]>
5409
5410 * wptAboutGPGDlg.cpp (about_gpg_dlg_proc): Check if the returned
5411 buffer is valid. Remove the fixme, because it's possible that there
5412 were new cipher modules loaded.
5413 * wptClipDecryptDlg.cpp (passphrase_callback_proc): Check if the
5414 context is valid.
5415 * wptClipEditDlg.cpp (clip_edit_dlg_proc): Check if the context is valid.
5416 * wptW32API.cpp (status_box): New. Message box that is always forced
5417 to the foreground.
5418
5419 2001-06-04 Timo Schulz <[email protected]>
5420
5421 * wptClipImportDlg.cpp (clip_import_dlg_proc): Added the code for
5422 the improved import status.
5423
5424
5425 2001-06-01 Timo Schulz <[email protected]>
5426
5427 * wptKeyEditDlg.cpp (keyedit_dlg_proc): IDC_KEYEDIT_OWNERTRUST:
5428 Release context in the case of an error.
5429 * wptMainProc.cpp (wpt_main_proc): Fix typo.
5430 * wptGPG.cpp: (init_gpg_table): Remove the case code. Now we use
5431 a static gpg object array that contains all filenames.
5432
5433
5434 2001-05-27 Timo Schulz <[email protected]>
5435
5436 * wptRegistry.cpp (set_reg_winpt_prefs): Add word wrapping.
5437 (get_reg_winpt_prefs): Ditto.
5438 * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Set focus after the
5439 gpg process finished.
5440 * wptSigList.cpp (siglist_add_key): Parse the numeric timestamp to
5441 a humand readable date.
5442
5443
5444 2001-05-25 Timo Schulz <[email protected]>
5445
5446 * wptKeyUidDlg.cpp (keyuid_dlg_proc): Add button to delete a choosen
5447 user id. End the dialog if there was an error during the Gpgme operations.
5448 * wptClipboard.cpp (clip_istext_avail): First check if the pointer is
5449 valid and then look at the length. Avoid crashes for some texts.
5450
5451 2001-05-21 Timo Schulz <[email protected]>
5452
5453 * wptKeyMiscDlg.cpp (keymisc_dlg_proc): Add new button for userid
5454 management.
5455 * wptKeyUidDlg.cpp (keyuid_dlg_proc): Finished code to show all userids
5456 from a special key.
5457
5458 2001-05-20 Timo Schulz <[email protected]>
5459
5460 * wptGPG.cpp (check_gpg_optfile): Count each of the keyring entries
5461 to figure out if both parts are available.
5462
5463 2001-05-19 Timo Schulz <[email protected]>
5464
5465 * wptPreferencesDlg.cpp (preferences_dlg_proc): If the disable hotkey
5466 flag is set, also disable all input items.
5467 (disable_dlg_item): New. Disable dialog items (windows).
5468 * wptMainProc.cpp (wpt_main_proc): Only set hotkeys if the no_hotkeys
5469 flag isn't set.
5470 * wptKeyserverDlg.cpp (send_key): Forget to set the armor flag, as
5471 a result the code only sended parts of the key.
5472 * wptConfig.cpp: Removed. Not used any longer.
5473
5474 2001-05-18 Timo Schulz <[email protected]>
5475
5476 * wptKeyEditDlg.cpp (keyedit_dlg_proc): Check the state of the various
5477 edit key commands. In the case the dialog was canceled, return without
5478 modifying anything.
5479 * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Check the state of the
5480 signature. If it doesn't contain a valid key, do nothing.
5481 * wptMainProc: (wpt_main_proc): If the hotkey setup doesn't work, don't
5482 quit the program. In some cases the hotkeys are possible locked.
5483 * WinPT.cpp (WinMain): If there is an error with the gpg program/path,
5484 give the user the chance to start the GPG preference dialog.
5485 * wptPreferencesDlg.cpp (preferences_dlg_proc): Added the CWS hotkey
5486 support. Flag to disable all hotkeys. Reload new hotkeys (in the case
5487 they changed). Load the registry entry on startup.
5488 * wptHotkey.cpp (mod_hotkeys): Overwrite the default hotkeys with the
5489 stored registry entries.
5490
5491 2001-05-13 Timo Schulz <[email protected]>
5492
5493 * wptRegistry.cpp (set_reg_key): Open a subkey, if it doesn't exist
5494 the function create it.
5495 (set_reg_winpt_prefs): Use the new function to set the subkey values.
5496 All functions now return WPTERR_REGISTRY instead of 1.
5497 Add some error handling to prevent errors in the registry.
5498 * wptPreferencesDlg.cpp (preferences_dlg): Add the code for the Clipboard
5499 hotkeys and the caching time.
5500
5501
5502 2001-05-12 Timo Schulz <[email protected]>
5503
5504 * wptMainProc.cpp (wpt_main_proc): Start the agent before the decryption
5505 call.
5506
5507 2001-05-11 Timo Schulz <[email protected]>
5508
5509 * wptMainProc (wpt_main_proc): Change all related menu entries from
5510 Encrypt & sign to Sign & Encrypt. Added the command to the current
5511 window menu and the handling of the window messages.
5512 * wptSignEncDlg.cpp (clip_signenc_dlg_proc): Changed the window text.
5513 * wptRegistry.cpp (set_reg_winpt_prefs): New. Stores all WinPT
5514 preferences in the registry.
5515 (get_reg_winpt_prefs): Read all preferences from the registry into
5516 the options context.
5517 * WinPT.cpp (WinMain): Read in the registry preferences at the begin
5518 and store it.
5519 * wptAgent.cpp (agent_init): Check if the environment variable
5520 GPG_AGENT_INFO is set, otherwise set it.
5521 (agent_is_running): Check wether the agent is running.
5522 (agent_start): Automated function that read all needed information
5523 from global variables.
5524
5525 2001-05-10 Timo Schulz <[email protected]>
5526
5527 * wptFindWnd.cpp (find_window_hwnd): New. Function to retrieve
5528 the handle of the specified window.
5529 * wptAgent.cpp (agent_timer_proc): Changed the agent interface
5530 to window messages instead of socket connections.
5531 * wptMainProc.cpp (wpt_main_proc): Added the new preference dialog
5532 and menu entry.
5533 * wptPreferencesDlg.cpp: New.
5534
5535 2001-05-09 Timo Schulz <[email protected]>
5536
5537 * wptAgent.cpp (gpga_writen): Write 'n' bytes into a socket.
5538 (gpga_readn): Read 'n' bytes from a socket.
5539 (gpga_open): Open the interface to the GPG-Agent.
5540 (gpga_close): Close the GPG-Agent socket.
5541 (gpga_clear_passphrase): Clear a passphrase from the GPG-Agent.
5542 (agent_add_fpr): Add a fingerprint to the cache. If WinPT quits,
5543 this keys will be remove from the GPG-Agent cache.
5544 (agent_delete_fpr): Remove a fingerprint from the cache.
5545 (agent_init): Clear the cache.
5546 (agent_timer_proc): Remove all stored passphrases which were
5547 requested through the chache.
5548
5549 2001-05-08 Timo Schulz <[email protected]>
5550
5551 * wptKeyserver.cpp (wsock_init): Replace the kserver init
5552 code which initialized the Wsock2 interface.
5553 (wsock_end): Ditto.
5554 * wptAgent.cpp: Remove the passphrase caching code and add
5555 the GPG agent code.
5556
5557 2001-05-05 Timo Schulz <[email protected]>
5558
5559 * wptCurrWnd.cpp (get_curr_wnd): Alternative code to retrieve
5560 the current window handle. This code doesn't use the hook DLL.
5561 Thanks to Oliver Nittka for his patch.
5562 * wptErrors.cpp (winpt_strerror): Fixed a small typo.
5563 * wptGPG.cpp (check_last_gpg_access): Remove debug code.
5564 * wptKeyMiscDlg.cpp (keymisc_dlg_proc): Change the keycache reloading
5565 scheme to prevent reloading the cache twice.
5566
5567 2001-05-04 Timo Schulz <[email protected]>
5568
5569 * wptKeyTrustDlg.cpp: Renamed to wptKeyEditOwnertrustDlg.cpp.
5570 * wptKeyEditOwnertrustDlg.cpp (keyedit_ownertrust_dlg):
5571 Move all the GPGME specific code to the main dialog. Now only
5572 the context values are set.
5573 * wptKeyEditDlg.cpp (keyedit_dlg_proc): Include the changed ownertrust
5574 code.
5575
5576 2001-05-02 Timo Schulz <[email protected]>
5577
5578 * wptKeyEditAddSubkeyDlg.cpp: New. Dialog to create additional
5579 subkeys for the mainkeys.
5580 * wptKeyEditAddUidDlg.cpp: (keyedit_adduid_dlg_proc): Set foreground
5581 window flag.
5582 * wptKeyEditDlg.cpp: (keyedit_dlg_proc): Added the code for the
5583 addkey feature.
5584
5585 2001-05-01 Timo Schulz <[email protected]>
5586
5587 * wptCurrWnd.cpp (wnd_msg_markall): New. Send the CTRL+a key sequence
5588 to a window.
5589 (wnd_msg_copy): New. Send the CTRL+c key sequence to a window.
5590 (wnd_msg_paste): New. Send the CTRL+v key sequence to a window.
5591 (wnd_msg_em_set_pos): Manipulate an edit multiline control text pos.
5592 * wptMainProc.cpp (wpt_main_proc): Fix some message string for
5593 the hotkey handling. Quit the program if a registration procedure
5594 failed.
5595 * wptErrors.cpp (log_box): Improved log handling to dump states
5596 of variables during regression tests.
5597
5598 2001-04-30 Timo Schulz <[email protected]>
5599
5600 * wptClipEditDlg.cpp: Now the dialog uses the Courier font to
5601 enhance the format of keys and other GPG data.
5602 * wptKeyserverDlg.cpp (keyserver_dlg_proc): Set the cache realod
5603 flag after receiving a key.
5604 * wptKeyTrustDlg.cpp (keytrust_dlg_proc): Add error message when
5605 no listbox entry was choosen.
5606 * wptKeySignDlg.cpp (keysign_dlg_proc): Add Check button text to
5607 the NLS suite.
5608 * wptKeygenDlg.cpp (keygen_dlg_proc): Set the cache reload flag
5609 instead of refresh the keycache.
5610
5611 2001-04-29 Timo Schulz <[email protected]>
5612
5613 * wptKeyEditDlg.cpp (clear_dlg_fields): Clear all passphrase items.
5614 (keyedit_dlg_proc): Free gpgme context. Add the passphrase for the
5615 adduid command.
5616 * wptKeyEditAddUidDlg.cpp (keyedit_adduid_dlg_proc): Initialize
5617 the dialog with a KEY structure that holds the keyid and the userid.
5618 * wptWndHook.cpp: Remove the global context and use instead of it
5619 static variables. Put all static variables into the SHARED data
5620 segment in the DLL.
5621
5622 2001-04-28 Timo Schulz <[email protected]>
5623
5624 * wptGPGME.cpp: New. Move some additional GPGME code into WinPT.
5625 So it's easier to update GPGME and we can use NLS to translate
5626 error strings.
5627 * wptVerifyList.cpp (get_sig_date): New. Removed from the GPGME code
5628 because we only use it here.
5629 * wptKeyEditDlg.cpp (keyedit_dlg_proc): Add the 'change passphrase'
5630 feature to the edit-key interface.
5631
5632 2001-04-27 Timo Schulz <[email protected]>
5633
5634 * wptCurrWnd.cpp (get_window_contents): Change the code for the last
5635 window concept. Thanks to Oliver.
5636 (set_window_contents): Add some stuff to set the position if the
5637 current window is an edit control.
5638 * wptKeyEditDlg.cpp (keyedit_dlg_proc): Add code for the 'adduid'
5639 stuff.
5640 * wptKeyEditAddUidDlg.cpp: New. (keyedit_adduid_dlg_proc): Code to
5641 create a new user id for a GPG key.
5642
5643 2001-04-26 Timo Schulz <[email protected]>
5644
5645 * wptKeyEditDlg.cpp (keyedit_dlg_proc): New. Dialog for the various
5646 edit-key commands.
5647 * wptKeyMiscDlg.cpp (keymisc_dlg_proc): Add the button for the edit
5648 key code.
5649
5650 2001-04-25 Timo Schulz <[email protected]>
5651
5652 * wptKeySignDlg.cpp (keysign_dlg_proc): Now we use a new GPGME
5653 callback system to pass the keyedit information to GPG.
5654 * wptKeyTrustDlg.cpp (keytrust_dlg_proc): Ditto.
5655
5656 2001-04-24 Timo Schulz <[email protected]>
5657
5658 * wptEncryptDlg.cpp (encrypt_dlg_proc): Release the static listview
5659 item and set it to zero.
5660 * wptSignDlg.cpp (sign_dlg_proc): Ditto.
5661 * wptSignEncDlg.cpp (sign_encrypt_dlg_proc): Ditto.
5662 * wptVerifyDlg.cpp (verify_dlg_proc): Ditto.
5663 * wptKeyMiscDlg.cpp (keymisc_dlg_proc): Ditto.
5664 (keymisc_dlg_proc): Provide the functionality to delete key pairs
5665 secret+public.
5666 * wptWndHook.cpp (is_winpt_wnd): Remove this function and put
5667 all code into (check_wnd).
5668 (check_wnd): Check if the window doesn't is a application related
5669 window.
5670
5671 2001-04-23 Timo Schulz <[email protected]>
5672
5673 * wptFindWnd.cpp (find_child_wnd_proc): Removed. This functionality
5674 is not needed because all dialog windows are top level windows.
5675
5676 2001-04-22 Timo Schulz <[email protected]>
5677
5678 * wptGPG.cpp (check_last_gpg_access): Reset switch before testing
5679 the condition.
5680 * wptFindWnd.cpp (find_child_wnd_proc): New. Callback to enumerate
5681 all children windows.
5682 (find_parent_wnd_proc): New. Callback to enumerate all parent windows.
5683 (find_window): New. Return if the specified windows as found.
5684 * wptW32API.cpp: (dialog_box_param): New. Alias with the additional
5685 feature to check if the dialog already exist (and then preventing
5686 the creation).
5687 * wptMainProc.cpp (wpt_main_proc): Replace all DialogBoxParam with
5688 then new dialog_box_param function. Thanks to Martin who told me
5689 about this dialog problem.
5690 * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Ditto.
5691 * wptKeyMiscDlg.cpp (keymisc_dlg_proc): Ditto. Add translation for the
5692 new signature buttons.
5693
5694 2001-04-21 Timo Schulz <[email protected]>
5695
5696 * wptWndHook.cpp (install_cbt_hook): Remove the thread because the
5697 system already is into a DLL.
5698 * wptKeyMiscDlg.cpp (keymisc_dlg_proc): Remove checkbutton and use
5699 instead of it a button to check the key signatures.
5700 * wptGPG.cpp (get_last_gpg_access): New. Retrieve the file timestamp
5701 from the given gpg object.
5702 (check_last_gpg_access): New. Compare the last file timestamp with the
5703 new timestamp.
5704 (init_gpg_table): New. Initialize the table with gpg objects who shall
5705 be watched.
5706 (keyring_check_last_access): Use the new code.
5707 * wptCurrWnd.cpp (set_window_contents): Restore the window if it is
5708 now iconic.
5709 * wptMainProc.cpp (wpt_main_proc): Add decrypt/verify for the
5710 current window stuff.
5711
5712 2001-04-17 Timo Schulz <[email protected]>
5713
5714 * wptWndHook.cpp (is_taskbar_wnd): New. Alias to check if the window
5715 belongs to the taskbar area.
5716 (is_winpt_wnd): New. Alias to check if the window belongs to WinPT.
5717 (cbt_proc): Change code to include both functions.
5718 * wptCurrWnd.cpp (get_window_contents): Add switch if we use the
5719 foreground or the CBT window.
5720 * wptMainProc.cpp (wpt_main_proc): All hotkey operations for the
5721 current window mode set the no_cbt variable.
5722 * wptGPG.cpp (keyring_check_last_access): New. Check if the keyring
5723 was modified by an external program.
5724 * wptKeyMiscDlg.cpp: (keymisc_dlg_proc): Now check for external
5725 keyring changes.
5726
5727 2001-04-16 Timo Schulz <[email protected]>
5728
5729 * wptWndHook,cpp (cbt_proc): Compare process ids to differ between
5730 WinPT and normal windows.
5731 (install_cbt_hook): Add pid to the context.
5732
5733 2001-04-14 Timo Schulz <[email protected]>
5734
5735 * wptCurrWnd.cpp: (get_window_contents): Add an event to switch
5736 the windows. This is needed by the current code.
5737 (set_window_contents): Ditto.
5738 * wptWndSwitchDlg.cpp: (wndswitch_dlg_proc): Create a hidden dialog
5739 and force it to the foreground. This is the event needed by the code
5740 above.
5741 (create_wndswitch_event): Execute the dialog.
5742 * wptMainProc.cpp: (wpt_main_proc): Add new links in the hotkey
5743 section. Add message entries for the code.
5744 * wptW32API.cpp: (copy_window_to_clip): Moved to the into the OE
5745 mailer code.
5746 (insert_window_from_clip): Ditto.
5747 * wptMailPlugin.cpp: (oe_set_message): Insert the new code and add
5748 the event to switch the windows.
5749 (oe_get_message): Ditto.
5750
5751 2001-04-13 Timo Schulz <[email protected]>
5752
5753 * wptMailPlugin.cpp: (oe_set_message): Change the id's for
5754 the attach_thread_input.
5755 (oe_get_message): Ditto.
5756 * wptCurrWnd.cpp: (get_window_contents): Ditto.
5757 (set_window_contents): Ditto.
5758
5759 2001-04-12 Timo Schulz <[email protected]>
5760
5761 * wptHotkeys.cpp: (register_single_hotkey): Add code for the current
5762 window stuff.
5763 * wptMainProc.cpp: (wpt_main_proc): WM_HOTKEY. Add the current window
5764 hotkeys.
5765 * wptW32API.cpp: (attach_thread_input): Split up the functions into
5766 two parts. The attach flags is always set.
5767 (detach_thread_input): See above. The attach flags is never set.
5768 * wptCurrWnd.cpp: New. Code for the current window stuff.
5769 (get_window_contents): Extract the text from the given window to
5770 the clipboard.
5771 (set_window_contents): Insert clipboard into the given window.
5772
5773 2001-04-09 Timo Schulz <[email protected]>
5774
5775 * wptGPG.cpp: (check_line): Ignore empty lines.
5776 (check_gpg_options): Ditto.
5777
5778 2001-04-09 Timo Schulz <[email protected]>
5779
5780 * wptClipboard.cpp: (clip_get_pgp_type): New. Return the PGP packet
5781 type. Kludge for decrypt/verify.
5782 * wptMainProc.cpp: (wpt_main_proc): Remove verify and put the
5783 code into the decrypt routine.
5784 * wptClipImportDlg.cpp: (clip_import_dlg_proc): New button to start
5785 the key management after import.
5786
5787 2001-04-07 Timo Schulz <[email protected]>
5788
5789 * wptAgent.cpp: (agent_new): Rename to agent_init and modify source.
5790 (agent_destroy): Ditto.
5791 (agent_passphrase_cache): Ditto.
5792 (agent_passphrase_remove): Ditto.
5793 (agent_passphrase_get): Ditto.
5794
5795 2001-04-06 Timo Schulz <[email protected]>
5796
5797 * wptGPG.cpp: (check_gpg_path): Fix a small error.
5798 * WinPT.cpp: (WinMain): Add a dialog for the possibity that it's the
5799 first time a user started WinPT.
5800 * wptClipboard.cpp: (clip_isalready_secured): Check the begin and
5801 end PGP header.
5802
5803 2001-04-06 Timo Schulz <[email protected]>
5804
5805 * wptOwnertrustDlg.cpp: New. (ownertrust_dlg_proc): New.
5806 * wptKeyTrustDlg.cpp: (key_trust_dlg_proc): Add new button for the
5807 ownertrust dialog.
5808
5809 2001-04-04 Timo Schulz <[email protected]>
5810
5811 * wptClipDecryptDlg.cpp (passphrase_callback_proc): Remove the static
5812 passphrase. Now a callback context is used.
5813 (passphrase_cb): Ditto.
5814 (clip_decrypt_dlg): Ditto.
5815 * wptWndHook.cpp (cbt_thread): New. Thread to enable CBT hook.
5816 (install_cbt_hook): Modify for the new thread model.
5817 (remove_cbt_hook): Ditto.
5818 * wptW32API.cpp: (init_crtical_section): New. Make the code MT safe.
5819 (delete_critical_section): Ditto.
5820 (lock): Ditto.
5821 (unlock): Ditto.
5822
5823 2001-04-02 Timo Schulz <[email protected]>
5824
5825 * WinPT.cpp: (set_gpgme_debug_env): New: Set the environment variable.
5826 * wptClipSignDlg.cpp: (clip_sign_dlg_proc): Now the keylist widget only
5827 contains valid keys.
5828 * wptClipEncryptDlg.cpp: (clip_encrypt_dlg_proc): Ditto.
5829
5830 2001-03-31 Timo Schulz <[email protected]>
5831
5832 * wptClipSignDlg.cpp: (clip_sign_dlg_proc): If no key was choosen,
5833 the GPG default key will be used.
5834
5835 2001-03-30 Timo Schulz <[email protected]>
5836
5837 * wptW32API.cpp: (new_strdup): Remove.
5838 * wptW32API.h: Ditto.
5839 * wptWndHook.cpp: (get_cbt_curr_wnd): Return the current window.
5840 * wptKeygenDlg.cpp: (clear_dlg_fields): New: Clear all text fields.
5841
5842 2001-03-28 Timo Schulz <[email protected]>
5843
5844 * wptClipEncryptDlg.cpp: (clip_encrypt_dlg_proc):
5845 Added the keyid to the "no trust" message.
5846 * wptKeyserverDlg.cpp: (check_pattern): New:
5847 Do some sanity checks of the search pattern.
5848 * wptMainProc.cpp: (wpt_main_proc): Add agent support.
5849 * wptHotkey.cpp: Add agent support.
5850
5851 2001-03-21 Timo Schulz <[email protected]>
5852
5853 * WinPT.cpp: (WinMain): Re-activate the enable debug switch.
5854 * wptKeylist.cpp: (keylist_add_key): Ignore invalid keys.
5855
5856 2001-03-20 Timo Schulz <[email protected]>
5857
5858 * wptClipDecryptDlg.cpp: Rewrote
5859
5860 2001-03-19 Timo Schulz <[email protected]>
5861
5862 * wptVerifyList.cpp: New control for the verify dialog.
5863 * wptClipVerifyDlg.cpp: Rewrote
5864
5865 2001-03-18 Timo Schulz <[email protected]>
5866
5867 * wptClipVerifyDlg.cpp: New: stub for further verify dialogs.
5868 * wptAgent.cpp: New: Experimental passphrase caching.
5869
5870 2001-03-16 Timo Schulz <[email protected]>
5871
5872 * wptDlgs.h: Add new dialog callback function.
5873 * wptKeysigDlg.cpp: New. Key signature listing dialog.
5874
5875 2001-03-15 Timo Schulz <[email protected]>
5876
5877 * wptClipEncryptDlg.cpp: Fix translation.
5878 * wptKeygenDlg.cpp: Fix the names of the button (avoid confused users).
5879 * wptKeymiscDlg.cpp: Fix the key deleting stuff.
5880
5881 2001-02-27 Timo Schulz <[email protected]>
5882
5883 * wptKeylistWidget.cpp: New. Implementation of a W32 keylist control.
5884 * wptClipKeytrustDlg.cpp: Index was counted from 0 (should be from 1):
5885 Fixed.
5886
5887 2001-02-25 Timo Schulz <[email protected]>
5888
5889 * wptGPGPrefsDlg.cpp: Add some new translation strings.
5890 * wptKeyGenDlg.cpp: Add all dialog text to the NLS suite.
5891 * wptMainProc.cpp, wptClipDecryptDlg.cpp: Change to new packet parser.
5892 * wptClipImportDlg.cpp: Finished basic interface.
5893
5894 2001-02-24 Timo Schulz <[email protected]>
5895
5896 * wptGPG.cpp: (check_gpg_path): Fix a bug.
5897 (check_gpg_options): Fix some bugs.
5898
5899 2001-02-22 Timo Schulz <[email protected]>
5900
5901 * wptGPG.cpp: (check_line): New. Check if the line contains a valid
5902 gpg argument.
5903 (check_gpg_options): New. Parses each buffer line to check_line().
5904
5905 2001-02-21 Timo Schulz <[email protected]>
5906
5907 * wptGPG.cpp: Fix the check_gpg_optfile() code.
5908 (gpg_errstr): Define some error constants to be more verbose.
5909 (set_gpg_options): New. Manipulate the options file.
5910 (get_gpg_options): New. Read in the options file.
5911 * wptFile.cpp: (get_file_size): New.
5912 * wptGPGOptDlg.cpp: New. Dialog for editing the options file
5913
5914 2001-02-20 Timo Schulz <[email protected]>
5915
5916 * wptGPGPrefsDlg.cpp: Add some sanity checks for the value.
5917 * wptClipImportDlg.cpp: Add some new code.
5918
5919 2001-02-19 Timo Schulz <[email protected]>
5920
5921 * wptRegistry.cpp: (is_installed): Remove.
5922 (regist_inst_winpt): Add selfcheck.
5923 (regist_inst_gpg): New. Add gpg releated registry entries.
5924 (regist_inst_mo): New. Add nls related path.
5925 (get_reg_entry), set_reg_entry(): Modify to be more flexible.
5926 (set_reg_entry_gpg): Handy functions for get_reg_entry.
5927 (set_reg_entry_mo): Ditto.
5928 (get_reg_entry_gpg): Ditto.
5929 (get_reg_entry_mo(): Ditto.
5930 * wptGPGPrefsDlg.cpp, wptNLS.cpp: Add support for the locale environment.
5931 * wptGPG.cpp: (check_gpg_optfile): Figure out if the option file.
5932 include keyring entries (2x)
5933 (check_gpg_path): Include the check_gpg_optfile() check.
5934
5935 2001-02-17 Timo Schulz <[email protected]>
5936
5937 * wptRegistry.cpp: (get_reg_entry): Return the GnuPG homedir from
5938 the registry.
5939 (set_reg_entry): Set a gnupg registry key.
5940 * wptGPG.cpp: Modify all function for the use with get_reg_entry().
5941 * WinPT.cpp: Change the way for the gpg searching mechanism.
5942 * wptGPGPrefsDlg.cpp: New dialog for dynamic GPG configuration.
5943 * wptClipImportDlg.cpp: (key import dialog): New.
5944 * wptKeylistElement.cpp:
5945 (wpt_lv_implist_build): Build up the key import list.
5946 (wpt_lv_implist_add_key): Insert a key into the import list.
5947 (wpt_lv_implist_dummy): Dummy to build up a box with a fixed size.
5948
5949 2001-02-10 Timo Schulz <[email protected]>
5950
5951 * wptMainProc.cpp: Move ctb_proc and hotkey inits to this file.
5952 * wptKeylistElement.cpp: New.
5953 * wptListElement.cpp: Remove.
5954 * wptW32API.cpp: Insert all lv_*** functions.
5955 * wptKeylistElement.cpp: (wpt_lv_keylist_release_key): New.
5956 (wpt_lv_keylist_release_keys): Ditto.
5957 * wptW32API.cpp: (w32_get_thread_id): New.
5958 (w32_attach_thread_input): New.
5959 * wptMailPlugin.cpp: (oe_get_message): Add thread attach mechanism.
5960 (oe_get_message): Add thread attach mechanism.
5961 (oe_encrypt): Modify for the attach treach mechanism.
5962 Add sanity check for recipients.
5963
5964 2001-02-07 Timo Schulz <[email protected]>
5965
5966 * wptClipEditDlg.cpp: (clip_edit_dlg_proc): Add some sanity checks.
5967 * wptExportDlg.cpp: (clip_export_dlg_proc): Ditto.
5968
5969 2001-02-04 Timo Schulz <[email protected]>
5970
5971 * wptSignDlg.cpp: (wpt_sign_proc): Add secret key listing.
5972 * wptMainProc.cpp: (wpt_main_proc):
5973 Remove ciphertext checks for signing and encrypting.
5974 (allow double encryption).
5975
5976 2001-02-03 Timo Schulz <[email protected]>
5977
5978 * wptMailPlugin.cpp: (oe_find_msg_window): Fix window handles.
5979 (oe_find_addr_window): Ditto.
5980 (oe_find_main_window): Ditto.
5981
5982 2001-02-02 Timo Schulz <[email protected]>
5983
5984 * wptW32API.cpp: (w32_hit_key): New.
5985 (w32_rel_key): New.
5986 (w32_copy_to_clip): New.
5987 (w32_insert_from_clip): New.
5988 (w32_get_clip_text): New.
5989 (w32_set_clip_text: New.
5990 (w32_show_if_icon): New.
5991
5992 2001-02-01 Timo Schulz <[email protected]>
5993
5994 * wptW32API.cpp: (w32_get_edit_text): New.
5995 (w32_set_menu_text): New.
5996 (w32_strdup): New.
5997 * wptMailPlugin.cpp: (oe_***): New. Basic OE interface.
5998 * Create all dialogs windows in the foreground.
5999
6000 2001-01-31 Timo Schulz <[email protected]>
6001
6002 * wptKeygenDlg.cpp: (wpt_keygen_proc): Passphrase sanity check.
6003 * wptW32API.cpp: New.
6004 * WinPT.cpp: (WinMain): Change the keyring checking code.
6005
6006 2001-01-29 Timo Schulz <[email protected]>
6007
6008 * wptClipboard.cpp: (clip_is_already_secure):
6009 Modify the pgp data detection.
6010
6011 2001-01-28 Timo Schulz <[email protected]>
6012
6013 * wptHotkey.cpp: (register_hotkey): Hotkey registration.
6014 (unregister_hotkey): Hotkey removing.
6015 * wptHokey.h: New.
6016 * wptWndHook.cpp:
6017 (wpt_cpt_proc): Window hook to save the current windows.
6018 * wptWndHoo.h: New.
6019 * wptMainProc.cpp: (wpt_main_proc): Add hotkey messages.
6020 * WinPT.cpp: (WinMain): Add hotkey registration.
6021
6022 2001-01-21 Timo Schulz <[email protected]>
6023
6024 * wptNLS.cpp: ported to C++.
6025 (gettext): Remove CP850 to ISO88591 conversation.
6026

Properties

Name Value
svn:eol-style native

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26