Re: Problem with decrypt

2016-04-16 Thread Francis Le Roy
Hi,  I am using the  If(err) way to check if there is an error as GPG_ERR_NO_ERR is 0. But actually the gpgme_op_decrypt operation is successful. However, when I do something like : int len = gpgme_data_seek(plaintextdata, 0, SEEK_END); len is equal to zero.  So I assume that the data haven't bee

Problem with decrypt

2016-04-15 Thread Francis Le Roy
Hi, I'm trying to decrypt a cipher using gpgme. I have a correct cipher and have imported the private key but the plain result of gpgme_op_decrypt is empty. The error returned is GPG_ERR_NO_ERROR... Thanks. F. Please CC me, I haven't subscribed to the mailing list.

Decrypt without importing key to keyring

2016-02-24 Thread Francis Le Roy
Hi, is there a way to use a private key (PGP) to decrypt a message without adding it to the keyring. I don't want the private key to be written on the disk. I'm using gpgme in a C++ and I can't figure out 'transform' a gpgme_data_t object into gpgme_key_t without using the gpgme_op_import function.

General error when creating keypair

2015-12-29 Thread Francis Le Roy
Hi, I got a problem generating a key pair, when I run the code, it return a General error code :/. If you could give me a sample on how to gen a key or fix my code it would be nice :) your sincerely, F. gpgme_set_global_flag("debug", "9"); gpgme_set_global_flag("disable-gpgconf","1");

Create Process ec=87

2015-12-28 Thread Francis Le Roy
Hi, I am trying to use your librairy but when I try to check the OpenPGP engine's version, I get an error. Here is join the code I tried to run and the complete error log. Your sincerely, F. #include "../Student.h" #include "gpgme.h" #include using namespace std; void genKey(Sdt& student,int