Infinity.CertificateChain¶
Fields¶
None
Methods¶
class |
|
|
|
|
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:
Creates a new
Infinity.CertificateChain
with the given certificates. The certs array needs to be allocated withGLib.malloc
. This function takes ownership of certs.
- get_n_certificates()¶
- Returns:
The number of certificates in self.
- Return type:
Returns the number of certificates in self.
- ref()¶
- Returns:
The same self.
- Return type:
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.