Questions about GPGME
Werner Koch
wk at gnupg.org
Thu Feb 7 13:53:02 CET 2002
On Wed, 6 Feb 2002 21:40:04 +0100, Janico Greifenberg said:
> What I would like is are functions like
> gpgme_set_pubkeyring(char *file);
> gpgme_set_seckeyring(char *file);
> gpgme_set_no_default_keyring(int );
> or something like that simple setting the gpg options accordingly.
No we can't do this as this would bind the API to one specific backend.
> err = gpgme_data_new_from_mem(&in,str_out,strlen(str_out),1);
You should not use strlen() here because the signed data is in binary
format. Use the value you have in NREAD or force creation of an
armored signature using gpgme_set_armor before you do the sign.
--
Werner Koch Omnis enim res, quae dando non deficit, dum habetur
g10 Code GmbH et non datur, nondum habetur, quomodo habenda est.
Privacy Solutions -- Augustinus
More information about the Gnupg-devel
mailing list