56 |
return err; |
return err; |
57 |
|
|
58 |
gpgme_set_armor (ctx, 1); |
gpgme_set_armor (ctx, 1); |
59 |
|
gpgme_set_textmode (ctx, 1); |
60 |
|
|
61 |
err = gpg_data_new_from_clipboard (&plain, 0); |
err = gpg_data_new_from_clipboard (&plain, 0); |
62 |
if (err) |
if (err) |
63 |
goto leave; |
goto leave; |
64 |
err = gpgme_data_new (&ciph); |
err = gpgme_data_new (&ciph); |
65 |
if (err) |
if (err) |
66 |
goto leave; |
goto leave; |
67 |
err = gpgme_op_encrypt (ctx, rset, |
err = gpgme_op_encrypt (ctx, rset, |
68 |
always_trust?GPGME_ENCRYPT_ALWAYS_TRUST : (gpgme_encrypt_flags_t)0, |
always_trust?GPGME_ENCRYPT_ALWAYS_TRUST : (gpgme_encrypt_flags_t)0, |
69 |
plain, ciph); |
plain, ciph); |