aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2010-08-13 00:47:42 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2010-08-13 22:22:24 +0800
commit20a75e4d53bb2b72de3f2fc535956a9ad57b9eb4 (patch)
tree7257d0825d56ffc3929f54b0dbae270dd6be2cc1 /libempathy
parent8d376fae7df339ead4ab9ef2ae588e2762849ccf (diff)
downloadgsoc2013-empathy-20a75e4d53bb2b72de3f2fc535956a9ad57b9eb4.tar
gsoc2013-empathy-20a75e4d53bb2b72de3f2fc535956a9ad57b9eb4.tar.gz
gsoc2013-empathy-20a75e4d53bb2b72de3f2fc535956a9ad57b9eb4.tar.bz2
gsoc2013-empathy-20a75e4d53bb2b72de3f2fc535956a9ad57b9eb4.tar.lz
gsoc2013-empathy-20a75e4d53bb2b72de3f2fc535956a9ad57b9eb4.tar.xz
gsoc2013-empathy-20a75e4d53bb2b72de3f2fc535956a9ad57b9eb4.tar.zst
gsoc2013-empathy-20a75e4d53bb2b72de3f2fc535956a9ad57b9eb4.zip
Cosmetic changes
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tls-verifier.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libempathy/empathy-tls-verifier.c b/libempathy/empathy-tls-verifier.c
index 07beda63b..e1ec7ee6d 100644
--- a/libempathy/empathy-tls-verifier.c
+++ b/libempathy/empathy-tls-verifier.c
@@ -182,6 +182,8 @@ verify_certificate (EmpathyTLSVerifier *self,
res = gnutls_x509_crt_verify (cert, &issuer, 1, 0, &verify_output);
+ DEBUG ("Verifying %p against %p, output %u", cert, issuer, verify_output);
+
return verification_output_to_reason (res, verify_output, reason);
}
@@ -368,20 +370,21 @@ get_number_and_type_of_certificates (gnutls_datum_t *datum,
gnutls_x509_crt_fmt_t *format)
{
gnutls_x509_crt_t fake;
- gint retval = 1;
+ guint retval = 1;
gint res;
- res = gnutls_x509_crt_list_import (&fake, (guint *) &retval, datum,
- GNUTLS_X509_FMT_PEM, 0);
+ res = gnutls_x509_crt_list_import (&fake, &retval, datum,
+ GNUTLS_X509_FMT_PEM, GNUTLS_X509_CRT_LIST_IMPORT_FAIL_IF_EXCEED);
if (res == GNUTLS_E_SHORT_MEMORY_BUFFER || res > 0)
{
+ DEBUG ("Found PEM, with %u certificates", retval);
*format = GNUTLS_X509_FMT_PEM;
return retval;
}
/* try DER */
- res = gnutls_x509_crt_list_import (&fake, (guint *) &retval, datum,
+ res = gnutls_x509_crt_list_import (&fake, &retval, datum,
GNUTLS_X509_FMT_DER, 0);
if (res > 0)