Index: trunk/BNC/src/upload/bncuploadcaster.cpp
===================================================================
--- trunk/BNC/src/upload/bncuploadcaster.cpp	(revision 9737)
+++ trunk/BNC/src/upload/bncuploadcaster.cpp	(revision 9738)
@@ -64,6 +64,4 @@
 
   _sslIgnoreErrors = (Qt::CheckState(settings.value("sslIgnoreErrors").toInt()) == Qt::Checked);
-
-  qRegisterMetaType<QList<QSslError> >("QList<QSslError>");
 
   _proxyOutHost = settings.value("proxyHost").toString();
@@ -196,5 +194,4 @@
 void bncUploadCaster::open() {
   const int timeOut = 5000;  // 5 seconds
-  bncSslConfig sslConfig;
   QByteArray msg;
 
@@ -222,6 +219,7 @@
 
   _outSocket = new QSslSocket();
+  _outSocket->setSslConfiguration(BNC_CORE->sslConfiguration());
   _outSocket->setProxy(QNetworkProxy::NoProxy);
-  _outSocket->setSslConfiguration(sslConfig);
+
   connect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed()));
   connect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));
@@ -339,6 +337,6 @@
 
 void bncUploadCaster::slotSslSocketConnectionClosed() {
-  disconnect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed()));
-  disconnect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));
+//  disconnect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed()));
+//  disconnect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));
   emit(newMessage("slotSslSocketConnectionClosed", true));
   if (_outSocket) {
