[gnutls-devel] [PATCH 3/9] Add API to retrieve a X.509 or OpenPGP certificate from a gnutls_pcert_t

Armin Burgmeier armin at arbur.net
Mon Sep 22 21:58:53 CEST 2014


On Mon, 2014-09-22 at 09:03 +0200, Nikos Mavrogiannopoulos wrote:
> On Wed, Sep 17, 2014 at 6:26 PM, Armin Burgmeier <armin at arbur.net> wrote:
> >  /**
> > + * gnutls_pcert_get_type:
> > + * @pcert: The pcert structure.
> > + *
> > + * Returns the certificate type of @pcert, one of X.509 or OpenPGP.
> > + *
> > + * Returns: The certificate type.
> > + *
> > + * Since: 3.4.0
> > + */
> > +gnutls_certificate_type_t
> > +gnutls_pcert_get_type(gnutls_pcert_st * pcert)
> 
> Is this function necessary? As the structure is exported I'm wondering
> about the value of it...

Oh, I was under the impression the structure is private. If the fields
in the structure are part of the stable API then indeed, then indeed
there is no additional value. Sorry, I missed that.

Cheers,
Armin




More information about the Gnutls-devel mailing list