diff options
author | Debarshi Ray <debarshir@gnome.org> | 2017-03-16 19:50:40 +0100 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2017-05-26 13:04:05 -0500 |
commit | 1e232c9a7330e5d048b89619deffa78b5db87fae (patch) | |
tree | 95be3a7ccbbc44dc618916c5a5b977c5a2c820b9 /libempathy/empathy-utils.c | |
parent | d4d8e7e854eecc6aae121fe497f131207c29c672 (diff) | |
download | empathy-webkit2-backport.tar.gz |
Remove the GnuTLS dependencywebkit2-backport
GIO, backed by glib-networking, has everything that we need.
https://bugzilla.gnome.org/show_bug.cgi?id=780160
Diffstat (limited to 'libempathy/empathy-utils.c')
-rw-r--r-- | libempathy/empathy-utils.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c index e83493736..88e28b8dd 100644 --- a/libempathy/empathy-utils.c +++ b/libempathy/empathy-utils.c @@ -20,10 +20,6 @@ * Authors: Richard Hult <richard@imendio.com> * Martyn Russell <martyn@imendio.com> * Xavier Claessens <xclaesse@gmail.com> - * - * Some snippets are taken from GnuTLS 2.8.6, which is distributed under the - * same GNU Lesser General Public License 2.1 (or later) version. See - * empathy_get_x509_certified_hostname (). */ #include "config.h" @@ -649,37 +645,6 @@ empathy_folks_persona_is_interesting (FolksPersona *persona) } gchar * -empathy_get_x509_certificate_hostname (gnutls_x509_crt_t cert) -{ - gchar dns_name[256]; - gsize dns_name_size; - gint idx; - gint res = 0; - - /* this snippet is taken from GnuTLS. - * see gnutls/lib/x509/rfc2818_hostname.c - */ - for (idx = 0; res >= 0; idx++) - { - dns_name_size = sizeof (dns_name); - res = gnutls_x509_crt_get_subject_alt_name (cert, idx, - dns_name, &dns_name_size, NULL); - - if (res == GNUTLS_SAN_DNSNAME || res == GNUTLS_SAN_IPADDRESS) - return g_strndup (dns_name, dns_name_size); - } - - dns_name_size = sizeof (dns_name); - res = gnutls_x509_crt_get_dn_by_oid (cert, GNUTLS_OID_X520_COMMON_NAME, - 0, 0, dns_name, &dns_name_size); - - if (res >= 0) - return g_strndup (dns_name, dns_name_size); - - return NULL; -} - -gchar * empathy_format_currency (gint amount, guint scale, const gchar *currency) |