TlsCertificate.listNewFromFile

Creates one or more gio.TlsCertificates from the PEM-encoded data in file. If file cannot be read or parsed, the function will return NULL and set error. If file does not contain any PEM-encoded certificates, this will return an empty list and not set error.

class TlsCertificate
static
listNewFromFile
(
string file
)

Parameters

file string

file containing PEM-encoded certificates to import

Return Value

Type: ListG

a GList containing gio.TlsCertificate objects. You must free the list and its contents when you are done with it.

Throws

GException on failure.

Meta

Since

2.28