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

Diff of /trunk/Src/wptClipEncryptDlg.cpp

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

revision 272 by twoaday, Wed Aug 16 10:01:30 2006 UTC revision 273 by twoaday, Fri Dec 8 10:22:17 2006 UTC
# Line 57  gpg_clip_encrypt (gpgme_key_t rset[], in Line 57  gpg_clip_encrypt (gpgme_key_t rset[], in
57      err = gpgme_new (&ctx);      err = gpgme_new (&ctx);
58      if (err)      if (err)
59          return err;          return err;
60        
61      gpgme_set_armor (ctx, 1);      /* Recently a lot of users got in trouble because they enabled
62           the textmode even for non-text (binary) data. This leads to
63           serious trouble. But because our clipboard functions only support
64           the text format, the returned data is pure text or at least a
65           conversion of it so we can safely use the textmode here. */
66      gpgme_set_textmode (ctx, 1);      gpgme_set_textmode (ctx, 1);
67        gpgme_set_armor (ctx, 1);
68            
69      err = gpg_data_new_from_clipboard (&plain, 0);      err = gpg_data_new_from_clipboard (&plain, 0);
70      if (err)      if (err)

Legend:
Removed from v.272  
changed lines
  Added in v.273

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26