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

Contents of /trunk/Src/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 205 - (show annotations)
Thu Apr 27 12:46:03 2006 UTC (18 years, 10 months ago) by twoaday
File size: 214693 byte(s)
2006-04-27  Timo Schulz  <ts@g10code.de>
                                                                                
        * wptKeyManager.cpp (km_get_key_ptr): New.
        * wptListview.cpp (listview_get_item_text): Drop utf8 support.
        * wptKeyCache.cpp (keycache_decode_uids): New.
        (free_native_uids): New.
        * wptKeyEdit.cpp (uid_inf_colon_handler): Do utf8 decodig here.
                                                                                
2006-04-26  Timo Schulz  <ts@g10code.de>
                                                                                
        * wptKeylist.cpp (get_keyid_from_fpr): New.
        * wptDecryptClipDlg.cpp (clip_decrypt_dlg): Use it here.
        * wptVerifyList.cpp (verlist_add_sig): Likewise.


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

Properties

Name Value
svn:eol-style native

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26