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) |