/***************************************************************************
- * Copyright (C) 2005-08 by the Quassel Project *
+ * Copyright (C) 2005-09 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
#include "signalproxy.h"
CertIdentity::CertIdentity(IdentityId id, QObject *parent)
- : Identity(id, parent),
- _certManager(0),
+ : Identity(id, parent)
+#ifdef HAVE_SSL
+ , _certManager(0),
_isDirty(false)
+#endif
{
}
CertIdentity::CertIdentity(const Identity &other, QObject *parent)
- : Identity(other, parent),
- _certManager(0),
+ : Identity(other, parent)
+#ifdef HAVE_SSL
+ , _certManager(0),
_isDirty(false)
+#endif
{
}
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)
+#endif
{
}
+#ifdef HAVE_SSL
void CertIdentity::enableEditSsl(bool enable) {
if(!enable || _certManager)
return;
void ClientCertManager::setSslCert(const QByteArray &encoded) {
_certIdentity->setSslCert(QSslCertificate(encoded));
}
+
+
+#endif // HAVE_SSL