adding tons of ifdefs so quassel will build again without ssl support
[quassel.git] / src / client / clientidentity.cpp
index 1d93d64..c8e8df9 100644 (file)
 #include "signalproxy.h"
 
 CertIdentity::CertIdentity(IdentityId id, QObject *parent)
 #include "signalproxy.h"
 
 CertIdentity::CertIdentity(IdentityId id, QObject *parent)
-  : Identity(id, parent),
-    _certManager(0),
+  : Identity(id, parent)
+#ifdef HAVE_SSL
+  ,  _certManager(0),
     _isDirty(false)
     _isDirty(false)
+#endif
 {
 }
 
 CertIdentity::CertIdentity(const Identity &other, QObject *parent)
 {
 }
 
 CertIdentity::CertIdentity(const Identity &other, QObject *parent)
-  : Identity(other, parent),
-    _certManager(0),
+  : Identity(other, parent)
+#ifdef HAVE_SSL
+  , _certManager(0),
     _isDirty(false)
     _isDirty(false)
+#endif
 {
 }
 
 CertIdentity::CertIdentity(const CertIdentity &other, QObject *parent)
 {
 }
 
 CertIdentity::CertIdentity(const CertIdentity &other, QObject *parent)
-  : Identity(other, parent),
-    _certManager(0),
+  : Identity(other, parent)
+#ifdef HAVE_SSL
+  , _certManager(0),
     _isDirty(other._isDirty),
     _sslKey(other._sslKey),
     _sslCert(other._sslCert)
     _isDirty(other._isDirty),
     _sslKey(other._sslKey),
     _sslCert(other._sslCert)
+#endif
 {
 }
 
 {
 }
 
+#ifdef HAVE_SSL
 void CertIdentity::enableEditSsl(bool enable) {
   if(!enable || _certManager)
     return;
 void CertIdentity::enableEditSsl(bool enable) {
   if(!enable || _certManager)
     return;
@@ -97,3 +104,6 @@ void ClientCertManager::setSslKey(const QByteArray &encoded) {
 void ClientCertManager::setSslCert(const QByteArray &encoded) {
   _certIdentity->setSslCert(QSslCertificate(encoded));
 }
 void ClientCertManager::setSslCert(const QByteArray &encoded) {
   _certIdentity->setSslCert(QSslCertificate(encoded));
 }
+
+
+#endif // HAVE_SSL