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

Annotation of /trunk/Src/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 256 - (hide annotations)
Sat Aug 5 10:31:06 2006 UTC (18 years, 6 months ago) by twoaday
File size: 231041 byte(s)
1.0.0pre3 release.


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

Properties

Name Value
svn:eol-style native

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26