Index: trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
===================================================================
--- trunk/BNC/src/upload/bncrtnetuploadcaster.cpp	(revision 11124)
+++ trunk/BNC/src/upload/bncrtnetuploadcaster.cpp	(revision 11126)
@@ -1068,5 +1068,5 @@
     // -----------
     QByteArray hlpBufferServiceCrs;
-    if (sizeof(serviceCrs._name) > 0) {
+    if (serviceCrs._name[0]) { // no CRS messages for a custom transformation
         if (fmod(epoTime.gpssec(), _samplRtcmCrs) == 0.0) {
             memset(obuffer, 0, sizeof(obuffer));
@@ -1081,5 +1081,5 @@
     // --------
     QByteArray hlpBufferRtcmCrs;
-    if (sizeof(rtcmCrs._name) > 0) {
+    if (rtcmCrs._name[0]) {
         if (fmod(epoTime.gpssec(), _samplRtcmCrs) == 0.0) {
             memset(obuffer, 0, sizeof(obuffer));
Index: trunk/BNC/src/upload/bncuploadcaster.cpp
===================================================================
--- trunk/BNC/src/upload/bncuploadcaster.cpp	(revision 11124)
+++ trunk/BNC/src/upload/bncuploadcaster.cpp	(revision 11126)
@@ -80,8 +80,8 @@
   if (_ntripVersion == "2s") {
     if (!QSslSocket::supportsSsl()) {
-      emit(newMessage(
-          "For SSL support please install OpenSSL run-time libraries: Ntrip Version 2 is tried",
-          true));
-      _ntripVersion == "2";
+      // no fallback to Ntrip Version 2: user name and password would be sent
+      // unencrypted although an encrypted connection was configured
+      emit(newMessage(_mountpoint.toLatin1() + "@" + _casterOutHost.toLatin1() +
+          ": No SSL support, please install OpenSSL run-time libraries: no upload", true));
     } else {
       _secure = true;
@@ -150,6 +150,13 @@
       const QSslError& err = it.next();
       msg += err.errorString();
-    }
-    emit(newMessage(msg.toLatin1(), true));
+      if (it.hasNext()) {
+        msg += "; ";
+      }
+    }
+    if (_sslIgnoreErrors) {
+      _outSocket->ignoreSslErrors();
+      msg += " (ignored as configured)";
+    }
+    emit(newMessage(_mountpoint.toLatin1() + "@" + _casterOutHost.toLatin1() + ": " + msg.toLatin1(), true));
   }
 }
@@ -203,4 +210,8 @@
   }
 
+  if (_ntripVersion == "2s" && !_secure) { // no SSL support, see constructor
+    return;
+  }
+
   if (_outSocket != 0 &&
       _outSocket->state() == QAbstractSocket::ConnectedState) {
@@ -224,23 +235,23 @@
   _outSocket->setProxy(QNetworkProxy::NoProxy);
 
-  if (_sslIgnoreErrors) {
-    _outSocket->ignoreSslErrors();
-  } else {
-    bncSslConfig sslConfig = BNC_SSL_CONFIG;
-    QFile clientCrtFile(_crtFileName);
-    QFile privateKeyFile(_keyFileName);
-    if ( clientCrtFile.exists() && privateKeyFile.exists()) {
-      // set local certificate
-      clientCrtFile.open(QIODevice::ReadOnly);
-      QSslCertificate clientCrt(&clientCrtFile);
-      sslConfig.setLocalCertificate(clientCrt);
-      // set private key if available
-      privateKeyFile.open(QIODevice::ReadOnly);
-      QSslKey privateKey(&privateKeyFile, QSsl::Rsa);
-      sslConfig.setPrivateKey(privateKey);
-    }
-    _outSocket->setSslConfiguration(sslConfig);
-    connect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));
-  }
+  bncSslConfig sslConfig = BNC_SSL_CONFIG;
+  QFile clientCrtFile(_crtFileName);
+  QFile privateKeyFile(_keyFileName);
+  if ( clientCrtFile.exists() && privateKeyFile.exists()) {
+    // set local certificate
+    clientCrtFile.open(QIODevice::ReadOnly);
+    QSslCertificate clientCrt(&clientCrtFile);
+    sslConfig.setLocalCertificate(clientCrt);
+    // set private key if available
+    privateKeyFile.open(QIODevice::ReadOnly);
+    QSslKey privateKey(&privateKeyFile, QSsl::Rsa);
+    sslConfig.setPrivateKey(privateKey);
+  }
+  _outSocket->setSslConfiguration(sslConfig);
+  // Direct connection: the socket lives in this thread, the caster object in
+  // the main thread. The slot must run during the handshake, both for
+  // ignoreSslErrors() to take effect and to access _outSocket safely.
+  connect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)),
+          Qt::DirectConnection);
 
   if (!_proxy) {
