/[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 25 by twoaday, Wed Oct 12 10:04:26 2005 UTC revision 30 by twoaday, Sat Oct 22 10:17:59 2005 UTC
# Line 36  Line 36 
36  #include "wptContext.h" /* for passphrase_s */  #include "wptContext.h" /* for passphrase_s */
37  #include "wptDlgs.h"  #include "wptDlgs.h"
38    
39    
40  /* Sign the clipboard contents with the key @keyid and wrap  /* Sign the clipboard contents with the key @keyid and wrap
41     text lines to @wraplen (0 disable line wrapping).     text lines to @wraplen (0 disable line wrapping).
42     Return value: 0 on success. */     Return value: 0 on success. */
# Line 107  one_key_proc (HWND dlg) Line 108  one_key_proc (HWND dlg)
108    
109      set_gpg_passphrase_cb (&pwd, ctx, GPG_CMD_SIGN, dlg, _("Signing"));      set_gpg_passphrase_cb (&pwd, ctx, GPG_CMD_SIGN, dlg, _("Signing"));
110      err = gpg_clip_sign (ctx, signer, n );      err = gpg_clip_sign (ctx, signer, n );
111      memset (pwd.pwd, 0, sizeof pwd.pwd);      wipememory (pwd.pwd, sizeof (pwd.pwd));
112      if (gpgme_err_code (err) == GPG_ERR_BAD_PASSPHRASE)      if (gpgme_err_code (err) == GPG_ERR_BAD_PASSPHRASE)
113          agent_del_cache (pwd.keyid);          agent_del_cache (pwd.keyid);
114      if (err)      if (err)

Legend:
Removed from v.25  
changed lines
  Added in v.30

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26