On Fri, May 31, 2013 at 12:12 PM, Petr Vanek <[email protected]> wrote: >> I think then the issue is that this is an encrypted key. Encrypted >> openpgp keys are not supported. You need to export it without a >> password in order to use it with the gnutls functions. > ah thanks! > It works when I remove a password from the priv key by gpg. > Nikos, just a question - how hard would be to add this (password > protected key parsing) feature to gnutls? Where is the place where to > start investigation: gnutls or nettle?
You should start from gnutls_openpgp_privkey_import(). Adding support for password-protected files would require you possibly to modify the opencdk/ part of the library, and possibly implement CFB mode of decryption (that one would be best handled in nettle). Overall it shouldn't be much of work. regards, Nikos _______________________________________________ Gnutls-help mailing list [email protected] http://lists.gnupg.org/mailman/listinfo/gnutls-help
