[gnutls-dev] External signing API

Alon Bar-Lev alon.barlev at gmail.com
Sun Aug 12 19:40:22 CEST 2007


On 8/12/07, Simon Josefsson <simon at josefsson.org> wrote:
> > 3. What do you expect the cert_type to be used? Can't it queried out the cert?
>
> No, the cert may be a PGP key, and this needs to be indicated somehow.
> I haven't tested that PGP signing works through this interface yet, but
> I think it makes sense to have cert_type there in case we support
> external signing for PGP keys in the future.

I don't understand why the type is not part of the certificate object...
type = gnutls_get_cert_type (cert);

This should be much cleaner than passing two variable to each method.

Alon.



More information about the Gnutls-dev mailing list