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

Contents of /trunk/Src/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 447 - (show annotations)
Mon Apr 16 19:42:28 2012 UTC (12 years, 10 months ago) by twoaday
File size: 243831 byte(s)
2012-04-16  Timo Schulz  <twoaday@gmx.net>

        * wptListview.cpp (listview_set_image_list): Set background
	color after the icons haven been added.
		

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

Properties

Name Value
svn:eol-style native

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26