This patch changes the behavior of the following functions:
g_tls_certificate_new_from_pem g_tls_certificate_new_from_file g_tls_certificate_new_from_files
If more than one certificate is found it will try to load the chain.
It is assumed that the chain will be in the right order (top-level certificate will be the last one in the file). If the chain cannot be
verified, the first certificate in the file will be returned as before.
https://bugzilla.gnome.org/show_bug.cgi?id=729739
da053e3 tlscertificate: add support for certificate chains
gio/gtlscertificate.c | 230 +++++++++++++++++++++++++++++++++++++++----------
1 file changed, 184 insertions(+), 46 deletions(-)
Upstream: git.gnome.org