#include "client.h"
#include "signalproxy.h"
-INIT_SYNCABLE_OBJECT(CertIdentity)
CertIdentity::CertIdentity(IdentityId id, QObject *parent)
: Identity(id, parent)
-#ifdef HAVE_SSL
- , _certManager(0),
- _isDirty(false)
-#endif
{
}
CertIdentity::CertIdentity(const Identity &other, QObject *parent)
: Identity(other, parent)
-#ifdef HAVE_SSL
- , _certManager(0),
- _isDirty(false)
-#endif
{
}
CertIdentity::CertIdentity(const CertIdentity &other, QObject *parent)
: 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
{
}
void ClientCertManager::setSslKey(const QByteArray &encoded)
{
QSslKey key(encoded, QSsl::Rsa);
-#if QT_VERSION >= 0x050500
if (key.isNull() && Client::isCoreFeatureEnabled(Quassel::Feature::EcdsaCertfpKeys))
key = QSslKey(encoded, QSsl::Ec);
-#endif
if (key.isNull())
key = QSslKey(encoded, QSsl::Dsa);
_certIdentity->setSslKey(key);
_certIdentity->setSslCert(QSslCertificate(encoded));
}
-
#endif // HAVE_SSL