Infinity.CertificateChain

Fields

None

Methods

class new (certs)
  get_n_certificates ()
  ref ()
  unref ()

Details

class Infinity.CertificateChain

Infinity.CertificateChain is an opaque data type. You should only access it via the public API functions.

classmethod new(certs)
Parameters:certs ([InfGnutls.X509Crt]) – Array of certificates.
Returns:A new Infinity.CertificateChain.
Return type:Infinity.CertificateChain

Creates a new Infinity.CertificateChain with the given certificates. The certs array needs to be allocated with GLib.malloc. This function takes ownership of certs.

get_n_certificates()
Returns:The number of certificates in self.
Return type:int

Returns the number of certificates in self.

ref()
Returns:The same self.
Return type:Infinity.CertificateChain

Increases the reference count of self by one.

unref()

Decreases the reference count of self by one. If the reference count reaches zero, then self is freed.