summaryrefslogtreecommitdiffstats
path: root/src/Net/Connection.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2008-09-06 03:15:06 +0200
committerMatthias Schiffer <matthias@gamezock.de>2008-09-06 03:15:06 +0200
commit7d5b81e9936b1c778fd6408f3f22478e9ab9486b (patch)
tree671e3f323d7298a5a0887302d6f1a397f5e0c1cd /src/Net/Connection.cpp
parentb961ec7011bb50785dbbc271592b84f3ebae6432 (diff)
downloadmad-7d5b81e9936b1c778fd6408f3f22478e9ab9486b.tar
mad-7d5b81e9936b1c778fd6408f3f22478e9ab9486b.zip
X.509-basierte TLS-Verbindung funktioniert
Diffstat (limited to 'src/Net/Connection.cpp')
-rw-r--r--src/Net/Connection.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Net/Connection.cpp b/src/Net/Connection.cpp
index 5d221fb..ac3121d 100644
--- a/src/Net/Connection.cpp
+++ b/src/Net/Connection.cpp
@@ -22,6 +22,8 @@
#include <cstring>
#include <sys/socket.h>
+#include <iostream>
+
namespace Mad {
namespace Net {
@@ -34,6 +36,8 @@ void Connection::doHandshake() {
if(ret == GNUTLS_E_INTERRUPTED || ret == GNUTLS_E_AGAIN)
return;
+ std::cerr << "Handshake error: " << gnutls_strerror(ret) << std::endl;
+
// TODO: Error
doDisconnect();
return;