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

Diff of /trunk/Src/ChangeLog

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

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

Legend:
Removed from v.6  
changed lines
  Added in v.398

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26