2 questions regarding gpgme and keyrings

folkert folkert at vanheusden.com
Thu Aug 14 15:04:13 CEST 2014

> > - how can I set the filesystem location of the keyring from WITHIN my
> >   application so that gpgme looks in the right location?
>     err = gpgme_set_engine_info (GPGME_PROTOCOL_OpenPGP,
>                                  NULL, "/my/other/gnupg/homedir");
> That is you can't give the location of a keyring but you need top
> provide another homedir.  The keyring is a detail of the gpg and paying
> with it should in general be avoided.  Note that 2.1 uses by default the
> faster keybox and shares that with gpgsm.

Ok thanks

> > - when encrypting data from some-one, how can I set the public key
> >   using the regular ascii encoding of a key using a function call? e.g.
> >   so that it does not retrieve it from a key ring but as an ascii-string
> First import that key and the use it.

But that'll try to write to the key ring files right?

Folkert van Heusden

To MultiTail einai ena polymorfiko ergaleio gia ta logfiles kai tin
eksodo twn entolwn. Prosferei: filtrarisma, xrwmatismo, sygxwneysi,
diaforetikes provoles. http://www.vanheusden.com/multitail/
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com

More information about the Gnupg-devel mailing list