318 |
err = gpgme_data_new (&out); |
err = gpgme_data_new (&out); |
319 |
if (!err) { |
if (!err) { |
320 |
gpgme_set_armor (gctx, 1); |
gpgme_set_armor (gctx, 1); |
321 |
|
gpgme_set_textmode (gctx, 1); |
322 |
err = gpgme_op_encrypt (gctx, keys, GPGME_ENCRYPT_ALWAYS_TRUST, in, out); |
err = gpgme_op_encrypt (gctx, keys, GPGME_ENCRYPT_ALWAYS_TRUST, in, out); |
323 |
} |
} |
324 |
|
|
396 |
err = gpgme_data_new (&out); |
err = gpgme_data_new (&out); |
397 |
if (!err) { |
if (!err) { |
398 |
gpgme_set_armor (gctx, 1); |
gpgme_set_armor (gctx, 1); |
399 |
|
gpgme_set_textmode (gctx, 1); |
400 |
gpgme_set_passphrase_cb (gctx, passphrase_cb, cb_val); |
gpgme_set_passphrase_cb (gctx, passphrase_cb, cb_val); |
401 |
err = gpgme_op_encrypt_sign (gctx, keys, GPGME_ENCRYPT_ALWAYS_TRUST, |
err = gpgme_op_encrypt_sign (gctx, keys, GPGME_ENCRYPT_ALWAYS_TRUST, |
402 |
in, out); |
in, out); |