/[winpt]/trunk/Src/wptGPG.cpp
ViewVC logotype

Log of /trunk/Src/wptGPG.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 200 - (view) (annotate) - [select for diffs]
Modified Mon Apr 17 09:12:50 2006 UTC (18 years, 10 months ago) by twoaday
File length: 26142 byte(s)
Diff to previous 197
2006-04-16  Timo Schulz  <ts@g10code.de>
 
        * wptHTTP.cpp (getErrorCode): New.
        (connect): Store winsock error code.
        * wptGPGMEData.cpp (is_armor_header): New.
        * wptGPG.cpp (check_gnupg_engine): Free context.
        (gnupg_backup_keyrings): Do not use global vars.
        * wptGPGUtil.cpp (gpg_export_seckey): Export in ascii format.
         
2006-04-15  Timo Schulz  <ts@g10code.de>
 
        * wptKeyManager.cpp (km_get_key): New.
        (km_key_show_revoc_info): New.
        * wptKeyRevokeDlg.cpp (key_revoke_dlg): Cleanups.
        (on_init_dialog): New.
        * wptKeyManagerDlg.cpp (key_manager_dlg_proc): Factour
        out some common code and use km_get_key() instead.
        * wptKeyEditDlgs.cpp (do_init_keylist): Change second
        param type. Change all callers.
        * wptKeyEdit.cpp (addNotation): New.
        * wptKeyEditCB.cpp (editkey_command_handler): Remove 'step'
        param everywhere. Change all callers.



Revision 197 - (view) (annotate) - [select for diffs]
Modified Mon Apr 10 07:38:06 2006 UTC (18 years, 10 months ago) by twoaday
File length: 26635 byte(s)
Diff to previous 181
2006-04-09  Timo Schulz  <ts@g10code.de>
 
        * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Only return true
        if the homedir value was changed.
        * wptGPG.cpp (default_key_from_cache): Only return secret key
        if public part is available.
        (set_gnupg_default_key): Fix NULL problem.
        * wptKeyEditDlgs.cpp (do_editkey_clean): Set update flag.
        * wptFileCBS.cpp (write_cb, read_cb): Better error handling.
        * wptFileManagerDlg.cpp (file_manager_dlg_proc): Handle
        'always-on-top' correctly.
        * wptKeylist.cpp (keylist_get_recipients): Allocate enough
        mem to hold all possible keys.
        (keylist_enum_keys): Likewise.



Revision 181 - (view) (annotate) - [select for diffs]
Modified Tue Mar 14 11:01:22 2006 UTC (18 years, 11 months ago) by twoaday
File length: 26565 byte(s)
Diff to previous 179
2006-03-12  Timo Schulz  <ts@g10code.de>
 
        * wptGPG.cpp (gnupg_load_config): Search for 'ask-cert-expire'.
        * wptKeyPropsDlg.cpp (display_key_info): Automatically update
        sym algorithm preferences if needed.
        * wptKeysignDlg.cpp (date_is_today): New.
        (keysign_dlg_proc): Only allow to set cert expire date if
        the option was found.
        * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Allow to set
        'ask-cert-expire'.
         



Revision 179 - (view) (annotate) - [select for diffs]
Modified Fri Feb 24 13:12:26 2006 UTC (19 years ago) by twoaday
File length: 26472 byte(s)
Diff to previous 175
Prepare 0.11.8



Revision 175 - (view) (annotate) - [select for diffs]
Modified Tue Feb 7 08:58:04 2006 UTC (19 years ago) by twoaday
File length: 26348 byte(s)
Diff to previous 167
2006-02-04  Timo Schulz  <ts@g10code.de>
                                                                                                                            
        * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Check for
        at least one ultimately trusted key.
        * wptKeyManager.cpp (km_refresh_key_from_keyserver):
        Only check inet connection if we refresh all keys.
        * wptGPGUtil.cpp (gpg_extract_keys): New.
        * wptClipEncryptDlg.cpp (clip_encrypt_dlg_proc): Use textmode.
        * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Likewise.
        * wptClipSignDlg.cpp (get_selected_key): New.
        (one_key_proc): Use it here.
        (count_useable_seckeys): New.
        * wptSigTreeDlg.cpp (sigtree_dlg_proc): New.
        * wptKeyEditDlgs.cpp (diff_time): Removed.
        (w32_mktime): New.
        (keyedit_addsubkey_dlg_proc): Use it here.
                                                                                                                            
2006-02-02  Timo Schulz  <ts@g10code.de>
                                                                                                                            
        * wptW32API.cpp (get_temp_name): New.
        * wptKeyserver.cpp (ldap_recvkey): Use it here.
        * wptKeyPropsDlg.cpp (get_photo_tmpname): Likewise.
        * wptGPGUtil.cpp (create_tempfile): Likewise.
        * wptImportList.cpp (implist_load): Likewise.
        * wptKeyCache.cpp (parse_attr_data): Likewise.
        (w32_tempfile): Removed.
        * wptGPGME.cpp (check_ultimate_trusted_key): New.
                                                                                                                            


Revision 167 - (view) (annotate) - [select for diffs]
Modified Thu Jan 26 10:17:17 2006 UTC (19 years, 1 month ago) by twoaday
File length: 26374 byte(s)
Diff to previous 138
2006-01-25  Timo Schulz  <ts@g10code.com>
 
        * wptRegistry.cpp (get_reg_entry_gpg): Return NULL if
        the key exist with no value.
        * wptMDSumDlg.cpp (mdsum_dlg_proc): Translate string.
        * wptKeysignDlg.cpp (do_fill_seclist): Select the
        default key if possible.
        * wptFirstRunDlg.cpp (firstrun_dlg_proc): Directly
        return the choice.
        * wptKeylist.cpp (get_key_desc): New.
        (keylist_upd_key): Free memory.
        * wptKeyCache.cpp (gpg_keycache_get_default_key): New.
        (gpg_keycache_set_default_key): New.
        * WinPT.cpp (gpg_prefs_ok): New.
        (WinMain): Only start gpg prefs if needed.
         



Revision 138 - (view) (annotate) - [select for diffs]
Modified Mon Jan 9 14:20:00 2006 UTC (19 years, 1 month ago) by twoaday
File length: 26562 byte(s)
Diff to previous 137
Do not overwrite default return value.



Revision 137 - (view) (annotate) - [select for diffs]
Modified Mon Jan 9 14:01:51 2006 UTC (19 years, 1 month ago) by twoaday
File length: 26591 byte(s)
Diff to previous 133
2006-01-09  Timo Schulz  <ts@g10code.com>
 
        * WinPT.cpp (load_gettext): Remove file locking.
        (WinMain): Use pre-defined autoconf constants.
        * wptW32API.cpp (init_file_lock, release_file_lock): Deleted.
        * wptGPG.cpp (check_gnupg_engine): Add param @need_gpg_ver.
        Change all callers.

Remove all static version constants. The only place for
constants is now configure.c (config.h).



Revision 133 - (view) (annotate) - [select for diffs]
Modified Mon Jan 9 09:15:29 2006 UTC (19 years, 1 month ago) by twoaday
File length: 26270 byte(s)
Diff to previous 128
A lot of minor bug fixes.
New icons.

For a complete history, see the ChangeLog entries.



Revision 128 - (view) (annotate) - [select for diffs]
Modified Mon Dec 19 13:05:59 2005 UTC (19 years, 2 months ago) by twoaday
File length: 25782 byte(s)
Diff to previous 117
2005-12-17  Timo Schulz  <ts@g10code.com>
 
        * wptUTF8.cpp: Removed unused charset array.
        * wptSigList.cpp (siglist_build): Increase size for 'class'
        column.
        * wptGPG.cpp (get_gnupg_path): Simplified.
        * WinPT.cpp (load_gpg_env): New.
        (check_crypto_engine): Return type is now bool.
        * wptRegistry.cpp (is_gpg4win_installed): New.
        * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): More consistent
        dialog design.
        * wptKeyManagerDlg.cpp (translate_menu_strings): New.
        (translate_popupmenu_strings): New.
        * wptKeyEditDlgs.cpp (is_jpg_file): New.



Revision 117 - (view) (annotate) - [select for diffs]
Modified Thu Dec 8 09:26:32 2005 UTC (19 years, 2 months ago) by twoaday
File length: 27055 byte(s)
Diff to previous 85
2005-12-07  Timo Schulz  <ts@g10code.com>
 
        * wptOwnertrustDlg.cpp (ownertrust_dlg_proc):
        Use 'Close' instead of 'Exit'.
        * wptKeyEditDlgs.cpp (keyedit_dlg_proc): Likewise.
        * wptGPG.cpp (gnupg_backup_keyrings): Use $APPDATA
        as the destination dir. Thanks to Werner.
        * wptRegistry.cpp (is_gpgee_installed): New.
        (regist_inst_winpt): Do not register file extensions
        if GPGee is available.
        * wptGPGPrefsDlg.cpp (gpgprefs_dlg_proc): Limit
        use of local vars.
        * wptPreferencesDlg.cpp (prefs_dlg_proc): Make sure
        no illegal backup mode is saved.
        * wptKeyserverDlg.cpp (show_imported_key): New.
        (hkp_recv_key2): Show imported keys if the blob
        contained more than one.
         



Revision 85 - (view) (annotate) - [select for diffs]
Modified Fri Nov 18 07:20:40 2005 UTC (19 years, 3 months ago) by twoaday
File length: 27001 byte(s)
Diff to previous 78
2005-11-17  Timo Schulz  <ts@g10code.com>
 
        * wptGPG.cpp (check_last_gnupg_access): Kludge to avoid that
        the cache will be loaded twice.
        * wptRegistry.cpp (regist_inst_winpt): More comments.
        * wptKeyManagerDlg.cpp (do_center_window): Make sure that
        neg. coordinates are never used.
        * wptClipVerifyDlg.cpp (clip_verify_dlg_proc): Localize all
        strings.
        * wptPassphraseCB.cpp (passphrase_callback_proc): Likewise.
        * wptFileManagerDlg.cpp (filemanager_dlg_proc): Localize menu
        and save 'AlwaysOnTop' in the registry.
         


Revision 78 - (view) (annotate) - [select for diffs]
Modified Tue Nov 15 08:54:44 2005 UTC (19 years, 3 months ago) by twoaday
File length: 26813 byte(s)
Diff to previous 77
2005-11-14  Timo Schulz  <ts@g10code.com>
 
        * wptGPG.cpp (check_gnupg_engine): Fix version check.
        * wptMainProc.cpp (winpt_main_proc): Check keyring
        file permissions always and do not use interative output
        when the windows session ends.
        * wptProxySettingsDlg.cpp (proxy_settings_dlg_proc):
        Localize all strings.
        * wptPassphraseDlg.cpp (passwd_dlg_proc): Likewise.
        * wptGPGPrefsDlg.cpp (gpg_prefs_dlg): Likewise.
        * wptKeyEditDlgs.cpp (do_init_keylist): Skip all
        non-valid keys.
         



Revision 77 - (view) (annotate) - [select for diffs]
Modified Mon Nov 14 15:01:01 2005 UTC (19 years, 3 months ago) by twoaday
File length: 26674 byte(s)
Diff to previous 74
2005-11-12  Timo Schulz  <ts@g10code.com>
 
        Fix more GCC warnings.
 
2005-11-10  Timo Schulz  <ts@g10code.com>
 
        * wptClipSignDlg.cpp (one_key_proc): Use
        release_gpg_passphrase_cb() to free the context.
        * wptListView.cpp (listview_deselect_all): New.
        * wptMAPI.cpp (mapi_send_pubkey): Works again.
        * wptFileManagerDlg.cpp (file_manager_dlg_proc): Support encrypt &
        zip.
        * wptPassphraseCB.cpp (passphrase_callback_proc): Fix passphrase
        caching for signing operations.
        * wptKeyManager.cpp (km_send_to_mail_recipient): Works again.
        * wptFileManager.cpp (fm_send_file): Likewise.
        (fm_encrypt_into_zip): New.
         


Revision 74 - (view) (annotate) - [select for diffs]
Modified Tue Nov 8 07:23:16 2005 UTC (19 years, 3 months ago) by twoaday
File length: 26696 byte(s)
Diff to previous 73
Correct path.



Revision 73 - (view) (annotate) - [select for diffs]
Modified Tue Nov 8 07:15:13 2005 UTC (19 years, 3 months ago) by twoaday
File length: 26698 byte(s)
Diff to previous 69
2005-11-08  Timo Schulz  <ts@g10code.com>
 
        More minor changes to avoid GCC warnings.
         
        * wptGPG.cpp (check_homedir): Free memory in case of errors.
        (multi_gnupg_path): Add strict mode. If non-strict mode return
        the folder even if it does not exist.
        (check_for_gpgwin): New.
        * wptKeyserverDlg.cpp (hkp_recv_key): Make sure import_res is
        initialized.
        * wptRegistry.cpp (get_reg_entry_gpg4win): New.
        (get_reg_entry_mo): Support for gpg4win.
         
For complete changes see ChangeLogs.


Revision 69 - (view) (annotate) - [select for diffs]
Modified Sat Nov 5 12:28:12 2005 UTC (19 years, 3 months ago) by twoaday
File length: 25988 byte(s)
Diff to previous 66
More minor fixes...


Revision 66 - (view) (annotate) - [select for diffs]
Modified Thu Nov 3 17:55:18 2005 UTC (19 years, 3 months ago) by twoaday
File length: 26017 byte(s)
Diff to previous 58
Fix crash in the GPG preference dialog.
Allow to have an empty secret keyring.



Revision 58 - (view) (annotate) - [select for diffs]
Modified Wed Nov 2 13:36:03 2005 UTC (19 years, 3 months ago) by werner
File length: 26094 byte(s)
Diff to previous 48
Add comments and a README.SVN


Revision 48 - (view) (annotate) - [select for diffs]
Modified Mon Oct 31 21:14:11 2005 UTC (19 years, 4 months ago) by werner
File length: 26010 byte(s)
Diff to previous 42
More changes.  Compiles again but there are at least gettext issues with
w32-gettext.c.  I can't get a gpg-error build with ENABLE_NLS.


Revision 42 - (view) (annotate) - [select for diffs]
Modified Fri Oct 28 08:25:30 2005 UTC (19 years, 4 months ago) by werner
File length: 26011 byte(s)
Diff to previous 41
Readded lost changes from revision 40


Revision 41 - (view) (annotate) - [select for diffs]
Modified Fri Oct 28 07:15:26 2005 UTC (19 years, 4 months ago) by twoaday
File length: 25941 byte(s)
Diff to previous 36
A lot of bug fixes. See ChangeLog.


Revision 36 - (view) (annotate) - [select for diffs]
Modified Thu Oct 27 15:25:13 2005 UTC (19 years, 4 months ago) by werner
File length: 25446 byte(s)
Diff to previous 34
First set of changes to use autotools for building.

Revision 34 - (view) (annotate) - [select for diffs]
Modified Wed Oct 26 11:20:09 2005 UTC (19 years, 4 months ago) by twoaday
File length: 26490 byte(s)
Diff to previous 32
2005-10-25  Timo Schulz  <twoaday@g10code.com>
                                                                                
        * wptGPGUtil.cpp (create_process): Hide window.
        * wptKeyPropsDlg.cpp (get_photo_tmpname): New.
        * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Remove
        static var 'enable'.
        * wptKeygenDlg.cpp (keygen_dlg_proc): Likewise.
        (gpg_genkey_params): Make sure all primary keys are capable
        for signing and certification.
        * wptKeySigDlg.cpp (is_sig): If no item is selected, return 0.
        * wptGPG.cpp (gnupg_access_keyring): Check return value for
        NULL. Noted by Ralf.
        (get_gnupg_prog): Simplified.
        (check_homedir): Fixed. Return 0 when the dir is successfully created.
        * wptKeyManagerDlg.cpp (km_file_import): Use the hourglass to
        indicate a pending GPG process.
        * wptFileManager.cpp (op_begin, op_end): New. Indicate an start
        and and of an operation. For now just the cursor changes.
        (fm_parse_command_line): Remove debug output. Thanks to Ralf again.
        * WinPT.cpp (WinMain): Check if there is already an instance and
        set a variable early as possible.
        (load_gettext): If a previous instance was found, do not output
        any errors. Kudos to Ralf.



Revision 32 - (view) (annotate) - [select for diffs]
Modified Mon Oct 24 08:03:48 2005 UTC (19 years, 4 months ago) by twoaday
File length: 25861 byte(s)
Diff to previous 25
2005-10-23  Timo Schulz  <twoaday@g10code.com>
 
        * wptFileManager.cpp (fm_get_file_type): Detect detached sigs.
        * wptKeyList.cpp (keylist_cmp_cb): Take care of expired/revoked keys.
        (get_ext_validity): New.
        * wptFileVerifyDlg.cpp (file_verify_dlg_proc): Several cleanups.
        * wptClipEditDlg.cpp (load_clipboard): Factored out some code into
        this function.
        (load_clipboard_from_file): Likewise.
        (save_clipboard_to_file): New.
        * wptKeyManagerDlg.cpp (keyprops_dlg_proc): Fix stack overflow.

For complete details, see the ChangeLog files.


Revision 25 - (view) (annotate) - [select for diffs]
Modified Wed Oct 12 10:04:26 2005 UTC (19 years, 4 months ago) by twoaday
File length: 25774 byte(s)
Diff to previous 24
First testing phase finished.
Provide bug fixes for a lot of (minor) problems.


Revision 24 - (view) (annotate) - [select for diffs]
Modified Sat Oct 8 10:43:08 2005 UTC (19 years, 4 months ago) by twoaday
File length: 25655 byte(s)
Diff to previous 23
Bug fixes to correct some problems introduced by
the MyGPGME to GPGME port.


Revision 23 - (view) (annotate) - [select for diffs]
Modified Fri Sep 30 10:10:16 2005 UTC (19 years, 5 months ago) by twoaday
File length: 25674 byte(s)
Diff to previous 22
Almost finished phase 1 of the WinPT GPGME port.
Still need more cleanup, comments and tests.



Revision 22 - (view) (annotate) - [select for diffs]
Modified Wed Aug 10 11:33:35 2005 UTC (19 years, 6 months ago) by twoaday
File length: 25744 byte(s)
Diff to previous 12
2005-08-06  Timo Schulz  <twoaday@freakmail.de>
 
        * wptGPGME.cpp (keycache_update): Reload OpenPGP parts
        of the secret key.
        (keycache_init): cache name of secret keyring.
        * wptKeyList.cpp (keylist_upd_key): Do not add long keyid.
        (get_key_type): Do not assume 'ultimate' means key pair.
        * wptKeyEditDlgs.cpp (diff_time): New.
        (keyedit_addsubkey_dlg_proc): Changed design and use
        diff_time. Drop checks for invalid keylength (< 1024, > 4096)
        because the combo box automatically handles this.
        * wptKeyManager.cpp (km_set_implicit_trust): Return error code.
        * wptGPG.cpp (get_backup_name): New.
        (gnupg_backup_keyrings): Rotate backup names, from 0..3.
        * wptClipImportDialog.cpp (clip_import_dlg_proc): Free memory.
        * wptKeyManagerDlg.cpp (keymanager_dlg_proc): Use 0x short keyid and
        not the long keyid.



Revision 12 - (view) (annotate) - [select for diffs]
Modified Thu Apr 14 12:56:25 2005 UTC (19 years, 10 months ago) by twoaday
File length: 25431 byte(s)
Diff to previous 2
2005-04-11  Timo Schulz  <twoaday@freakmail.de>
 
        * wptClipSignEncDlg.cpp (clip_signenc_dlg_proc): Reset
        'enable' flag always at the begin.
        * wptClipDecryptDlg.cpp (clip_decrypt_dlg): Show correct
        key trust. Noted by a friendly user.
        * wptListView.cpp (listview_add_item_pos): New.
        * wptKeyEditDlgs.cpp (get_subkey_fingerprint): Due to
        the fact that GPG does not return the fingerprint of
        the generated subkey any longer, we need to get it manually.
        Thanks to Maxime Brandt.
        (keyedit_addsubkey_dlg_proc): If key size too large, ask
        if this was a mistake.
        (keyedit_add_subkey): Use it here.
        (do_add_new_subkey): Fix list contrl insertion.
        * wptTypes.h (DEFAULT_KEYSIZE): Define new default keysize constant.



Revision 2 - (view) (annotate) - [select for diffs]
Added Mon Jan 31 11:02:21 2005 UTC (20 years, 1 month ago) by twoaday
File length: 25374 byte(s)
WinPT initial checkin.



This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26