Importing and using keys with GPGME
wk at gnupg.org
Mon May 6 14:55:01 CEST 2002
On Mon, 6 May 2002 08:26:59 +0200, Janico Greifenberg said:
> when I import a public key with gpgme_op_import() the key appears in my keyring
> but when I want to use it for encryption (with gpgme_op_encrypt_sign()) I get
> a GPGME_No_Data Error. When I use this key with gpg in the command line, I need
In general it does not make sense to encrypt something to someone whom
you don't trust. So the best way is to locally sign the sign.
gpgme_recipients_add_name_with_validity (rset, name, GPGME_VALIDITY_FULL);
you should be able to overide it.
More information about the Gnupg-devel