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

Diff of /trunk/Src/wptClipSignDlg.cpp

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

revision 68 by twoaday, Sat Nov 5 12:00:55 2005 UTC revision 77 by twoaday, Mon Nov 14 15:01:01 2005 UTC
# Line 89  leave: Line 89  leave:
89    
90    
91  /* This function is used when only one secret key is available.  /* This function is used when only one secret key is available.
92   * it doesn't make sense to offer a dialog for this case.     it doesn't make sense to offer a dialog for this case. */
  */  
93  void  void
94  one_key_proc (HWND dlg)  one_key_proc (HWND dlg)
95  {  {
96      char * signer;      char *signer;
97      gpgme_ctx_t ctx;      gpgme_ctx_t ctx;
98      gpgme_error_t err;      gpgme_error_t err;
99      passphrase_cb_s pwd;      passphrase_cb_s pwd;
# Line 111  one_key_proc (HWND dlg) Line 110  one_key_proc (HWND dlg)
110          BUG (dlg);          BUG (dlg);
111    
112      set_gpg_passphrase_cb (&pwd, ctx, GPG_CMD_SIGN, dlg, _("Signing"));      set_gpg_passphrase_cb (&pwd, ctx, GPG_CMD_SIGN, dlg, _("Signing"));
113      err = gpg_clip_sign (ctx, signer, n );      err = gpg_clip_sign (ctx, signer, n);
     wipememory (pwd.pwd, sizeof (pwd.pwd));  
114      if (gpgme_err_code (err) == GPG_ERR_BAD_PASSPHRASE)      if (gpgme_err_code (err) == GPG_ERR_BAD_PASSPHRASE)
115          agent_del_cache (pwd.keyid);          agent_del_cache (pwd.keyid);
116      if (err)      if (err)
# Line 121  one_key_proc (HWND dlg) Line 119  one_key_proc (HWND dlg)
119          show_msg (dlg, 1500, _("GnuPG Status: Finished"));          show_msg (dlg, 1500, _("GnuPG Status: Finished"));
120      gpgme_release (ctx);      gpgme_release (ctx);
121      free_if_alloc (signer);      free_if_alloc (signer);
122        release_gpg_passphrase_cb (&pwd);
123  }  }
124    
125    
# Line 243  clip_sign_dlg_proc (HWND dlg, UINT msg, Line 242  clip_sign_dlg_proc (HWND dlg, UINT msg,
242            
243      return FALSE;      return FALSE;
244  }  }
   

Legend:
Removed from v.68  
changed lines
  Added in v.77

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26