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

Nikos Mavrogiannopoulos nmav at gnutls.org
Mon Sep 22 22:39:45 CEST 2014


On Mon, 2014-09-22 at 15:58 -0400, Armin Burgmeier 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.

No problem. I've removed this function.

regards,
Nikos





More information about the Gnutls-devel mailing list