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

Diff of /trunk/Include/wptKeyManager.h

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

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

Legend:
Removed from v.22  
changed lines
  Added in v.37

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26