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

Annotation of /trunk/Src/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 315 - (hide annotations)
Fri May 25 14:45:06 2007 UTC (17 years, 9 months ago) by twoaday
File size: 238504 byte(s)


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

Properties

Name Value
svn:eol-style native

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26