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

Annotation of /trunk/Src/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 414 - (hide annotations)
Sat Feb 11 16:45:17 2012 UTC (13 years ago) by twoaday
File size: 241733 byte(s)
2012-02-11  Timo Schulz  <twoaday@gmx.net>

        * wptCurrWnd.cpp (get_current_wnd): store thread ID
        pair to avoid side-effects.
        (paste_window_content): Likewise.
        (copy_window_content): Likewise.
				        					

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

Properties

Name Value
svn:eol-style native

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26