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

Diff of /trunk/Src/ChangeLog

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

revision 33 by twoaday, Tue Oct 25 07:46:20 2005 UTC revision 208 by twoaday, Mon May 1 12:22:18 2006 UTC
# Line 1  Line 1 
1  2005-10-24  Timo Schulz  <[email protected]>  2006-05-01  Timo Schulz  <[email protected]>
2    
3          * wptPassphraseCB.cpp (passphrase_callback_proc): Allow to use          * WinPT.cpp (WinMain): Check if the user has admin privileges.
4          pre-defined recipients.          * wptW32API.cpp (user_is_admin): New.
5          (release_gpg_passphrase_cb): Release recipients.          * wptKeysigDlg.cpp (sigprops_dlg_proc): Cosmetical changes.
6          * wptKeyPropsDlg.cpp (keyprops_load_photo): Set photo-id          * wptKeyManagerDlg.cpp (key_manager_dlg_proc): Use timer
7          validity if needed.          to re-activate the window again.
8          (keyprops_dlg_proc): Issue a warning if the photo is valid.          * wptKeylist.cpp (get_key_trust2): Differ between "full"
9            and "ultimate".
10  2005-10-23  Timo Schulz  <[email protected]>          * wptKeyCache.cpp (keycache_prepare2): Primary user-id
11            has now highest priority.
12          * wptFileManager.cpp (fm_get_file_type): Detect detached sigs.            * wptClipDecryptDlg.cpp (clip_decrypt_dlg): Use new utf8
13          * wptKeyList.cpp (keylist_cmp_cb): Take care of expired/revoked keys.          system.
14          (get_ext_validity): New.          
15          * wptFileVerifyDlg.cpp (file_verify_dlg_proc): Several cleanups.  2006-04-30  Timo Schulz  <[email protected]>
16          * wptClipEditDlg.cpp (load_clipboard): Factored out some code into  
17          this function.          * wptKeyCache.cpp (gpg_keycache_release): Release revoker
18          (load_clipboard_from_file): Likewise.          list if needed.
19          (save_clipboard_to_file): New.          * wptKeyRevokersDlg.cpp (key_get_revokers): New.
20          * wptKeyManagerDlg.cpp (keyprops_dlg_proc): Fix stack overflow.          (key_revokers_dlg_proc): Expect winpt_key_t. Change all callers.
21            * wptKeyEditDlgs.cpp (check_desig_rev): New.
22  2005-10-22  Timo Schulz  <[email protected]>          (do_editkey_minimize): New.
23            * wptKeyRevokeDlg.cpp (key_revoke_dlg_proc): Support to
24          Localized a lot of more strings.          generate a revoc cert as a desig revoker.
25            
26          * wptMainProc.cpp (load_smartcard): New.  2006-04-29  Timo Schulz  <[email protected]>
27          * wptFileManager.cpp (fm_parse_command_line): Simplify code.  
28          (fm_check_armor_type): Add new arg. Change all callers.          * wptVerifyList.cpp (verlist_build): Adjusted code for new
29          (fm_get_file_type): Likewise.          list view interface.
30          * wptKeyPropsDlg.cpp (display_key_info): New.            * wptSigList.cpp (siglist_build): Likewise.
31          (keyprops_show_photo): Factored out some code into..          * wptKeyEditDlgs.cpp (showpref_dlg_proc): Correct code
32          (keyprops_load_photo): ..this function.          to display the preferences of the selected UID. Thanks to Mathias.
33            * wptKeyCacheDlg.cpp (keycache_dlg_proc): Return 1 in case
34  2005-10-21  Timo Schulz  <[email protected]>          of an error.
35            * wptKeyCache.cpp (gpg_keycache_update_key): Always update
36          * wptFileManagerDlg.cpp (file_manager_dlg_proc): Use          the utf8 decoded uid list.
37          WM_INITPOPUPMENU to localize popup menu texts.          * wptImportList.cpp (decode_userid): Do utf8 decoding here.
38          * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Likewise.          * wptListView.cpp (listview_new): New param for HWND handle.
39          * wptClipSignDlg.cpp (one_key_proc): Use wipememory instead of memset.            Change all callers.
40            * wptFileManager.cpp (fm_add_sig_stat): Use utf8 decoding.
41  2005-10-20  Timo Schulz  <[email protected]>          * wptGPGUtil.cpp (gpg_revoke_cert): Support --desig-revoker.
42            * wptClipVerifyDlg.cpp (wptClipVerifyDlg.cpp): Correct
43          Now WinPT depends on GPG 1.4.3 and GPGME 1.2.0.          keyid extraction.
44            
45          * wptPassphraseCB.cpp (passphrase_cb): Complete card support.  2006-04-28  Timo Schulz  <[email protected]>
46          * wptCardEdit.cpp (genKey): Handle cancel case.  
47          * keycache.c: Renamed into...          * wptMAPI.cpp (mapi_send_pubkey): Use new key struct.
48          * wptKeyCache.cpp: ...this.          * wptKeysigDlg.cpp (sigprops_dlg_proc): Prepare dialog
49          * wptW32API.cpp (set_menu_text): Removed unused code.          for handling policy URLs.
50          (set_menu_text_bypos): New.          * wptKeyManagerDlg.cpp (save_column_info, restore_column_info):
51          * wptCrypto.h: New.          New option KMSortBy.
52          * wptMainProc.cpp (winpt_main_proc): Complete localize          * wptKeylist.cpp (get_key_algo): Lower priority for revoked keys.
53          menu texts.          * wptKeyEdit.cpp (minimizeKey): New.
54          * wptErrors.cpp (log_debug): Use a static var so the file          * wptKeyCache.cpp (gpg_keycache_update_key): Reload utf8 uid list.
55          is only opened once.          
56          (debug_end): Cleanup. Currently just close the log file.  2006-04-27  Timo Schulz  <[email protected]>
57          * wptErrors.h (wipememory): New.  
58          (sfree_if_alloc): Use it here.          * wptKeyManager.cpp (km_get_key_ptr): New.
59          * WinPT.cpp (WinMain): Display the min. GPGME version which          * wptListview.cpp (listview_get_item_text): Drop utf8 support.
60          is needed in case of an error.          * wptKeyCache.cpp (keycache_decode_uids): New.
61            (free_native_uids): New.
62  2005-10-17  Timo Schulz  <[email protected]>          * wptKeyEdit.cpp (uid_inf_colon_handler): Do utf8 decodig here.
63            
64          Free all memory returned by the GPGME dll with gpgme_free ().  2006-04-26  Timo Schulz  <[email protected]>
65    
66          s/GPG_ERR_CARD_REMOVED/GPG_ERR_CARD_NOT_PRESENT.          * wptKeylist.cpp (get_keyid_from_fpr): New.
67            * wptDecryptClipDlg.cpp (clip_decrypt_dlg): Use it here.
68          * wptKeyEdit.cpp (getCardStatus): Remove dummy key.          * wptVerifyList.cpp (verlist_add_sig): Likewise.
69          (list_handler): With user interaction to allow to insert          
70          the card into the reader.  2006-04-25  Timo Schulz  <[email protected]>
71          * wptKeyEditCB.cpp (gpg_edit_card): Likewise.  
72          (common_card_handler): Fixed incorrect command string.          * wptFileManagerDlg.cpp (file_manager_dlg_proc): Handle IDCANCEL.
73          * wptKeyPropsDlg.cpp (get_card_type): New.          * wptMDSumDlg.cpp (hash_selected_files): New.
74          (keyprops_dlg_proc): Show card information if present.          (mdsum_dlg_proc): Cleanups.
75          * wptFileManager.cpp (secret_key_available): Make the code faster.          * wptKeysignDlg.cpp (keysign_dlg_proc): Fix segv.
76                    
77    2006-04-23  Timo Schulz  <[email protected]>
78  2005-10-16  Timo Schulz  <[email protected]>  
79            * wptW32API.cpp (SetDlgItemText_utf8): New.
80          * wptPassphraseCB.cpp (passphrase_cb): Fix problem          (SetWindowText_utf8): New.
81          with hanging GPG process on cancel.          (GetDlgItemText_utf8): New.
82          * keycache.c (gpg_keycache_release): Release all objects.          * wptListView.cpp (listview_add_sub_item): Internal
83            utf8 support.
84  2005-10-15  Timo Schulz  <[email protected]>          
85    2006-04-22  Timo Schulz  <[email protected]>
86          * wptCardEdit.cpp (setResult, getResult): New.  
87          (reset): New.          * wptKeyEditDlgs.cpp (addrevoker_dlg_proc): Encode
88          (getCardStatus): Check return codes and release all objects          revoker name in UTF8.
89          in case of errors.          * wptKeysigDlg.cpp (keysig_dlg_proc): Fix utf8 problem
90          * wptCardEditCB.cpp (change_pin_handler): Call reset()          with the window title.
91          before quit.          
92          (editcard_handler): Likewise.  2006-04-20  Timo Schulz  <[email protected]>
93          (common_card_handler): New.  
94          * wptCardDlg.cpp (card_changepin_dlg_proc): Also unmask          * wptUTF8.cpp (native_to_utf8): Use c++ alloc.
95          the old PIN when 'Hide Typing' is disabled.          * wptKeygenDlg.cpp (keygen_dlg_proc): Do not mix c and
96          * wptPassphraseCB.cpp (passphrase_cb): The card detection          c++ memory allocation.
97          works again. Support to re-enter passphrase.          * wptFileManager.cpp (show_verify_result): Show PKA status
98            if possible.
99  2005-10-14  Timo Schulz  <[email protected]>          * wptClipVerifyDlg.cpp (get_pka_status): New.
100            (clip_verify_dlg_proc): Show PKA status if possible.
101          * wptCardDlg.cpp (card_status): New fields for the          * wptClipEditDlg.cpp (clip_edit_dlg_proc): Handle IDCANCEL
102          fingerprint creation time. Display card info as title.          to use ESC to quit the dialog.
103          (get_printable_version): New.          * wptKeyEditDlgs.cpp (keyedit_adduid_dlg_proc): Also
104          * wptCardEditCB.cpp (editcard_handler): Fix problem          encode the comment in UTF8. Thanks to Werner and Jan.
105          with the counter comparison.          
106    2006-04-16  Timo Schulz  <[email protected]>
107  2005-10-11  Timo Schulz  <[email protected]>  
108            * wptHTTP.cpp (getErrorCode): New.
109          Port to GPGME basically finished.          (connect): Store winsock error code.
110            * wptGPGMEData.cpp (is_armor_header): New.
111  2005-09-20  Timo Schulz  <[email protected]>          * wptGPG.cpp (check_gnupg_engine): Free context.
112            (gnupg_backup_keyrings): Do not use global vars.
113          * wptFileManagerDlg.cpp (file_secdel_confirm_dlg_proc):          * wptGPGUtil.cpp (gpg_export_seckey): Export in ascii format.
114          Do not use gpgme_recipients_t but the listview directly          
115          to add the selected files.  2006-04-15  Timo Schulz  <[email protected]>
116    
117  2005-09-07  Timo Schulz  <[email protected]>          * wptKeyManager.cpp (km_get_key): New.
118            (km_key_show_revoc_info): New.
119          * Make sure all GetOpenFileName filters are terminated by \0\0.          * wptKeyRevokeDlg.cpp (key_revoke_dlg): Cleanups.
120            (on_init_dialog): New.
121  2005-09-01  Timo Schulz  <[email protected]>          * wptKeyManagerDlg.cpp (key_manager_dlg_proc): Factour
122            out some common code and use km_get_key() instead.
123          * wptW32API.cpp (center_window): New argument for parent window.          * wptKeyEditDlgs.cpp (do_init_keylist): Change second
124          Change all callers.          param type. Change all callers.
125          (center_window2): Likewise.          * wptKeyEdit.cpp (addNotation): New.
126          * GPGME now can read gpgProgram entries with 'REG_EXPAND_SZ'.          * wptKeyEditCB.cpp (editkey_command_handler): Remove 'step'
127          * wptGPG.cpp (gnupg_backup_options): Remove param. One backup          param everywhere. Change all callers.
128          file is enough. Changed all callers.          
129    2006-04-09  Timo Schulz  <[email protected]>
130  2005-08-15  Timo Schulz  <[email protected]>  
131            * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Only return true
132          * wptKeyEditDlgs.cpp (do_editkey_showpref): Take care of v3 keys.          if the homedir value was changed.
133          * wptGPGOptDlg.cpp (gpgopt_dlg_proc): Fixed name of title.          * wptGPG.cpp (default_key_from_cache): Only return secret key
134          * Make sure the passphrase is always overwritten before it is          if public part is available.
135          freed (or the function returns).          (set_gnupg_default_key): Fix NULL problem.
136          * wptKeyPropDlg.cpp (get_pref_cipher): New.          * wptKeyEditDlgs.cpp (do_editkey_clean): Set update flag.
137          (keyprops_dlg_proc): Use it here.          * wptFileCBS.cpp (write_cb, read_cb): Better error handling.
138            * wptFileManagerDlg.cpp (file_manager_dlg_proc): Handle
139  2005-08-06  Timo Schulz  <[email protected]>          'always-on-top' correctly.
140            * wptKeylist.cpp (keylist_get_recipients): Allocate enough
141          * wptGPGME.cpp (keycache_update): Reload OpenPGP parts          mem to hold all possible keys.
142          of the secret key.          (keylist_enum_keys): Likewise.
143          (keycache_init): cache name of secret keyring.          
144          * wptKeyList.cpp (keylist_upd_key): Do not add long keyid.  2006-04-08  Timo Schulz  <[email protected]>
145          (get_key_type): Do not assume 'ultimate' means key pair.  
146          * wptKeyEditDlgs.cpp (diff_time): New.          * wptKeylist.cpp (keylist_get_recipients): Always use utf8 output.
147          (keyedit_addsubkey_dlg_proc): Changed design and use          * wptKeyserver.cpp (kserver_connect): Fixed proxy support.
148          diff_time. Drop checks for invalid keylength (< 1024, > 4096)          * wptKeyserverSearchDlg.cpp (fetch_keys): New.
149          because the combo box automatically handles this.          * WinPT.cpp (WinMain): if the default key was not found, reset
150          * wptKeyManager.cpp (km_set_implicit_trust): Return error code.          the gpg.conf entry.
151          * wptGPG.cpp (get_backup_name): New.          * wptFileManager.cpp (fm_encrypt_into_zip): Use correct output
152          (gnupg_backup_keyrings): Rotate backup names, from 0..3.          file name.
153          * wptClipImportDialog.cpp (clip_import_dlg_proc): Free memory.          (show_verify_result): Always use utf8 output.
154          * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Use 0x short keyid and          (get_output_file): Case in-sentensive comparison.
155          not the long keyid.          (fm_assume_onepass_sig): Fixed temp file handling.
156            * wptClipEncryptDlg.cpp (show_invalid_recipients): Fix utf8
157  2005-08-05  Timo Schulz  <[email protected]>          output.
158            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Fix possible segv.
159          * wptListView.cpp (listview_set_item2): New.          
160          * wptKeyManager.cpp (km_check_if_protected): Directly  2006-04-07  Timo Schulz  <[email protected]>
161          retrieve gpgme_key_t from the list.  
162          (km_check_key_status): Likewise.                  * wptW32API.cpp (set_clip_text): Change code so it also
163          * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Also use          works again with non-XP systems.
164          a human-readable name for secret key export.          
165          Reload just the keys which were affected by updates  2006-04-02  Timo Schulz  <[email protected]>
166          (edit-key).  
167          (update_key): New.          * wptKeyserver.cpp: decrease general threshold for timeout.
168          * wptKeyList.cpp ((keylist_upd_key): Stripped down          * wptKeyEditDlgs.cpp (do_editkey_clean): New.
169          version of keylist_add_key.          
170          * wptKeyEditDlgs.cpp (keyedit_main_dlg_proc): Do not  2006-04-01  Timo Schulz  <[email protected]>
171          reload the keycache here, just flag 'update'. Give the  
172          control to the calling dialog.          * wptFileVerifyDlg.cpp (file_verify_use_event): Removed.
173          * wptKeySignDlg.cpp (keysign_dlg_proc): Use winpt_key_t          * wptFileManager.cpp (restore_original_name): New.
174          as parameter. Changed all callers.          (fm_decrypt): Restore original file name from literal
175          Add date of expiration to the key info.          packet if possible.
176          (get_expire_date): New.          
177          Use a checkbox to allow to ask for the cert level.  2006-03-31  Timo Schulz  <[email protected]>
178          * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): Do no reload  
179          the cache.          * wptCommonDlg.cpp (nls_load_langlist): New.
180            (nsl_set_language): New.
181  2005-08-04  Timo Schulz  <[email protected]>          (nls_dlg_proc): New.
182            (select_language): New. Allow user to select the language.
183          * wptListView.cpp (listview_scroll): New.          * wptNLS.c (get_gettext_langid): Updated available languages.
184          (listview_get_item2): New.          * WinPT.cpp (WinMain): Allow to select the languag on first
185          * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): If the          start in non-installer environments.
186          item was found, make it visible with scrolling.          * wptVerifyList.cpp (verlist_build): Simplified.
187          * wptKeyManager.cpp (km_find_key): New.          (verlist_add_sig_log): Likewise.
188          (keylist_subclass_proc): Support to handle some acceleators.          * wptListview.cpp (listview_set_column_width,
189          Strg+{C, P, F, A}.          listview_get_selected_item): New.
190          (km_get_key_status): Get the gpgme_key_t object directly          * wptKeyManager.cpp (gpg_clip_export): Merged into..
191          from the list.          (km_clip_export): ..this function.
192          * wptGPGPRefsDlg.cpp (gpgprefs_dlg_proc): Also try to set          
193          the config file (if it exists).  2006-03-30  Timo Schulz  <[email protected]>
194          * wptKeySignDlg.cpp (keysign_dlg_proc): Use easier code  
195          to handle the click->activate situation.          * wptW32API.cpp (insert_menu_item): New.
196          * wptPassphraseCB.cpp (passphrase_callback_proc): Likewise.          * wptSigTreeDlg.cpp (create_popup): Use it.
197          Support to check the passphrase quality.          (sigtree_dlg_proc): Only show the name of the owner in the title.
198          * wptPassphraseDlg.cpp (passwd_dlg_proc): Likewise.          * wptMainProc.cpp (init_common_controls): Initialize all
199          (request_passphrase): Rename 'init' to 'flags' to allow more          common controls here.
200          options.          * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Drop static
201          * wptMAPI.cpp: Check all *alloc results.          keyserver menu concept. Add all keyservers dynamically.
202          * wptKeyGenDlg.cpp (keygen_dlg_proc): Use a rudimentary          
203          passphrase quality check.  2006-03-29  Timo Schulz  <[email protected]>
204          * wptMDSumDlg.cpp (mdsum_dlg_proc): Use md5/sha1sum file  
205          format and allow to save the checksum in a file.          * wptKeyManager.cpp (km_refresh_one_key): Fix problem
206          * wptKeyRevokeDlg.cpp (key_revoke_dlg_proc): Issue a warning          with preferred keyserver.
207          when the PGP mode is disabled.          * wptCommonDlg.cpp (check_URL): Allow non-http URL.
208          wptKeyEditDlgs.cpp (do_editkey_primary): Return if just          * wptKeyEditDlgs.cpp (subkey_subclass_proc,
209          one user-ID exists.          uid_subclass_proc): Disable shortcuts for non keypairs.
210          (keyedit_dlg_proc): Fixed index problem.          * wptMainProc.cpp (winpt_main_proc): No user interaction
211          * wptKeyPropsDlg.cpp (get_validity): New.          on automatic shutdown. Thanks to Werner.
212          (keyprops_dlg_proc): Actually show extended validity if possible.          * wptGPGUtil.cpp (xcalloc): New.
213          * wptKeyList.cpp (get_key_fpr): Support for old v3 format.          (gpg_rebuild_cache): Use --batch.
214          (do_addkey): Use listview_add_item2 to store key as opaque          
215          param inside the list.  2006-03-26  Timo Schulz  <[email protected]>
216          * wptFileStatDlg.cpp (get_digest_algo): Add SHAxxx.  
217          (file_stat_dlg_proc): End dialog if no PGP data was found.          * wptSigTreeDlg.cpp (sigtree_load): Always use UTF8.
218          (do_list_packets): Return the number of valid PGP packets          * wptMainProc.cpp (winpt_main_proc): Reload key cache
219          of the file.          when the GPG settings were changed.
220            * wptKeygenDlg.cpp (keygen_wizard_dlg_proc,
221  2005-08-02  Timo Schulz  <[email protected]>          keygen_dlg_proc): Improved check for the email address.
222            * wptKeyEditDlgs.cpp (keyedit_adduid_dlg_proc): Likewise.
223          * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Instead of          * wptKeyserverDlg.cpp (keyserver_dlg_proc): Modified design.
224          using 'Default Keyserver' add the real keyserver name to          
225          the menu.  2006-03-22  Timo Schulz  <[email protected]>
226          The rebuild command does not reload the cache any longer.  
227          Use ATTR_NAME + .asc as the filename and not keyid + .asc.          * wptClipSignDlg.cpp (on_init_dialog): New.
228          * wptProxySettingsDlg.cpp (enable_proxy_auth): New.          Check that there is at least one useable signing key.
229          (keyserver_proxy_dlg_proc): Changed the design a little          * wptSigTreeDlg.cpp (sigtree_load): Correct UTF8 handling.
230          and add some additional sanity checks.          * wptKeyEditDlgs.cpp (keyedit_set_pref_keyserver): Show error
231          * wptGPGParser.cpp (commit_gpg_options): Use W32 line endings.          if needed.
232          This fixes the problem that the GPG option dialog does not show          
233          very nice lines.  2006-03-21  Timo Schulz  <[email protected]>
234          * wptGPGOptDlg.cpp (gpgopt_dlg_proc): s/options/config.  
235          * wptKeySigDlg.cpp (keysig_dlg_proc): If a single key is selected          * wptUTF8.cpp (native_to_utf8): Use directly W32 API.
236          check for 'NOKEY' before asking a keyserver.          (utf8_to_native): Likewise. Remove cp850 conversion.
237          * wptKeyManager.cpp (km_delete_keys): Do not set 'refresh' flag.          * wptKeyEditDlgs.cpp (do_find_userid): Correct UTF8 handling.
238          If a lot of keys were selected, ask if the user wants to confirm          * wptKeyManager.cpp (km_delete_keys): Do not reset 'with_seckey'
239          each delete procedure or allow to cancel the operation.          flag.
240          * wptFileManagerDlg.cpp (file_import_dlg_proc): Display how much          
241          keys the file contain.  2006-03-20  Timo Schulz  <[email protected]>
242          * wptKeyList.cpp (get_key_algo): Beautified.  
243          (get_key_status): Drop the "[XYZ] Unknown" format, it is too          * wptUTF8.cpp (get_native_charset): Removed.
244          confusing for users.          (utf8_to_native): Rewritten.
245          * wptKeyManager.cpp (km_check_key_status): Adjustments for the          * wptKeyEditDlgs.cpp (do_add_new_userid): Correct charset
246          new code.          handling.
247          (km_check_for_seckey): Reset utrust parameter. Return -1 for          * wptKeygenCBDlg.cpp (keygen_cb): Do proper reset if needed.
248          invalid (exp+rev+dis) keys.          
249    2006-03-16  Timo Schulz  <[email protected]>
250  2005-08-01  Timo Schulz  <[email protected]>  
251            * wptMainProc.cpp (winpt_main_proc): Disable all CryptDisk code.
252          * wptKeyserver.cpp (kserver_urlencode): Use unsigned for all given          * wptCryptDisk.cpp: Disable code.
253          sizes.          * wptProxySettingsDlg.cpp (proxy_settings_dlg_proc): Support for
254          (check_IP_or_hostname): New.          NONE proxy protocol.
255          (kserver_load_conf): Correct finger URL parsing problem.          (init_proxy_procotol): Likewise.
256          (port_from_proto): New.          (read_proxy): Likewise.
257          (keyserver_load_conf): Guess the port.          * wptKeyserverSearchDlg.cpp (on_init_dialog): New.
258          (keyserver_set_default): Allocate new buffer.          (keyserver_search_dlg_proc): Use it here.
259          (kserver_load_conf): Likewise.          * wptKeyserverDlg.cpp (hkp_send_key): Use GPGME wrapper.
260          * wptHTTP.c (parse_reqline, parse_request): Removed.          * wptKeyserver.cpp (kserver_search_end): New.
261          Use WinPT error code and remove all unused code.          (kserver_search_begin): Be more strict on mem allocation.
262          * wptKeyserverDlg.cpp (keyserver_dlg_proc): Properly handle finger URLs.          * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Fix 'redraw'
263          * wptProxySettingsDlg.cpp (read_proxy): Simple check for          problem.
264          invalid host/IP addresses.          * wptAboutDlgs.cpp (about_dlg_proc): Hide 'Help' button.
265          * wptGPG.cpp (multi_gnupg_path): Return allocated buffer.          
266          Changed all callers.  2006-03-12  Timo Schulz  <[email protected]>
267          * wptPreferencesDlg.cpp (prefs_dlg_proc): At the first start,  
268          automatically set 'backup to homedir'.          * wptGPG.cpp (gnupg_load_config): Search for 'ask-cert-expire'.
269          * WinPT.cpp (WinMain): Use desktop window as the parent window          * wptKeyPropsDlg.cpp (display_key_info): Automatically update
270          to load 'first-start' dialogs.          sym algorithm preferences if needed.
271          * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Do not set 'refresh'          * wptKeysignDlg.cpp (date_is_today): New.
272          flag after deleting keys.          (keysign_dlg_proc): Only allow to set cert expire date if
273          * wptFirstRunDlg.cpp (first_run_dlg_proc): Use a new structure          the option was found.
274          for passing the arguments.          * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Allow to set
275          * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Do not store "" for          'ask-cert-expire'.
276          the OptFile. This was responsible for a lot of 'General Errors'          
277          after the first start related to key caching.  2006-03-10  Timo Schulz  <[email protected]>
278          Automatically set the gpg binary if possible.  
279            * wptHTTP.c: deleted.
280  2005-07-22  Timo Schulz  <[email protected]>          * wptHTTP.cpp (wHTTP): Transformed old code into an object.
281            * wptKeyManager.cpp (km_http_import): Use new code.
282          * wptMainProc.cpp (winpt_main_proc): Take care for shutdown          (km_refresh_one_key): Use preferred keyserver if possible.
283          messages and make sure WinPT make a keyring backup in this case.          * wptComonDlg.cpp (check_URL): Better conformance checking.
284          * wptGPGME.cpp (keycache_reload): Do not rebuild the signature          * wptKeyEditCB.cpp (cmd_keyserver_handler): By default
285          cache each time. Just do it on startup.          set keyserver for all userids.
286          * wptKeyManager.cpp (km_key_is_v3): Use new ATTR_VERSION.          * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Enable code
287          * wptKeyEditDlgs.cpp (keyedit_main_dlg_proc): Assume the v3 flag          to set preferred keyserver.
288          was set by the calling function.          * wptKeyCache.cpp (decode_subpacket): New.
289          * wptKeyGenDlg.cpp (keygen_wizard_dlg_proc): Ask for backups.          (gpg_keycache_update_attr): New.
290          (keygen_dlg_proc): Only add the generated key to the keycache          * wptGPGUtil.cpp (gpg_find_key_subpacket): New.
291          and do not reload the entire cache.          * wptKeyEditDlgs.cpp (keyedit_set_pref_keyserver): Use
292          * wptKeyManager.cpp (km_delete_keys): Store the number of keys          -1 as an index for all userids.
293          because in each loop iteration it will be new calculated.          
294          * wptListView.cpp (listview_del_items): Likewise.  2006-03-07  Timo Schulz  <[email protected]>
295          * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Directly add the  
296          generated key to the list instead of reloading the entire cache.          * WinPT.cpp (set_default_keyserver): New.
297          * wptKeyEditDlgs.cpp (parse_preflist): Support fpr SHAnnn.          * wptKeyserver.cpp (kserver_set_socket_timeout): New.
298            (kserver_set_default_keyserver): Initialize default settings
299            if needed.
300            * wptSymEnc.cpp (gpg_encrypt_symmetric): Disallow empty passwords.
301            * wptPassphraseDlg.cpp (request_passphrase): Handle new flag.
302            (passphrase_dlg_proc): Support new safe edit window procedure.
303            * wptPassphraseCB.cpp (passphrase_callback_proc): Likewise.
304            * wptPreferencesDlg.cpp (prefs_dlg_proc): Flush passphrase cache
305            if user disable it.
306            * wptKeylist.cpp (keylist_build): Do not scale images but use
307            original size.
308            * wptListView.cpp (listview_set_image_list): New size params.
309            Change all callers.
310            
311    2006-03-01  Timo Schulz  <[email protected]>
312    
313            * wptW32API.cpp (set_clip_text): Free all memory.
314            
315    2006-02-27  Timo Schulz  <[email protected]>
316    
317            * wptSOCKS.cpp (socks_handshake): New.
318            * wptMainProc.cpp (winpt_main_proc): A dbl-click forces
319            the key manager in teh foreground if possible.
320            * wptHotkey.cpp (hotkey_unregister): Unregister all hotkeys.
321            * wptRegistry.cpp (get_reg_proxy_prefs,
322            set_reg_proxy_prefs): Use directly the proxy context.
323            Changed all callers.
324            * wptProxySettingsDlg.cpp (init_proxy_protocols): New.
325            (keyserver_proxy_dlg_proc): Use directly the proxy context.
326            * wptKeyserver.cpp (kserver_connect): Better proxy support.
327            (kserver_send_request, kserver_recvkey_request): Likewise.
328            * wptKeyserverDlg.cpp (name_from_proto): New.
329            (set_proxy): Adjusted for the new code.
330            
331    2006-02-26  Timo Schulz  <[email protected]>
332    
333            * WinPT.cpp (WinMain): Removed hotkey_modify() code.
334            * wptKeyEditDlgs.cpp (is_idea_protect_algo): Better support
335            v4 keys.
336            * wptKeyserver.cpp (sock_getline): Skip '\r'.
337            (base64_encode): Remove @maxlen param. Changed all callers.
338            (finger_readline): Removed.
339            (finger_recvkey): Use internal functions.
340            * wptSigTreeDlg.cpp (sigtree_dlg_proc): Support a context menu.
341            (show_sigprops): New.
342            (create_popup): New.
343            * wptPreferenceDlg.cpp (prefs_dlg_proc): Cache amount is
344            now in minutes.
345            * wptRegistry.cpp (get_winpt_reg_prefs, set_winpt_reg_prefs):
346            Change code to use hotkeys directly.
347            * wptHotkeys.cpp (hotkeys_enable, hotkey_disable): Likewise.
348            
349    2006-02-24  Timo Schulz  <[email protected]>
350    
351            * wptGPG.cpp (set_gnupg_default_key): Allow to remove entry
352            when parameter is NULL.
353            * wptKeyManager.cpp (check_exist_default_key): New.
354            (km_delete_keys): Check if the default key is still valid,
355            if not delete entry.
356            * wptSigTreeDlg.cpp (sigtree_dlg_proc): Forgot to localize
357            button.
358            
359    2006-02-21  Timo Schulz  <[email protected]>
360    
361            * wptClipDecryptDlg.cpp (clip_decrypt_dlg_proc): Minor
362            cleanups.
363            * wptGPGUtil.cpp (file_extract_recipients): New.
364            (clip_extract_recipients): New.
365            (gpg_get_recipients): New.
366            * wptPassphraseCB.cpp (passphrase_callback_proc): Support
367            external recipient listings.
368            
369    2006-02-15  Timo Schulz  <[email protected]>
370    
371            * wptKeysignDlg.cpp (keysign_dlg_proc): Localize new checkbox.
372            * wptFileStatDlg.cpp (get_s2k_algo): New.
373            * wptFileManagerDlg.cpp (update_status_bar): Use human readable
374            formats.
375            
376    2006-02-14  Timo Schulz  <[email protected]>
377    
378            * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Localize 'Cancel'.
379            * wptKeysignDlg.cpp (keysign_dlg_proc): Implement 'Hide Typing'.
380            * wptFileManager.cpp (fm_sym_encrypt): Set cancel.
381            (fm_parse_files): Handle cancel.
382            
383    2006-02-10  Timo Schulz  <[email protected]>
384    
385            * wptKeyPropsDlg.cpp (props_dlg_proc): Removed unused vars.
386            * wptKeyEditDlgs.cpp (do_editkey_check): Use winpt_key_t
387            for the dialog param.
388            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Use new list
389            signature dialog by default.
390            * wptKeysigDlg.cpp (sigprops_dlg_proc): Use directly
391            gpgme_key_sig_t as param.
392            (keysig_dlg_proc): Change param for property dialog.
393            * wptSigTreeDlg.cpp (sigtree_load): Skip revoked user-ids
394            and use icons.
395            (sigtree_dlg_proc): Allow to execute old list dialog to
396            edit the signatures.
397            
398    2006-02-09  Timo Schulz  <[email protected]>
399    
400            * wptRegistry.cpp (set_winpt_reg_prefs): Removed keylist mode.
401            * wptNLS.c (gettext_localize_dialog): New.
402            * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Add 'Cancel' button
403            to avoid to reload the key cache.
404            * wptClipEncryptDlg.cpp (clipenc_dlg_proc): Drop old 'normal'
405            list mode.
406            * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Likewise.
407            * wptPreferencesDlg.cpp (on_init_dialog): New. Move dialog
408            initiation code to this function.
409            (prefs_dlg_proc): Use it here.
410            
411    2006-02-07  Timo Schulz  <[email protected]>
412    
413            * wptKeyEdit.cpp (setNoPassphrase): New.
414            (getValidDays): New.
415            * wptKeysignDlg.cpp (keysign_dlg_proc): Check on init
416            if the key is protected.
417            * wptKeyEditDlgs.cpp (keyedit_addphoto_dlg_proc): Handle
418            keys without a passphrase.
419            (keyedit_addrevoker_dlg_proc): Likewise.
420            
421    2006-02-04  Timo Schulz  <[email protected]>
422    
423            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Check for
424            at least one ultimately trusted key.
425            * wptKeyManager.cpp (km_refresh_key_from_keyserver):
426            Only check inet connection if we refresh all keys.
427            * wptGPGUtil.cpp (gpg_extract_keys): New.
428            * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): Use textmode.
429            * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Likewise.
430            * wptClipSignDlg.cpp (get_selected_key): New.
431            (one_key_proc): Use it here.
432            (count_useable_seckeys): New.
433            * wptSigTreeDlg.cpp (sigtree_dlg_proc): New.
434            * wptKeyEditDlgs.cpp (diff_time): Removed.
435            (w32_mktime): New.
436            (keyedit_addsubkey_dlg_proc): Use it here.
437            
438    2006-02-02  Timo Schulz  <[email protected]>
439    
440            * wptW32API.cpp (get_temp_name): New.
441            * wptKeyserver.cpp (ldap_recvkey): Use it here.
442            * wptKeyPropsDlg.cpp (get_photo_tmpname): Likewise.
443            * wptGPGUtil.cpp (create_tempfile): Likewise.
444            * wptImportList.cpp (implist_load): Likewise.
445            * wptKeyCache.cpp (parse_attr_data): Likewise.
446            (w32_tempfile): Removed.
447            * wptGPGME.cpp (check_ultimate_trusted_key): New.
448            
449    2006-01-31  Timo Schulz  <[email protected]>
450    
451            * wptMainProc.cpp (winpt_main_proc): Fix usage of the
452            help system.
453            * wptListView.cpp (listview_set_chkbox_style): New.
454            (listview_get_item_state): Support new checkbox style.
455            (listview_new): Reset flag var.
456            * wptKeylist.cpp (keylist_build): Support new checkbox style.
457            
458    2006-01-30  Timo Schulz  <[email protected]>
459    
460            * WinPT.cpp (check_readonly_attr): New.
461            (load_gpg_env): Use it here.
462            (WinPT): Make the the default key is searched in the
463            secret key cache.
464            Change error message.
465            * wptRegistry.cpp (regist_int_winpt): Make sure
466            the register extension is only offered once to the user.
467            * wptKeyPropsDlg.cpp (get_photo_tmpname): Always use
468            temp directory. Fixed a privilege problem.
469            
470    2006-01-29  Timo Schulz  <[email protected]>
471    
472            * wptKeyPropsDlg.cpp (keyprops_dlg_proc): Allow to use ESC
473            to quit dialog.
474            * wptKeysignDlg.cpp (sig_class_dlg_proc): More space for
475            translations. Directly return sig class.
476            (keysign_dlg_proc): Change msgbox title.
477            * wptKeyEdit.cpp (signUserid): New.
478            (getUseridIndex): New.
479            (getKeyIndex): New.
480            (getSigIndex): New.
481            (clear): New.
482            * wptKeyEditCB.cpp (cmd_sign_handler): Allow to select
483            user-id first.
484            * wptKeyEditDlgs.cpp (lookup_cmd): New.
485            (do_editkey_sign_userid): New.
486            (do_init_cmdlist): Differ between key pairs and public keys
487            and allowed actions.
488            (keyedit_change_ownertrust): Show msgbox on success.
489            (get_default_key): New.
490            * wptPassphraseDlg.cpp (request_passphrase): Reset @cancel.
491            
492    2006-01-27  Timo Schulz  <[email protected]>
493    
494            * WinPT.cpp (WinMain): Set minimal list mode as default.
495            * wptKeyCache.cpp (gpg_keycache_sync): Handle special v3 keys.
496            
497    2006-01-25  Timo Schulz  <[email protected]>
498    
499            * wptRegistry.cpp (get_reg_entry_gpg): Return NULL if
500            the key exist with no value.
501            * wptMDSumDlg.cpp (mdsum_dlg_proc): Translate string.
502            * wptKeysignDlg.cpp (do_fill_seclist): Select the
503            default key if possible.
504            * wptFirstRunDlg.cpp (firstrun_dlg_proc): Directly
505            return the choice.
506            * wptKeylist.cpp (get_key_desc): New.
507            (keylist_upd_key): Free memory.
508            * wptKeyCache.cpp (gpg_keycache_get_default_key): New.
509            (gpg_keycache_set_default_key): New.
510            * WinPT.cpp (gpg_prefs_ok): New.
511            (WinMain): Only start gpg prefs if needed.
512            
513    2006-01-24  Timo Schulz  <[email protected]>
514    
515            * wptKeyManager.cpp (km_dropped_file_import): New.
516            * wptKeyManagerDlg.cpp (keylist_subclass_proc): Allow
517            to drop files and try to import them.
518            (keymanager_dlg_proc): Pass kmi as opaque to the subclass
519            proc.
520            
521    2006-01-23  Timo Schulz  <[email protected]>
522    
523            * wptMDSumDlg.cpp (mdsum_dlg_proc): Allow to send output
524            to the clipboard.
525            * wptKeyEditDlgs.cpp (keyedit_change_ownertrust): New.
526            (do_editkey_enable_disable): New.
527            * wptKeyPropsDlg.cpp (keyprops_dlg_proc): Usability fix. Do not
528            close the dialog if the user cancelled the ownertrust dialog.
529            * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Return TRUE to indicate
530            an update of any value.
531            
532    2006-01-21  Timo Schulz  <[email protected]>
533    
534            * wptKeyCache.cpp (keycache_next_key): Handle the case
535            that there is a secret key without a public part.
536            * wptKeyserver.cpp (kserver_save_conf): Save ports.
537            * wptKeyserverDlg.cpp (keyserver_modify_dlg_proc):
538            Reset keyserver name.
539            * wptKeyPropsDlg.cpp (keyprops_dlg_proc): Just indicate
540            an update, do not update the cache.
541            * wptFileManagerDlg.cpp (file_import_dlg_proc): Use one
542            dialog for both clipboard and file imports.
543            * wptKeyManager.cpp (km_file_import, km_clip_import):
544            Changes to support new update system.
545            (gpg_clip_import): New.
546            * wptKeyManagerDlg.cpp (km_gui_import): New.
547            (find_keypos): Rewritten.
548            (refresh_keylist): Improved error checking.
549            
550    2006-01-20  Timo Schulz  <[email protected]>
551    
552            * wptKeyCache.cpp (w32_tmpfile): New.
553            (parse_attr_data): Use it here.
554            * wptGPGUtil.cpp (gpg_get_photoid_data): Reset @ndata var.
555            
556    2006-01-19  Timo Schulz  <[email protected]>
557    
558            * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Do not
559            reload the entire cache, just update the key.
560            * wptFileVerifyDlg.cpp (file_verify_dlg_proc): Likewise.
561            * wptKeyPropsDlg.cpp (keyprops_dlg_proc): Set update flag.
562            * wptKeyRevokersDlg.cpp (key_revokers_dlg_proc): Likewise.
563            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Update key
564            if need after showing the properties.
565            * wptGPGMEData.cpp (gpg_data_putc): Fix off-by-one bug.
566            * wptKeyManager.cpp (km_import_file): New param. Changed
567            all callers.
568            (km_import_clip): Likewise.
569            (delete_keys_from_cache): Delete secret part if available.
570            * wptClipImportDlg.cpp (print_import_status): If there
571            are too many new keys, use reload code.
572            
573    2006-01-18  Timo Schulz  <[email protected]>
574    
575            * wptKeyEditCB.cpp (cmd_delsig_handler): Do not assume
576            the self sig is always index 0. Noted by Kurt.
577            * wptPassphraseCB.cpp (passphrase_dlg_proc): Do not assume
578            the key user-ID contains an email address.
579            * wptKeyEditDlgs.cpp (do_find_userid): Likewise.
580            (do_editkey_deluid): Likewise.
581            (do_editkey_revuid): Likewise.
582            
583    2006-01-18  Timo Schulz  <[email protected]>
584    
585            * wptListview.cpp (listview_del_sel_items): Fixed index
586            calculation. This fixed a lot of problems with the KM listview
587            update.
588            (listview_del_all): Renamed to...
589            (listview_del_all_items): ..this. Changed all callers.
590            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Just refresh
591            list when file import contained new/updated keys.
592            * wptKeyManager.cpp (km_file_import): Indicate if the
593            import contained any new/update keys.
594            * wptClipImportDlg.cpp (print_import_status): Just mark
595            keys which actually changed.
596            
597    2006-01-17  Timo Schulz  <[email protected]>
598    
599            * wptMAPI.cpp (mapi_send_pubkey_ext): New.
600            * wptKeysigDlg.cpp (do_delsig): Just flag the key, do not
601            update it.
602            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Be more
603            careful about const pointers.
604            * wptKeyEditDlgs.cpp (get_subkey_fingerprint): Renamed to..
605            (get_subkey_keyid): ..this. Fix problem that key was updated
606            twice and this corrupted.
607            (keyedit_add_subkey): Set @lv item in the callback context.
608            
609    2006-01-16  Timo Schulz  <[email protected]>
610    
611            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Restore
612            window if it lost focus during the operation. Thanks to Kurt.
613            Update keylist when the window is enabled.
614            (find_keypos): New.
615            * wptKeyCache.cpp (keycache_next_key): Reset update status.
616            (gpg_keycache_next_updated_key): New arg @r_status. Change all
617            callers.
618            (gpg_keycache_update_key): Different status for new and updated.
619            Include key signatures.
620            * wptClipImportDlg.cpp (print_import_status): Mark all
621            imported keys.
622            * wptMainProc.cpp (clip_gpg_dlg): On import refresh KM keylist.
623            Thanks to Kurt.
624            * wptKeysigDlg.cpp (recv_missing_keys): Mark all received keys.
625            (do_delsig): Directly reload key. Thanks to Kurt.
626            * wptGPGME.cpp (keycache_set_reload, keycache_get_reload):
627            Removed.
628            * wptKeygenDlg.cpp (keygen_dlg_proc): Use new update system.
629            * wptClipImportDlg.cpp (clip_import_dlg_proc): Return
630            FALSE if no keys were updated or operation was cancelled.
631            * wptCommonDlg.cpp (http_dlg_proc): Fix title selection code.
632            * wptKeylist.cpp (get_ext_validity): Handle disabled keys.
633            * wptKeyPropsDlg.cpp (keyprops_dlg_proc):
634            Do not allow to change ownertrust of invalid keys.
635            Changed translation.
636            Slightly different user interface.
637            
638    2006-11-14  Timo Schulz  <[email protected]>
639    
640            * wptW32API.cpp (make_special_filename): New.
641            * wptRegistry.cpp (set_winpt_reg_prefs, get_winpt_reg_prefs):
642            Removed 'KeyServer' item.
643            * wptPreferencesDlg.cpp (prefs_dlg_proc): Remove keyserver
644            config item.
645            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Disable group
646            window until we really use it.
647            * wptKeyserver.cpp (kserver_save_conf): New.
648            (wsock_end): Save keyserver config file.
649            * wptKeyserverDlg.cpp (keyserver_edit): New.
650            (keyserver_remove): New.
651            (keyserver_add): New.
652            (fill_keyserv_types): New.
653            (keyserver_modify_dlg_proc): New.
654            (keyserver_dlg_proc): Provide context menu to modify the
655            keyserver list.
656            (keyserver_build_list): Remove 'proto' column because it is
657            not really useful.
658            * WinPT.cpp (load_keyserver_conf): Store keyserver.conf at
659            $APPDATA\winpt. If keyserver.conf exists in the current folder
660            move it to the new destination.
661            
662    2006-11-13  Timo Schulz  <[email protected]>
663    
664            * wptPreferencesDlg.cpp (prefs_dlg_proc): Changed translation.
665            * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Likewise.
666            * wptAboutDlgs.cpp (about_dlg_proc): Make sure GPG about
667            dialog isn't shown twice.
668            * wptKeyCache.cpp (gpg_keycache_next_updated_key): New.
669            (gpg_keycache_update_key): Set update flag.
670            * wptKeyManagerDlg.cpp (refresh_keylist): New.
671            (keymanager_dlg_proc): Use new refresh system for keyservers.
672            * wptKeyserverSearchDlg.cpp (kserver_search_dlg_proc):
673            Update keycache.
674            * wptKeyserverDlg.cpp (hkp_dlg_proc): Likewise.
675            * wptKeyserver.cpp (socket_read_ext): New.
676            (kserver_recv_key_ext): New.
677            (kserver_read_config, kserver_write_config): Removed.
678            
679    2006-01-12  Timo Schulz  <[email protected]>
680    
681            * wptListView.cpp (listview_set_image_list): Make icons
682            always transparent.
683            * wptImageList.cpp (imagelist_load): New icons.
684            * wptGPGMEData.cpp (gpg_data_putc): New.
685            * wptKeyManagerDlg.cpp (load_toolbar): Include new icons.
686            (keymanager_dlg_proc): Add tooltips.
687            * wptKeyserverDlg.cpp (keyserver_list_build): Use icons.
688            * wptKeyserver.cpp (URL_encode): New.
689            (URL_must_encode): New.
690            (kserver_search_init): Properly encode pattern.
691            (parse_iso_date): New.
692            (keyserver_search): Be more strict to prevent buffer overflows.
693            
694    2006-01-11  Timo Schulz  <[email protected]>
695    
696            * wptKeyManagerDlg.cpp (load_toolbar): 2 new icons.
697            (keymanager_dlg_proc): Adjust tooltips.
698            (update_ui_items): Handle new icons.
699            * wptImageList.cpp (imagelist_load): New icons.
700            
701    2006-01-10  Timo Schulz  <[email protected]>
702    
703            * wptMainProc.cpp (winpt_main_proc): Restore iconic
704            File/Key Manager windows if needed.
705            * wptGPGPrefsDlg.cpp (gpg_prefs_dlg_proc): Disable button.
706            * wptSiglist.cpp (init_cmp): New.
707            (siglist_sort): New.
708            (siglist_cmp_cb): New.
709            (siglist_add_key): Force NOKEY status when key was not found.
710            * wptKeysigDlg.cpp (recv_single_key): New.
711            (recv_missing_keys): Reload entire key when more than one key
712            was fetched.
713            (keysig_dlg_proc): Support sorting the listview items.
714            
715    2006-01-09  Timo Schulz  <[email protected]>
716    
717            * WinPT.cpp (load_gettext): Remove file locking.
718            (WinMain): Use pre-defined autoconf constants.
719            * wptW32API.cpp (init_file_lock, release_file_lock): Deleted.
720            * wptGPG.cpp (check_gnupg_engine): Add param @need_gpg_ver.
721            Change all callers.
722            
723    2006-01-07  Timo Schulz  <[email protected]>
724    
725            * wptKeyManager.cpp (km_refresh_from_keyserver): Summarize
726            import status if just one key was selected.
727    
728    2006-01-04  Timo Schulz  <[email protected]>
729    
730            * wptGPGMEWrapper.c (setChangeVersion): New.
731            (exportToBuffer, exportToFile, exportToClipboard): New.
732            (setArmor, getArmor): New.
733            * wptKeylist.cpp (get_key_expire_date): Return locale specific
734            date.
735            (keylist_get_recipients): Do not fetch the key again.
736            (keylist_enum_recipients): Likewise.
737            * wptGPG.cpp (create_empty_keyring): New.
738            (get_gnupg_keyring): Fixed 'strict' logic.
739            * wptKeyManagerDlg.cpp (update_ui_items): Disable some buttons
740            when no secret keys are available.
741            * wptKeyManager.cpp (km_send_to_mail_recipient): Release key data
742            before the MAPI call is made.
743            * WinPT.cpp (check_for_empty_keyrings): New.
744            
745    2006-01-03  Timo Schulz  <[email protected]>
746    
747            * pubkey.ico, keypair.ico: New.
748            * wptListview.cpp (listview_add_item_image): New.
749            (listview_set_image_list): New.
750            * wptSigList.cpp (siglist_add_key): Correct order of the sigs.
751            * wptKeyProps.cpp (keyprops_load_photo): Adjusted for new
752            JPEG data.
753            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Do not allow to
754            add items to revoked keys.
755            * wptKeyManager.cpp (km_delete_keys): Do not use uninitialized
756            keyid buffer. This fixes a segv.
757            * wptKeyserver.cpp (spawn_application): New.
758            (ldap_recv_key): Support recent protocols and several cleanups.
759            * wptKeylist.cpp (do_addkey): Set image which depends on the
760            key type.
761            (keylist_enum_recipients): Cleanups.
762            (keylist_get_keyflags): Rewritten.
763            * wptKeyCache.cpp (free_attr_list): New.
764            (parse_attr_list): New.
765            (parse_attr_data): New.
766            (keycache_update_photo): New.
767            (keycache_update_photos): New.
768            (gpg_keycache_update_key): Automatically reload photos if needed.
769            * wptGPGUtil.cpp (create_process): New param @err. Change all
770            callers.
771            (map_tmpfile): New param @nread. Change all callers.
772            (gpg_get_photoid_data): New.
773            * wptKeyEditDlgs.cpp (keyedit_main_dlg_proc): Do not allow to
774            add items to revoked keys.
775            (subkey_init_list): Store gpgme key object.
776            
777    2005-12-29  Timo Schulz  <[email protected]>
778    
779            * wptKeygenDlg.cpp (keygen_dlg_proc): Request passphrase dynamically.
780            (gpg_genkey_params): Simplified.
781            * wptPreferencesDlg.cpp (prefs_dlg_proc): Fix problem with mutal
782            exclusion of the dialog items.
783            * wptAboutDlgs.cpp (about_winpt_dlg_proc): Allow to use ESC to
784            quit the dialog.
785            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Likewise.
786            * wptMDSumDlg.cpp (mdsum_dlg_proc): Handle WM_SYSCOMMAND.
787            (id2algo): New.
788    
789    2005-12-28  Timo Schulz  <[email protected]>
790    
791            * wptKeyserverDlg.cpp (show_imported_keys): Decode user IDs.
792            * wptKeyRevokersDlg.cpp (key_revokers_dlg_proc): Likewise.
793            * wptKeylist.cpp (keylist_udp_key): Likewise.
794            * wptKeyManager.cpp (key_get_clip_info, key_get_info): Likewise.
795            * wptClipDecryptDlg.cpp (clip_decrypt_dlg_proc): Fix problem
796            when no signing key was found.
797            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Properly decode
798            user IDs.
799            (translate_popup_strings): s/Revoke/Revoke Cert.
800            * wptKeyEditDlgs.cpp (do_init_keylist): Do not assume a
801            0x prefixed keyid.
802            * wptKeyEditCB.cpp (editkey_command_handler): Also reset
803            step in case of a bad passphrase.
804            
805    2005-12-27  Timo Schulz  <[email protected]>
806    
807            * wptListView.cpp (listview_set_view): New.
808            (listview_del_column): New.
809            * wptW32API.cpp (get_locale_date): New.
810            (get_menu_state): New.
811            (force_foreground_window): New.
812            * wptVerifyList.cpp (strtimestamp): Support for
813            locale date formats.
814            * wptGPGUtil.cpp (gpg_revoke_cert): Handle bad
815            passphrases.
816            * wptKeyEditCB.cpp (editkey_command_handler): Immediately
817            return when a bad passphrase was submitted.
818            * wptKeyRevokersDlg.cpp (keyrevokers_dlg_proc): Change
819            column order.
820            * wptKeylist.cpp (keylist_upd_col): New.
821            * wptKeyManagerDlg.cpp (update_ui_items): Deactivate
822            'Revocation' for public keys.
823            (translate_menu_strings): s/Revoke/Revoke Cert.
824            (modify_listview_columns): New.
825            
826    2005-12-18  Timo Schulz  <[email protected]>
827    
828            * wptKeyManagerDlg.cpp (save_column_size): New.
829            (restore_column_size): New.
830            (keymanager_dlg_proc): Save and restore column sizes for
831            the listview control.
832            * wptKeyManager.cpp (key_get_info): New.
833            (km_delete_keys): Use it here to have a consistent message.
834            Use stored key context and not the column data.
835            (km_enable_disable_key): Likewise.
836            (km_send_to_keyserver): Likewise.
837            (km_set_implicit_trust): Likewise.
838            * wptKeylist.cpp (get_key_pubalgo2): New.
839            
840    2005-12-17  Timo Schulz  <[email protected]>
841    
842            * wptUTF8.cpp: Removed unused charset array.
843            * wptSigList.cpp (siglist_build): Increase size for 'class'
844            column.
845            * wptGPG.cpp (get_gnupg_path): Simplified.
846            * WinPT.cpp (load_gpg_env): New.
847            (check_crypto_engine): Return type is now bool.
848            * wptRegistry.cpp (is_gpg4win_installed): New.
849            * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): More consistent
850            dialog design.
851            * wptKeyManagerDlg.cpp (translate_menu_strings): New.
852            (translate_popupmenu_strings): New.
853            * wptKeyEditDlgs.cpp (is_jpg_file): New.
854            
855    2005-12-13  Timo Schulz  <[email protected]>
856    
857            * wptCommonDlg.cpp (http_dlg_proc): Localized missing elements.
858            * wptKeyManagerDlg.cpp (change_edit_menu): New.
859            (change_key_menu): Renamed from...
860            (menu_gpg_readonly): ..this.
861            (clip_contains_pgpkey): New.
862            (update_ui_items): Do not allow to sign expired keys.
863            (keymanager_dlg_proc): Same for popup menu.
864            * wptKeyPropsDlg.cpp (parse_preflist): Fixed string handling.
865            * wptKeyCache.cpp (copy_uid_prefs):
866            (gpg_keycache_sync): Copy uid prefs so the key property
867            dialog show the correct values. Thanks to Shane.
868            
869    2005-12-11  Timo Schulz  <[email protected]>
870    
871            * wptW32API.cpp (get_file_version): New.
872            * wptGPGUtil.cpp (create_process): Always hide window.
873            * wptClipEditDlg.cpp (clipedit_dlg_proc): Use 'Close'
874            instead of 'Exit'.
875            * wptKeyManager.cpp (km_http_import): New filename
876            generation code.
877            (km_send_to_mail_recipient): Cleanups.
878            * wptKeyEditDlg.cpp (showpref_dlg_proc): Localize dialog.
879            * wptKeyManagerDlg.cpp (update_ui_items): Handle the case
880            when multiple keys are selected.
881            (popup_multiple): New.
882            * WinPT.cpp (WinMain): Check that the PTD.dll and WinPT.exe
883            file versions are equal. Rewrote --keymanager code.
884            
885    2005-12-08  Timo Schulz  <[email protected]>
886    
887            * wptKeyserverDlg.cpp (show_imported_keys): Enhanced.
888            (hkp_recv_key2): Show user-id of the imported key instead
889            of just the pattern.
890            * wptFileCBS.cpp (read_cb): Changed to W32 API.
891            (write_cb): Likewise. Create output file on demand.
892            (gpg_file_data_new): Adjusted code for new API.
893            * wptKeyEdit.cpp (cleanKey): New.
894            * wptKeyEditCB.cpp (cmd_clean_handler): New.
895            (editkey_command_handler): Call clean handler.
896            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Sort
897            keylist after inserting items.
898            * wptFileManager.cpp (fm_set_status): Take care of
899            cleartext sigs.
900            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Make
901            sure can be closed.
902            
903    2005-12-07  Timo Schulz  <[email protected]>
904    
905            * wptOwnertrustDlg.cpp (ownertrust_dlg_proc):
906            Use 'Close' instead of 'Exit'.
907            * wptKeyEditDlgs.cpp (keyedit_dlg_proc): Likewise.
908            * wptGPG.cpp (gnupg_backup_keyrings): Use $APPDATA
909            as the destination dir. Thanks to Werner.
910            * wptRegistry.cpp (is_gpgee_installed): New.
911            (regist_inst_winpt): Do not register file extensions
912            if GPGee is available.
913            * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Limit
914            use of local vars.
915            * wptPreferencesDlg.cpp (prefs_dlg_proc): Make sure
916            no illegal backup mode is saved.
917            * wptKeyserverDlg.cpp (show_imported_key): New.
918            (hkp_recv_key2): Show imported keys if the blob
919            contained more than one.
920            
921    2005-12-06  Timo Schulz  <[email protected]>
922    
923            * WinPT.cpp (WinMain): Load the gettext environment soon
924            as possible so all 'first start' messages are localized.
925            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): If a single key is
926            received via the keyserver, return the gpgme key context on
927            success and add it directly to the list.
928            * wptKeyserverDlg.cpp (keyserver_dlg_proc): Support a param
929            to store the key.
930            (hkp_recv_key2): Add extra param for the fingerprint.
931            (hkp_recv_key): Call hkp_recv_key2 without fingerprint.
932            
933    2005-12-02  Werner Koch  <[email protected]>
934    
935            * wptKeyEditDlgs.cpp (subkey_list_init): Avoid trigraphs.
936    
937    2005-12-01  Timo Schulz  <[email protected]>
938    
939            * wptClipVerifyDlg.cpp (clipverify_dlg_proc): Use new semantic
940            for get_gpg_sigstat().
941            * wptGPGME.cpp (get_gpg_sigstat): New. It is now a function.
942            As a macro strings will not be translated at runtime.
943            * wptKeyserverDlg.cpp (hkp_recv_key): Properly detect if we
944            need to update the cache. Thanks to Jan-Oliver.
945            * wptKeyImportStatusDlg.cpp (import_status_dlg_proc): Localized.
946            
947    2005-11-30  Timo Schulz  <[email protected]>
948    
949            * wptW32API.cpp (dialog_box_param): Removed LANG_DE code.
950            * WinPT-en.rc: Removed string list.
951            * wptFileSaveDlg.cpp (file_save_dlg_proc): Localized
952            * wptKeylist.cpp (keylist_build): Cannot use global
953            arrays for the columns due to gettext.
954            
955    2005-11-29  Timo Schulz  <[email protected]>
956    
957            * WinPT.cpp (WinMain): Modify --keymanager. If an instance
958            is running, just send the command to open the manager.
959            
960    2005-11-25  Timo Schulz  <[email protected]>
961    
962            * wptKeyEditCB.cpp (addrev_cmd_handler): Avoid hanging
963            process when the revoker is already there.
964            
965    2005-11-24  Timo Schulz  <[email protected]>
966    
967            * wptPassphraseCB.cpp (passphrase_callback_proc): Localize
968            signing dialog items.
969            * wptMainProc.cpp (confirm_delclip_dlg): Localize dialog items.
970            * wptAboutDlgs.cpp (about_winpt_dlg_proc): Disable help for now.
971            * wptMDSumDlg.cpp (mdsum_dlg_proc): Localize missing items.
972            * wptKeylist.cpp (key_check_validity): Likewise.
973            * wptKeyEditDlgs.cpp (keyedit_addsubkey_dlg_proc): Likewise.
974            
975    2005-11-22  Timo Schulz  <[email protected]>
976    
977            * wptCardEditCB.cpp (gpg_write): Due to removed _DEBUG
978            macro debug output will be generated in release version.
979            
980    2005-11-21  Timo Schulz  <[email protected]>
981    
982            * WinPT.cpp (WinMain): Implement --stop switch.
983            * wptClipEditDlg.cpp (clip_edit_dlg_proc): Localize
984            missing string.
985            * wptPreferencesDlg.cpp (prefs_dlg_proc): Likewise.
986            * wptKeygenDlg.cpp (keygen_dlg_proc): Verify valid context
987            first. Thanks to Ralf.
988            * wptFileManagerDlg.cpp (update_ui_items): New.
989            * wptFileManager.cpp (fm_set_status): New sigmode param.
990            Changed all callers.
991            
992    2005-11-17  Timo Schulz  <[email protected]>
993    
994            * wptGPG.cpp (check_last_gnupg_access): Kludge to avoid that
995            the cache will be loaded twice.
996            * wptRegistry.cpp (regist_inst_winpt): More comments.
997            * wptKeyManagerDlg.cpp (do_center_window): Make sure that
998            neg. coordinates are never used.
999            * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Localize all
1000            strings.
1001            * wptPassphraseCB.cpp (passphrase_callback_proc): Likewise.
1002            * wptFileManagerDlg.cpp (filemanager_dlg_proc): Localize menu
1003            and save 'AlwaysOnTop' in the registry.
1004            
1005    2005-11-16  Timo Schulz  <[email protected]>
1006    
1007            * WinPT.cpp (check_crypto_engine): Min is now GPG 1.4.2.
1008            * wptKeylist.cpp (keylist_add_key): Add disabled keys in list
1009            mode.
1010            * wptPreferencesDlg.cpp (prefs_dlg_proc): Localize all strings.
1011            * wptRegistry.cpp (regist_inst_winpt): Set install directory.
1012            Useful for other programs to figure out the path to the EXE.
1013            
1014    2005-11-14  Timo Schulz  <[email protected]>
1015    
1016            * wptGPG.cpp (check_gnupg_engine): Fix version check.
1017            * wptMainProc.cpp (winpt_main_proc): Check keyring
1018            file permissions always and do not use interative output
1019            when the windows session ends.
1020            * wptProxySettingsDlg.cpp (proxy_settings_dlg_proc):
1021            Localize all strings.
1022            * wptPassphraseDlg.cpp (passwd_dlg_proc): Likewise.
1023            * wptGPGPrefsDlg.cpp (gpg_prefs_dlg): Likewise.
1024            * wptKeyEditDlgs.cpp (do_init_keylist): Skip all
1025            non-valid keys.
1026            
1027    2005-11-12  Timo Schulz  <[email protected]>
1028    
1029            Fix more GCC warnings.
1030    
1031    2005-11-10  Timo Schulz  <[email protected]>
1032    
1033            * wptClipSignDlg.cpp (one_key_proc): Use
1034            release_gpg_passphrase_cb() to free the context.
1035            * wptListView.cpp (listview_deselect_all): New.
1036            * wptMAPI.cpp (mapi_send_pubkey): Works again.
1037            * wptFileManagerDlg.cpp (file_manager_dlg_proc): Support encrypt &
1038            zip.    
1039            * wptPassphraseCB.cpp (passphrase_callback_proc): Fix passphrase
1040            caching for signing operations.
1041            * wptKeyManager.cpp (km_send_to_mail_recipient): Works again.
1042            * wptFileManager.cpp (fm_send_file): Likewise.
1043            (fm_encrypt_into_zip): New.      
1044            
1045    2005-11-09  Timo Schulz  <[email protected]>
1046    
1047            * wptNLS.c (get_gettext_langid): Map user language id to
1048            printable gettext language strings.
1049            * wptRegistry.cpp (get_reg_entry_mo): Support for the
1050            gettext environment.
1051            * wptFileManager.cpp (fm_encrypt): Close all files before
1052            the wipe procedure is called.
1053            * wptVerlist.cpp (verlist_add_sig): Handle the case the
1054            issuer is not valid but the signature is.
1055            (verlist_add_sig_log): Likewise. Thanks to the folks on
1056            winpt-users.
1057            
1058    2005-11-08  Werner Koch  <[email protected]>
1059    
1060            * SAFE.ICO, SIGN.ICO: Fixed capitalization.
1061            * WinPT-en.rc: Ditto.
1062            * winpt_km.ico:  Moved from ../.
1063    
1064            * Makefile.am (resource_files): Add missing backslash.
1065    
1066    2005-11-08  Timo Schulz  <[email protected]>
1067    
1068            More minor changes to avoid GCC warnings.
1069            
1070            * wptGPG.cpp (check_homedir): Free memory in case of errors.
1071            (multi_gnupg_path): Add strict mode. If non-strict mode return
1072            the folder even if it does not exist.
1073            (check_for_gpgwin): New.
1074            * wptKeyserverDlg.cpp (hkp_recv_key): Make sure import_res is
1075            initialized.
1076            * wptRegistry.cpp (get_reg_entry_gpg4win): New.
1077            (get_reg_entry_mo): Support for gpg4win.
1078            
1079    2005-11-07  Timo Schulz  <[email protected]>
1080    
1081            * wptMainProc.cpp (winpt_main_proc): Disable
1082            some menu items when no secret key is available.
1083            
1084    2005-11-05  Timo Schulz  <[email protected]>
1085    
1086            More minor changes to avoid GCC warnings.
1087            
1088            * wptErrors.cp (winpt_strerror): Return w32
1089            formatted error and do not use 'break'.
1090            
1091    2005-11-04  Werner Koch  <[email protected]>
1092    
1093            * WinPT-en.rc: Fixed locations of icons.
1094    
1095    2005-11-03  Timo Schulz  <[email protected]>
1096    
1097            A lot of minor changes to avoid GCC warnings.
1098    
1099            * wptGPG.cpp (get_gnupg_keyring): Only check size for
1100            public keyring.
1101            * wptKeyManager.cpp (km_update_default_key_str): Do
1102            not issue a bug message when no secret key was found.
1103            * wptGPGPrefsDlg.cpp: Replace "" with NULL in the name struct.
1104            
1105    2005-11-02  Werner Koch  <[email protected]>
1106    
1107            * WinPT.cpp (WinMain): Disabled PTD version tests.
1108            (check_crypto_engine): Fixed version check for scard.
1109    
1110            * wptErrors.cpp (debug_end): Add dummy function.
1111    
1112            * Makefile.am (code_files): Added wptCardEditCB.cpp and
1113            wptKeyEditCB.cpp.
1114    
1115    2005-10-31  Werner Koch  <[email protected]>
1116    
1117            * wptCurrWnd.cpp: Include wptVersion.h to get prototypes of PTD
1118            functions.
1119    
1120            * wptKeyEditDlgs.cpp: Include oleauto.h
1121            * wptKeyEdit.cpp: Include time.h.
1122            * wptRegistry.cpp (gpg_filetypes): New from ../Include/wptGPG.h.
1123            * wptGPGUtil.cpp (gpg_manage_ownertrust): s/export/exportflag/.
1124    
1125            * Makefile.am (code_files): Add wptGPGUtil.cpp, wptCardEdit.cpp,
1126            wptKeyEdit.cpp and wptKeycache.cpp.
1127    
1128            * wptPassphraseCB.cpp: Fixed spelling of wptKeylist.h
1129            * wptImportList.cpp (implist_load): Use remove and not unlink.
1130            * wptGPG.cpp: Fixed spelling of wptGpgCmds.h
1131            * wptImportList.cpp (implist_load): Use remove and not unlink.
1132            * wptKeyManager.cpp (km_http_import): Ditto
1133            * wptMainProc.cpp: Include wptCrypto.h
1134            * wptKeyManager.cpp: Ditto.
1135            * wptFileManager.cpp: Ditto.
1136            * wptImportList.cpp (parse_colon_key): Need to cast argument for
1137            isdigit.  Include ctype.h.
1138            * wptGPG.cpp: Include shlobj.h.
1139    
1140            Fixed double inclusion of windows.h.
1141            
1142            * Makefile.am (bin_PROGRAMS): Don't build KeyManagerExe for now.
1143            * wptKeylist.cpp (get_key_created): Broke up trigraph.
1144            (get_key_status): Removed dangerous use of sprintf.  Still other
1145            flaws present, see comment.
1146    
1147            * wptCardPCSC.c: Don't include winscard.h.
1148            (pcsc_readerstate_t, pcsc_context_t): New.  Changed call users to
1149            use these types.
1150            (PCSC_): Added a lot of constants, all taked from GnuPG 1.9.
1151            (SCARD_S_SUCCESS): Changed all compares to test the value directly
1152            against zero.
1153    
1154            * WinPT.cpp: Include wptCrypto.h.
1155            (WinMain): Don't shard S. Removed usunsed variable SIZE.
1156            * Makefile.am (code_files): Actually add files by adding a first
1157            backslash.
1158            * wptMDSumDlg.cpp: Include wptCrypto.h.
1159            * wptProxySettingsDlg.cpp: Included ctype.h.
1160            * wptKeysigDlg.cpp: Fixed spelling of wptKeylist.h.
1161            * wptKeysignDlg.cpp: Ditto
1162            * wptKeyRevokersDlg.cpp: Ditto. Fixed spelling of wptW32API.h.
1163            * wptKeyPropsDlg.cpp (keyprops_dlg_proc): Replaced unlink by remove.
1164            Removed unused variable.
1165            * wptClipVerifyDlg.cpp (show_notation_data): s/not/nota/ due to
1166            silly c++ operator synonyms.
1167            * wptKeyEditDlgs.cpp: Include time.h.
1168            * wptClipDecryptDlg.cpp: Include wptCrypto.h to define PGP_MESSAGE.
1169            * wptFileManagerDlg.cpp: Ditto.
1170            (space_wipefrees_dlg_proc): Replaced unlink by remove; it doesn't
1171            matter if it does an rmdir for a directory.
1172    
1173            Fixed include of resource.h which is not anymore in the top
1174            directory.
1175    
1176    2005-10-28  Werner Koch  <[email protected]>
1177    
1178            * wptProxySettingsDlg.cpp (check_number): Cast isdigit() arg to
1179            unsigned.  Never ever use a possible signed char as argument for
1180            ctype tests.  An alternative is to first test using isascii ().
1181            (keyserver_proxy_dlg_proc): Removed unused variable.
1182    
1183    2005-10-27  Timo Schulz  <[email protected]>
1184    
1185            * wptKeyPropsDlg.cpp (get_validity): Take care of disabled keys.
1186            * wptKeylist.cpp (keylist_add_key): Check global key flag to
1187            see if the key is disabled and not each subkey.
1188            (seclist_init): Likewise.
1189            * wptClipDecryptDlg.cpp (gpgme_op_clip_decrypt): Use
1190            gpgme_op_decrypt_verify.
1191            (clip_decrypt_dlg_proc): Fixed fingerprint
1192            to keyid conversation. This also fixes a crash.
1193            * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Likewise.
1194            * wptKeyEditDlgs.cpp (do_editkey_expire): Ask if the key
1195            already expired if the user wants to change the date.
1196            * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Replace old
1197            'v3 sig' option with the 'ask cert level' option. Sync
1198            with global preferences.
1199            * wptKeySignDlg.cpp (keysign_dlg_proc): Watch if the
1200            gpg.conf contains 'ask-cert-level'. If not disable button.
1201            * wptKeySigDlg.cpp (keysig_dlg_proc): Automatically disable
1202            the button when the key is available.
1203            Reload key directly, not the entire cache.
1204            
1205    2005-10-26  Timo Schulz  <[email protected]>
1206    
1207            * wptFileManager.cpp (is_floppy_disc): Prevent very unlikely but
1208            possible overflow.
1209            (is_openpgp_ext): Compare case insentensive.
1210            (add_single_file): New.
1211            (fm_add_opened_files): Support multi file selection.
1212            * wptKeyPropsDlg.cpp (do_change_ownertrust): Removed.
1213            * wptKeyManager.cpp (km_enable_disable_key): Do not set cache
1214            reload flag. Just update the single key.
1215            * wptFileManagerDlg.cpp (file_encrypt_dlg_proc): Remove static var
1216            and disable anonymize recipient for now.
1217    
1218            Begin to port code to GCC. Fix all warning issued by the gcc
1219            compiler.
1220    
1221    2005-10-25  Timo Schulz  <[email protected]>
1222    
1223            * wptGPGUtil.cpp (create_process): Hide window.
1224            * wptKeyPropsDlg.cpp (get_photo_tmpname): New.
1225            * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Remove
1226            static var 'enable'.
1227            * wptKeygenDlg.cpp (keygen_dlg_proc): Likewise.
1228            (gpg_genkey_params): Make sure all primary keys are capable
1229            for signing and certification.
1230            * wptKeySigDlg.cpp (is_sig): If no item is selected, return 0.
1231            * wptGPG.cpp (gnupg_access_keyring): Check return value for
1232            NULL. Noted by Ralf.
1233            (get_gnupg_prog): Simplified.
1234            (check_homedir): Fixed. Return 0 when the dir is successfully created.
1235            * wptKeyManagerDlg.cpp (km_file_import): Use the hourglass to
1236            indicate a pending GPG process.
1237            * wptFileManager.cpp (op_begin, op_end): New. Indicate an start
1238            and and of an operation. For now just the cursor changes.
1239            (fm_parse_command_line): Remove debug output. Thanks to Ralf again.
1240            * WinPT.cpp (WinMain): Check if there is already an instance and
1241            set a variable early as possible.
1242            (load_gettext): If a previous instance was found, do not output
1243            any errors. Kudos to Ralf.      
1244    
1245    2005-10-24  Timo Schulz  <[email protected]>
1246    
1247            * wptPassphraseCB.cpp (passphrase_callback_proc): Allow to use
1248            pre-defined recipients.
1249            (release_gpg_passphrase_cb): Release recipients.
1250            * wptKeyPropsDlg.cpp (keyprops_load_photo): Set photo-id
1251            validity if needed.
1252            (keyprops_dlg_proc): Issue a warning if the photo is valid.
1253    
1254    2005-10-23  Timo Schulz  <[email protected]>
1255    
1256            * wptFileManager.cpp (fm_get_file_type): Detect detached sigs.  
1257            * wptKeyList.cpp (keylist_cmp_cb): Take care of expired/revoked keys.
1258            (get_ext_validity): New.
1259            * wptFileVerifyDlg.cpp (file_verify_dlg_proc): Several cleanups.
1260            * wptClipEditDlg.cpp (load_clipboard): Factored out some code into
1261            this function.
1262            (load_clipboard_from_file): Likewise.
1263            (save_clipboard_to_file): New.
1264            * wptKeyManagerDlg.cpp (keyprops_dlg_proc): Fix stack overflow.
1265    
1266    2005-10-22  Timo Schulz  <[email protected]>
1267    
1268            Localized a lot of more strings.
1269    
1270            * wptMainProc.cpp (load_smartcard): New.
1271            * wptFileManager.cpp (fm_parse_command_line): Simplify code.
1272            (fm_check_armor_type): Add new arg. Change all callers.
1273            (fm_get_file_type): Likewise.
1274            * wptKeyPropsDlg.cpp (display_key_info): New.  
1275            (keyprops_show_photo): Factored out some code into..
1276            (keyprops_load_photo): ..this function.
1277    
1278    2005-10-21  Timo Schulz  <[email protected]>
1279    
1280            * wptFileManagerDlg.cpp (file_manager_dlg_proc): Use
1281            WM_INITPOPUPMENU to localize popup menu texts.
1282            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Likewise.
1283            * wptClipSignDlg.cpp (one_key_proc): Use wipememory instead of memset.  
1284    
1285    2005-10-20  Timo Schulz  <[email protected]>
1286    
1287            Now WinPT depends on GPG 1.4.3 and GPGME 1.2.0.
1288    
1289            * wptPassphraseCB.cpp (passphrase_cb): Complete card support.
1290            * wptCardEdit.cpp (genKey): Handle cancel case.
1291            * keycache.c: Renamed into...
1292            * wptKeyCache.cpp: ...this.
1293            * wptW32API.cpp (set_menu_text): Removed unused code.
1294            (set_menu_text_bypos): New.
1295            * wptCrypto.h: New.
1296            * wptMainProc.cpp (winpt_main_proc): Complete localize
1297            menu texts.
1298            * wptErrors.cpp (log_debug): Use a static var so the file
1299            is only opened once.
1300            (debug_end): Cleanup. Currently just close the log file.
1301            * wptErrors.h (wipememory): New.
1302            (sfree_if_alloc): Use it here.
1303            * WinPT.cpp (WinMain): Display the min. GPGME version which
1304            is needed in case of an error.
1305    
1306    2005-10-17  Timo Schulz  <[email protected]>
1307    
1308            Free all memory returned by the GPGME dll with gpgme_free ().
1309    
1310            s/GPG_ERR_CARD_REMOVED/GPG_ERR_CARD_NOT_PRESENT.
1311    
1312            * wptKeyEdit.cpp (getCardStatus): Remove dummy key.
1313            (list_handler): With user interaction to allow to insert
1314            the card into the reader.
1315            * wptKeyEditCB.cpp (gpg_edit_card): Likewise.
1316            (common_card_handler): Fixed incorrect command string.
1317            * wptKeyPropsDlg.cpp (get_card_type): New.
1318            (keyprops_dlg_proc): Show card information if present.
1319            * wptFileManager.cpp (secret_key_available): Make the code faster.
1320            
1321    
1322    2005-10-16  Timo Schulz  <[email protected]>
1323    
1324            * wptPassphraseCB.cpp (passphrase_cb): Fix problem
1325            with hanging GPG process on cancel.
1326            * keycache.c (gpg_keycache_release): Release all objects.
1327    
1328    2005-10-15  Timo Schulz  <[email protected]>
1329    
1330            * wptCardEdit.cpp (setResult, getResult): New.
1331            (reset): New.
1332            (getCardStatus): Check return codes and release all objects
1333            in case of errors.
1334            * wptCardEditCB.cpp (change_pin_handler): Call reset()
1335            before quit.
1336            (editcard_handler): Likewise.
1337            (common_card_handler): New.
1338            * wptCardDlg.cpp (card_changepin_dlg_proc): Also unmask
1339            the old PIN when 'Hide Typing' is disabled.
1340            * wptPassphraseCB.cpp (passphrase_cb): The card detection
1341            works again. Support to re-enter passphrase.
1342    
1343    2005-10-14  Timo Schulz  <[email protected]>
1344    
1345            * wptCardDlg.cpp (card_status): New fields for the
1346            fingerprint creation time. Display card info as title.
1347            (get_printable_version): New.
1348            * wptCardEditCB.cpp (editcard_handler): Fix problem
1349            with the counter comparison.
1350    
1351    2005-10-11  Timo Schulz  <[email protected]>
1352    
1353            Port to GPGME basically finished.
1354    
1355    2005-09-20  Timo Schulz  <[email protected]>
1356    
1357            * wptFileManagerDlg.cpp (file_secdel_confirm_dlg_proc):
1358            Do not use gpgme_recipients_t but the listview directly
1359            to add the selected files.
1360    
1361    2005-09-07  Timo Schulz  <[email protected]>
1362    
1363            * Make sure all GetOpenFileName filters are terminated by \0\0.
1364    
1365    2005-09-01  Timo Schulz  <[email protected]>
1366    
1367            * wptW32API.cpp (center_window): New argument for parent window.
1368            Change all callers.
1369            (center_window2): Likewise.
1370            * GPGME now can read gpgProgram entries with 'REG_EXPAND_SZ'.
1371            * wptGPG.cpp (gnupg_backup_options): Remove param. One backup
1372            file is enough. Changed all callers.
1373    
1374    2005-08-15  Timo Schulz  <[email protected]>
1375    
1376            * wptKeyEditDlgs.cpp (do_editkey_showpref): Take care of v3 keys.
1377            * wptGPGOptDlg.cpp (gpgopt_dlg_proc): Fixed name of title.
1378            * Make sure the passphrase is always overwritten before it is
1379            freed (or the function returns).
1380            * wptKeyPropDlg.cpp (get_pref_cipher): New.
1381            (keyprops_dlg_proc): Use it here.
1382    
1383    2005-08-06  Timo Schulz  <[email protected]>
1384    
1385            * wptGPGME.cpp (keycache_update): Reload OpenPGP parts
1386            of the secret key.
1387            (keycache_init): cache name of secret keyring.
1388            * wptKeyList.cpp (keylist_upd_key): Do not add long keyid.
1389            (get_key_type): Do not assume 'ultimate' means key pair.
1390            * wptKeyEditDlgs.cpp (diff_time): New.
1391            (keyedit_addsubkey_dlg_proc): Changed design and use
1392            diff_time. Drop checks for invalid keylength (< 1024, > 4096)
1393            because the combo box automatically handles this.
1394            * wptKeyManager.cpp (km_set_implicit_trust): Return error code.
1395            * wptGPG.cpp (get_backup_name): New.
1396            (gnupg_backup_keyrings): Rotate backup names, from 0..3.
1397            * wptClipImportDialog.cpp (clip_import_dlg_proc): Free memory.
1398            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Use 0x short keyid and
1399            not the long keyid.
1400    
1401    2005-08-05  Timo Schulz  <[email protected]>
1402    
1403            * wptListView.cpp (listview_set_item2): New.
1404            * wptKeyManager.cpp (km_check_if_protected): Directly
1405            retrieve gpgme_key_t from the list.
1406            (km_check_key_status): Likewise.        
1407            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Also use
1408            a human-readable name for secret key export.
1409            Reload just the keys which were affected by updates
1410            (edit-key).
1411            (update_key): New.
1412            * wptKeyList.cpp ((keylist_upd_key): Stripped down
1413            version of keylist_add_key.
1414            * wptKeyEditDlgs.cpp (keyedit_main_dlg_proc): Do not
1415            reload the keycache here, just flag 'update'. Give the
1416            control to the calling dialog.
1417            * wptKeySignDlg.cpp (keysign_dlg_proc): Use winpt_key_t
1418            as parameter. Changed all callers.
1419            Add date of expiration to the key info.
1420            (get_expire_date): New.
1421            Use a checkbox to allow to ask for the cert level.
1422            * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): Do no reload
1423            the cache.
1424    
1425    2005-08-04  Timo Schulz  <[email protected]>
1426    
1427            * wptListView.cpp (listview_scroll): New.
1428            (listview_get_item2): New.
1429            * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): If the
1430            item was found, make it visible with scrolling.
1431            * wptKeyManager.cpp (km_find_key): New.
1432            (keylist_subclass_proc): Support to handle some acceleators.
1433            Strg+{C, P, F, A}.
1434            (km_get_key_status): Get the gpgme_key_t object directly
1435            from the list.
1436            * wptGPGPRefsDlg.cpp (gpgprefs_dlg_proc): Also try to set
1437            the config file (if it exists).
1438            * wptKeySignDlg.cpp (keysign_dlg_proc): Use easier code
1439            to handle the click->activate situation.
1440            * wptPassphraseCB.cpp (passphrase_callback_proc): Likewise.
1441            Support to check the passphrase quality.
1442            * wptPassphraseDlg.cpp (passwd_dlg_proc): Likewise.
1443            (request_passphrase): Rename 'init' to 'flags' to allow more
1444            options.
1445            * wptMAPI.cpp: Check all *alloc results.
1446            * wptKeyGenDlg.cpp (keygen_dlg_proc): Use a rudimentary
1447            passphrase quality check.
1448            * wptMDSumDlg.cpp (mdsum_dlg_proc): Use md5/sha1sum file
1449            format and allow to save the checksum in a file.
1450            * wptKeyRevokeDlg.cpp (key_revoke_dlg_proc): Issue a warning
1451            when the PGP mode is disabled.
1452            wptKeyEditDlgs.cpp (do_editkey_primary): Return if just
1453            one user-ID exists.
1454            (keyedit_dlg_proc): Fixed index problem.
1455            * wptKeyPropsDlg.cpp (get_validity): New.
1456            (keyprops_dlg_proc): Actually show extended validity if possible.
1457            * wptKeyList.cpp (get_key_fpr): Support for old v3 format.
1458            (do_addkey): Use listview_add_item2 to store key as opaque
1459            param inside the list.
1460            * wptFileStatDlg.cpp (get_digest_algo): Add SHAxxx.
1461            (file_stat_dlg_proc): End dialog if no PGP data was found.
1462            (do_list_packets): Return the number of valid PGP packets
1463            of the file.
1464    
1465    2005-08-02  Timo Schulz  <[email protected]>
1466    
1467            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Instead of
1468            using 'Default Keyserver' add the real keyserver name to
1469            the menu.
1470            The rebuild command does not reload the cache any longer.
1471            Use ATTR_NAME + .asc as the filename and not keyid + .asc.
1472            * wptProxySettingsDlg.cpp (enable_proxy_auth): New.
1473            (keyserver_proxy_dlg_proc): Changed the design a little
1474            and add some additional sanity checks.
1475            * wptGPGParser.cpp (commit_gpg_options): Use W32 line endings.
1476            This fixes the problem that the GPG option dialog does not show
1477            very nice lines.
1478            * wptGPGOptDlg.cpp (gpgopt_dlg_proc): s/options/config.
1479            * wptKeySigDlg.cpp (keysig_dlg_proc): If a single key is selected
1480            check for 'NOKEY' before asking a keyserver.
1481            * wptKeyManager.cpp (km_delete_keys): Do not set 'refresh' flag.
1482            If a lot of keys were selected, ask if the user wants to confirm
1483            each delete procedure or allow to cancel the operation.
1484            * wptFileManagerDlg.cpp (file_import_dlg_proc): Display how much
1485            keys the file contain.
1486            * wptKeyList.cpp (get_key_algo): Beautified.
1487            (get_key_status): Drop the "[XYZ] Unknown" format, it is too
1488            confusing for users.
1489            * wptKeyManager.cpp (km_check_key_status): Adjustments for the
1490            new code.
1491            (km_check_for_seckey): Reset utrust parameter. Return -1 for
1492            invalid (exp+rev+dis) keys.
1493    
1494    2005-08-01  Timo Schulz  <[email protected]>
1495    
1496            * wptKeyserver.cpp (kserver_urlencode): Use unsigned for all given
1497            sizes.
1498            (check_IP_or_hostname): New.
1499            (kserver_load_conf): Correct finger URL parsing problem.
1500            (port_from_proto): New.
1501            (keyserver_load_conf): Guess the port.
1502            (keyserver_set_default): Allocate new buffer.
1503            (kserver_load_conf): Likewise.
1504            * wptHTTP.c (parse_reqline, parse_request): Removed.
1505            Use WinPT error code and remove all unused code.
1506            * wptKeyserverDlg.cpp (keyserver_dlg_proc): Properly handle finger URLs.
1507            * wptProxySettingsDlg.cpp (read_proxy): Simple check for
1508            invalid host/IP addresses.
1509            * wptGPG.cpp (multi_gnupg_path): Return allocated buffer.
1510            Changed all callers.
1511            * wptPreferencesDlg.cpp (prefs_dlg_proc): At the first start,
1512            automatically set 'backup to homedir'.
1513            * WinPT.cpp (WinMain): Use desktop window as the parent window
1514            to load 'first-start' dialogs.
1515            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Do not set 'refresh'
1516            flag after deleting keys.
1517            * wptFirstRunDlg.cpp (first_run_dlg_proc): Use a new structure
1518            for passing the arguments.
1519            * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Do not store "" for
1520            the OptFile. This was responsible for a lot of 'General Errors'
1521            after the first start related to key caching.
1522            Automatically set the gpg binary if possible.
1523    
1524    2005-07-22  Timo Schulz  <[email protected]>
1525    
1526            * wptMainProc.cpp (winpt_main_proc): Take care for shutdown
1527            messages and make sure WinPT make a keyring backup in this case.
1528            * wptGPGME.cpp (keycache_reload): Do not rebuild the signature
1529            cache each time. Just do it on startup.
1530            * wptKeyManager.cpp (km_key_is_v3): Use new ATTR_VERSION.
1531            * wptKeyEditDlgs.cpp (keyedit_main_dlg_proc): Assume the v3 flag
1532            was set by the calling function.
1533            * wptKeyGenDlg.cpp (keygen_wizard_dlg_proc): Ask for backups.
1534            (keygen_dlg_proc): Only add the generated key to the keycache
1535            and do not reload the entire cache.
1536            * wptKeyManager.cpp (km_delete_keys): Store the number of keys
1537            because in each loop iteration it will be new calculated.
1538            * wptListView.cpp (listview_del_items): Likewise.
1539            * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Directly add the
1540            generated key to the list instead of reloading the entire cache.
1541            * wptKeyEditDlgs.cpp (parse_preflist): Support fpr SHAnnn.
1542    
1543  2005-05-09  Timo Schulz  <[email protected]>  2005-05-09  Timo Schulz  <[email protected]>
1544    
1545          * wptCommonDlg.cpp (http_file_dlg_proc): Renamed to..          * wptCommonDlg.cpp (http_file_dlg_proc): Renamed to..
# Line 338  Line 1582 
1582          (kserver_sendkey): Likewise.          (kserver_sendkey): Likewise.
1583          * wptProxySettingsDlg.cpp (check_number): New.          * wptProxySettingsDlg.cpp (check_number): New.
1584          (read_proxy): Check the entered port number.          (read_proxy): Check the entered port number.
1585          * wptKeySignDlg.cpp (sig_class_dlg_proc): Check default button.          * wptKeySignDlg.cpp (sig_class_dlg_proc): Check default button.
1586          * wptW32API.cpp (get_folder_dlg): Free memory.          * wptW32API.cpp (get_folder_dlg): Free memory.
1587    
1588  2005-04-11  Timo Schulz  <[email protected]>  2005-04-11  Timo Schulz  <[email protected]>
# Line 683  Line 1927 
1927    
1928          * WinPT.cpp (load_keyserver_conf): New. Factored out some code          * WinPT.cpp (load_keyserver_conf): New. Factored out some code
1929          from WinMain ().          from WinMain ().
1930          (WinMain): Load keyserver config at the begin. Thanks to Bodo A�ner          (WinMain): Load keyserver config at the begin. Thanks to Bodo Aßner
1931          * wptKeyserverDlg.cpp (keyserver_dlg_proc): If there is no keyserver          * wptKeyserverDlg.cpp (keyserver_dlg_proc): If there is no keyserver
1932          in the list control, add at least the internal default HKP server.          in the list control, add at least the internal default HKP server.
1933          * wptKeygenDlg.cpp (keygen_wizard_dlg_proc): NLS support.          * wptKeygenDlg.cpp (keygen_wizard_dlg_proc): NLS support.

Legend:
Removed from v.33  
changed lines
  Added in v.208

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26