gtlscertificate: Add g_tls_certificate_is_same() function

* Certificate equality in PKIX in general is equality between
   the DER encoding of the certificates.

https://bugzilla.gnome.org/show_bug.cgi?id=681116
This commit is contained in:
Stef Walter
2012-08-01 10:41:02 +02:00
parent b913b0c29e
commit 6ddf40f301
4 changed files with 43 additions and 0 deletions

View File

@@ -78,6 +78,10 @@ GTlsCertificateFlags g_tls_certificate_verify (GTlsCertificate
GSocketConnectable *identity,
GTlsCertificate *trusted_ca);
GLIB_AVAILABLE_IN_2_34
gboolean g_tls_certificate_is_same (GTlsCertificate *cert_one,
GTlsCertificate *cert_two);
G_END_DECLS
#endif /* __G_TLS_CERTIFICATE_H__ */