help-gnutls
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gnutls] Re: Failure to import an OpenPGP private key


From: Ludovic Courtès
Subject: [Help-gnutls] Re: Failure to import an OpenPGP private key
Date: Fri, 05 Jan 2007 13:57:23 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Hi,

Simon Josefsson <address@hidden> writes:

> However, your patch changes the external API/ABI, which is something
> we _really_ don't want to do unless we can avoid it.

Only `_gnutls' functions are changed so does that really count as an
API/ABI change (given that the `_gnutls' functions are not part of the
documented API and are not meant to be used by application programs)?

However, changing `_E_gnutls_openpgp_raw_privkey_to_gkey' may be an
issue (ABI change in `libgnutls-extra').

Also, my understanding was that the API/ABI policy may be less strict
for 1.7 than for 1.6?

> It seems a better patch would be to have
> _gnutls_openpgp_raw_privkey_to_gkey be able to figure out the format
> of the input automatically -- that seems possible to implement.  Just
> go over the input and look for non-ASCII characters (or just some
> specific non-ASCII character like \0, which I assume is guaranteed to
> always be present in OpenPGP binary keys, to avoid problems with
> non-ASCII characters in a Comment: field or similar), and set the
> armor flag accordingly.  What do you think?  If you agree, I'd
> appreciate if you could suggest a specific patch to implement this.

That seems like a fragile solution, especially since the information
(the input format) is already explicitly passed in
`gnutls_openpgp_privkey_import ()'.  That said, perhaps we could
implement this solution for 1.6 and keep the other one (or something
similar) for 1.7.  Would that be acceptable?

> Btw, to be able to use your patch, we'd might need a copyright
> assignment, if the patch is large..  would that be a problem?  I can
> send you the forms offline.

No problem, you can send it to me.

Thanks,
Ludovic.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]