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

Diff of /trunk/Src/wptKeyManager.cpp

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

revision 32 by twoaday, Mon Oct 24 08:03:48 2005 UTC revision 33 by twoaday, Tue Oct 25 07:46:20 2005 UTC
# Line 814  km_key_is_v3 (listview_ctrl_t lv, int po Line 814  km_key_is_v3 (listview_ctrl_t lv, int po
814  }  }
815    
816    
817    /* Update the default key entry in the status bar for dialog @dlg. */
818  void  void
819  km_update_default_key_str (HWND dlg)  km_update_default_key_str (HWND dlg)
820  {  {
821      char * keyid, defkeyinf[512];      char *keyid, defkeyinf[512];
822      const char * fmt;      const char *fmt;
823            
824        /* XXX: also show the name? */
825      keyid = get_gnupg_default_key ();      keyid = get_gnupg_default_key ();
826      if (!keyid)      if (!keyid)
827          BUG (0);          BUG (0);
# Line 831  km_update_default_key_str (HWND dlg) Line 833  km_update_default_key_str (HWND dlg)
833      _snprintf (defkeyinf, sizeof defkeyinf - 1, fmt, keyid);      _snprintf (defkeyinf, sizeof defkeyinf - 1, fmt, keyid);
834      SendMessage (dlg, SB_SETTEXT, 0, (LPARAM)defkeyinf);      SendMessage (dlg, SB_SETTEXT, 0, (LPARAM)defkeyinf);
835      free_if_alloc (keyid);      free_if_alloc (keyid);
836  } /* km_return_default_key_str */  }
837    
838    
839    /* Count all keys and show from @lv results in the status bar @sb. */
840  void  void
841  km_complete_status_bar (HWND sb, listview_ctrl_t lv)  km_complete_status_bar (HWND sb, listview_ctrl_t lv)
842  {  {
# Line 849  km_complete_status_bar (HWND sb, listvie Line 852  km_complete_status_bar (HWND sb, listvie
852      _snprintf (txt_pub, sizeof (txt_pub)-1, _("%d keys"), nkeys);      _snprintf (txt_pub, sizeof (txt_pub)-1, _("%d keys"), nkeys);
853      SendMessage (sb, SB_SETTEXT, 1, (LPARAM)txt_sec);      SendMessage (sb, SB_SETTEXT, 1, (LPARAM)txt_sec);
854      SendMessage (sb, SB_SETTEXT, 2, (LPARAM)txt_pub);      SendMessage (sb, SB_SETTEXT, 2, (LPARAM)txt_pub);
855  } /* km_complete_status_bar */  }
   
856    
857    
858    /* Set trust of selected key in @lv (at @pos) to ultimate. */
859  int  int
860  km_set_implicit_trust (HWND dlg, listview_ctrl_t lv, int pos)  km_set_implicit_trust (HWND dlg, listview_ctrl_t lv, int pos)
861  {  {
# Line 921  km_dump_key (gpgme_key_t key) Line 924  km_dump_key (gpgme_key_t key)
924    
925  #if 0  #if 0
926  gpg_optfile_t  gpg_optfile_t
927  km_groupdb_open( void )  km_groupdb_open (void)
928  {        {      
929      gpg_optfile_t opt;      gpg_optfile_t opt;
930      char * optfile;      char * optfile;

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26