# HG changeset patch # User William Ehlhardt # Date 1180572036 0 # Node ID 393cf111f36667f58669e79bad2adf31874407b3 # Parent b610b8e0c850c9e9e7ba3aa35c1d349063933369# Parent 15550eab4e27d9747199104c719a40f011eb4ed4 merge of 'b30d119437548516a2f7b28d4172f8fcd6238d10' and 'd7da32c69fe39372cde96fb7c4b454b673c75ea7' diff -r b610b8e0c850 -r 393cf111f366 libpurple/plugins/ssl/ssl-gnutls.c --- a/libpurple/plugins/ssl/ssl-gnutls.c Thu May 31 00:40:23 2007 +0000 +++ b/libpurple/plugins/ssl/ssl-gnutls.c Thu May 31 00:40:36 2007 +0000 @@ -137,10 +137,10 @@ else { /* Grab the first certificate and display some data about it */ - guchar fpr_bin[256]; /* Raw binary key fingerprint */ + gchar fpr_bin[256]; /* Raw binary key fingerprint */ gsize fpr_bin_sz = sizeof(fpr_bin); /* Size of above (used later) */ gchar * fpr_asc = NULL; /* ASCII representation of key fingerprint */ - guchar ser_bin[256]; /* Certificate Serial Number field */ + gchar ser_bin[256]; /* Certificate Serial Number field */ gsize ser_bin_sz = sizeof(ser_bin); gchar * ser_asc = NULL; gchar dn[1024]; /* Certificate Name field */ @@ -215,7 +215,7 @@ g_free(primary); g_free(secondary); - } /* End dialog construction */ + } /* Cleanup! */ @@ -223,7 +223,7 @@ g_free(ser_asc); gnutls_x509_crt_deinit(cert); - } /* if (0 == ... */ + } } static void ssl_gnutls_handshake_cb(gpointer data, gint source, @@ -259,7 +259,6 @@ const gnutls_datum_t *cert_list; unsigned int cert_list_size = 0; gnutls_session_t session=gnutls_data->session; - int i; cert_list = gnutls_certificate_get_peers(session, &cert_list_size); @@ -267,17 +266,16 @@ purple_debug_info("gnutls", "Peer provided %d certs\n", cert_list_size); - + int i; for (i=0; i