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

Diff of /trunk/Src/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.4  
changed lines
  Added in v.414

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26