[pan2] another debug commit
- From: Heinrich MÃller <henmull src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2] another debug commit
- Date: Thu, 12 Apr 2012 17:06:42 +0000 (UTC)
commit 81d0b4712e3ddac4097f6ebc82af8dc9daf9836c
Author: Heinrich MÃller <henmull src gnome org>
Date: Thu Apr 12 19:06:21 2012 +0200
another debug commit
pan/data/cert-store.cc | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/pan/data/cert-store.cc b/pan/data/cert-store.cc
index 555520f..512060c 100644
--- a/pan/data/cert-store.cc
+++ b/pan/data/cert-store.cc
@@ -118,14 +118,14 @@ namespace pan
if (gnutls_x509_crt_init (&cert) < 0)
{
- g_error ("Error in initialization\n");
+ g_warning ("Error in initialization\n");
goto _fail;
}
cert_list = gnutls_certificate_get_peers (session, &cert_list_size);
if (cert_list == NULL)
{
- g_error ("No certificate found!\n");
+ g_warning ("No certificate found!\n");
goto _fail;
}
@@ -133,7 +133,7 @@ namespace pan
*/
if (gnutls_x509_crt_import (cert, &cert_list[0], GNUTLS_X509_FMT_DER) < 0)
{
- g_error ("Error parsing certificate!\n");
+ g_warning ("Error parsing certificate!\n");
goto _fail;
}
@@ -144,6 +144,9 @@ namespace pan
goto _fail;
}
+ // for debugging SSL certs let through everything(!)
+ if (_dbg_ssl) { fail = false; mydata->always_trust = 1; }
+
if (fail) goto _fail;
/* auto-add new cert if we always trust this server */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]