/pidgin/main: 91614b18b992: GnuTLS: remove deprecated call to gn...
Tomasz Wasilczyk
tomkiewicz at cpw.pidgin.im
Tue Aug 13 04:12:34 EDT 2013
Changeset: 91614b18b992d6e8554dedf62ed4ad155ec0b7b4
Author: Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date: 2013-08-13 10:12 +0200
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/91614b18b992
Description:
GnuTLS: remove deprecated call to gnutls_certificate_type_set_priority, since priority is already set; make use of SNI extension
diffstat:
libpurple/plugins/ssl/ssl-gnutls.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (22 lines):
diff --git a/libpurple/plugins/ssl/ssl-gnutls.c b/libpurple/plugins/ssl/ssl-gnutls.c
--- a/libpurple/plugins/ssl/ssl-gnutls.c
+++ b/libpurple/plugins/ssl/ssl-gnutls.c
@@ -386,7 +386,6 @@ static void
ssl_gnutls_connect(PurpleSslConnection *gsc)
{
PurpleSslGnutlsData *gnutls_data;
- static const int cert_type_priority[2] = { GNUTLS_CRT_X509, 0 };
gnutls_data = g_new0(PurpleSslGnutlsData, 1);
gsc->private_data = gnutls_data;
@@ -413,8 +412,8 @@ ssl_gnutls_connect(PurpleSslConnection *
gnutls_set_default_priority(gnutls_data->session);
#endif
- gnutls_certificate_type_set_priority(gnutls_data->session,
- cert_type_priority);
+ gnutls_server_name_set(gnutls_data->session, GNUTLS_NAME_DNS, gsc->host,
+ strlen(gsc->host));
gnutls_credentials_set(gnutls_data->session, GNUTLS_CRD_CERTIFICATE,
xcred);
More information about the Commits
mailing list