Re: Parse LISTKEYS output

2015-06-05 Thread Dmitry Falko
Thanks to all who responded! 05.06.2015 13:05, Werner Koch wrote: On Fri, 5 Jun 2015 11:39, dfa...@digiflak.com said: Sorry, I read gpgme manual one more time, and find all i need. For reference: The following GPGME fucntion can be used: -- Function: gpgme_error_t gpgme_op_import_keys (gpg

Re: Parse LISTKEYS output

2015-06-05 Thread Werner Koch
On Fri, 5 Jun 2015 11:39, dfa...@digiflak.com said: > Sorry, I read gpgme manual one more time, and find all i need. For reference: The following GPGME fucntion can be used: -- Function: gpgme_error_t gpgme_op_import_keys (gpgme_ctx_t CTX, gpgme_key_t *KEYS) The function ‘gpgme_o

Re: Parse LISTKEYS output

2015-06-05 Thread Dmitry Falko
Sorry, I read gpgme manual one more time, and find all i need. 05.06.2015 12:29, Dmitry Falko пишет: I can't use gpgme, because it doesn't have(or I couldn't find) specific functions. I need IMPORT key function with --re-import flag. I do it from C and use libassuan. I do something like this:

Re: Parse LISTKEYS output

2015-06-05 Thread Dmitry Falko
I can't use gpgme, because it doesn't have(or I couldn't find) specific functions. I need IMPORT key function with --re-import flag. I do it from C and use libassuan. I do something like this: gpgsm --server OPTION list-mode=3 LISTKEYS t...@example.com <-- this command return colon-separated i

Re: Parse LISTKEYS output

2015-06-04 Thread Neal H. Walfield
Hi, At Thu, 04 Jun 2015 12:06:42 +0300, Dmitry Falko wrote: > Is there a common way to parse data returned from LISTKEYS > command. Callback function receives buffer with colon-separated > information about certificate, > i need fingerprint to use it with IMPORT --re-import command. Are you runni

Parse LISTKEYS output

2015-06-04 Thread Dmitry Falko
Hi! Is there a common way to parse data returned from LISTKEYS command. Callback function receives buffer with colon-separated information about certificate, i need fingerprint to use it with IMPORT --re-import command. -- Best Regards! ___ Gnupg-