/[winpt]/trunk/Include/wptKeyManager.h
ViewVC logotype

Annotation of /trunk/Include/wptKeyManager.h

Parent Directory Parent Directory | Revision Log Revision Log


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


1 werner 37 /* wptKeyManager.h - Key manager
2 twoaday 151 * Copyright (C) 2001-2006 Timo Schulz
3 werner 37 *
4     * This file is part of WinPT.
5     *
6     * WinPT is free software; you can redistribute it and/or
7     * modify it under the terms of the GNU General Public License
8     * as published by the Free Software Foundation; either version 2
9     * of the License, or (at your option) any later version.
10     *
11     * WinPT is distributed in the hope that it will be useful,
12     * but WITHOUT ANY WARRANTY; without even the implied warranty of
13     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14     * General Public License for more details.
15     *
16     * You should have received a copy of the GNU General Public License
17     * along with WinPT; if not, write to the Free Software Foundation,
18     * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19     */
20    
21     #ifndef WPT_KEYMANAGER_H
22     #define WPT_KEYMANAGER_H
23    
24 twoaday 200 #include "wptContext.h"
25    
26 twoaday 164 #define send_cmd_id(hwnd, id) \
27 twoaday 65 PostMessage ((hwnd), WM_COMMAND, MAKEWPARAM ((id), 0), 0)
28 werner 37
29 twoaday 164 #define KM_PRELOAD_KEYS 6
30    
31 werner 37 /* possible key flags. */
32     enum km_flag_t {
33     KM_FLAG_REVOKED = 0x01,
34     KM_FLAG_EXPIRED = 0x02,
35     KM_FLAG_DISABLED = 0x04,
36     };
37    
38    
39     enum km_ks_t {
40     KM_KS_REFRESH = 0x01
41     };
42    
43     struct km_group_s {
44     gpg_optfile_t gh;
45     HWND tree;
46     unsigned int need_sync:1;
47     };
48     typedef struct km_group_s * km_group_t;
49    
50     struct km_group_cb_s {
51     km_group_s * gc;
52     char name[256];
53     int use_name;
54     };
55    
56 twoaday 164
57 werner 37 /*-- wptClipImportDlg.cpp --*/
58 twoaday 151 int print_import_status (gpgme_import_result_t res);
59 werner 37
60 twoaday 129 /*-- wptKeyManager.cpp --*/
61 werner 37 int km_check_for_seckey (listview_ctrl_t lv, int pos, int * utrust);
62     int km_check_key_status( listview_ctrl_t lv, int pos );
63     int km_get_key_status( listview_ctrl_t lv, int pos );
64 twoaday 151 char* km_key_get_info (gpgme_key_t pk, int is_sec);
65 werner 37 int km_clip_export( HWND dlg, listview_ctrl_t lv);
66     int km_file_export( HWND dlg, listview_ctrl_t lv, const char *fname );
67     int km_privkey_export(HWND dlg, listview_ctrl_t lv, const char *fname );
68     int km_set_implicit_trust (HWND dlg, listview_ctrl_t lv, int pos);
69 twoaday 165 int km_clip_import (HWND dlg, int *r_newkeys, int *r_newsks);
70     int km_file_import (HWND dlg, const char *fname,
71     int *r_newkeys, int *r_newsks);
72 werner 37 int km_http_import (HWND dlg, const char * url);
73 twoaday 166 int km_dropped_file_import (HWND dlg, HDROP hdrop,
74     int *r_newkeys, int *r_newsks);
75 werner 37 int km_delete_keys( listview_ctrl_t lv, HWND dlg );
76     int km_send_to_keyserver( listview_ctrl_t lv, HWND dlg, const char * host, unsigned short port);
77     int km_send_to_mail_recipient( listview_ctrl_t lv, HWND dlg );
78     void km_refresh_from_keyserver(listview_ctrl_t lv, HWND dlg);
79     int km_check_if_protected( listview_ctrl_t lv, int pos );
80     int km_enable_disable_key( listview_ctrl_t lv, HWND dlg, int pos, int enable );
81     void km_set_clip_info( const char *uid );
82     int km_key_is_v3( listview_ctrl_t lv, int pos );
83     void km_find_key (HWND dlg, listview_ctrl_t lv);
84 twoaday 129 char* km_gen_export_filename (const char *keyid, int is_secret);
85 twoaday 200 int km_get_key (listview_ctrl_t lv, int pos, winpt_key_t k);
86 twoaday 205 gpgme_key_t km_get_key_ptr (listview_ctrl_t lv, int idx,
87     struct keycache_s **r_ctx);
88 twoaday 200 void km_key_show_revoc_info (winpt_key_t k);
89 werner 37
90     #if 0
91     gpg_optfile_t km_groupdb_open( void );
92     int km_groupdb_expand_recipients( const char *name, gpgme_recipients_t rset );
93     int km_groups_new( km_group_t *r_gc, HWND ctrl );
94     void km_groups_release( km_group_t gc );
95     void km_groups_sync( km_group_t gc );
96     int km_groups_load( km_group_t gc );
97     int km_groups_add( km_group_t gc, listview_ctrl_t lv, int km_index );
98     int km_groups_del( km_group_t gc );
99     #endif
100    
101 werner 47 #endif /* WPT_KEYMANAGER_H */

Properties

Name Value
svn:eol-style native

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26