aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppServer.h
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2011-03-16 18:38:58 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2011-03-16 18:38:58 +0000
commit9f24c3aa24fa67554322c4e3b785aa6e92895642 (patch)
tree06764d72253e8e7d272de04e40f9559e4e815a14 /src/QXmppServer.h
parent1bd3eecff28c2b0d080102c26fd89dc3f56b4e09 (diff)
downloadqxmpp-9f24c3aa24fa67554322c4e3b785aa6e92895642.tar.gz
load SSL certificates & key only once, to reduce load when clients connect
Diffstat (limited to 'src/QXmppServer.h')
-rw-r--r--src/QXmppServer.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/QXmppServer.h b/src/QXmppServer.h
index 94eeb5a3..8ef61559 100644
--- a/src/QXmppServer.h
+++ b/src/QXmppServer.h
@@ -29,6 +29,8 @@
#include "QXmppLogger.h"
class QDomElement;
+class QSslCertificate;
+class QSslKey;
class QSslSocket;
class QXmppDialback;
@@ -74,8 +76,8 @@ public:
void setPasswordChecker(QXmppPasswordChecker *checker);
void addCaCertificates(const QString &caCertificates);
- void setLocalCertificate(const QString &sslCertificate);
- void setPrivateKey(const QString &sslKey);
+ void setLocalCertificate(const QString &path);
+ void setPrivateKey(const QString &path);
void close();
bool listenForClients(const QHostAddress &address = QHostAddress::Any, quint16 port = 5222);
@@ -125,9 +127,9 @@ public:
QXmppSslServer(QObject *parent = 0);
~QXmppSslServer();
- void addCaCertificates(const QString &caCertificates);
- void setLocalCertificate(const QString &localCertificate);
- void setPrivateKey(const QString &privateKey);
+ void addCaCertificates(const QList<QSslCertificate> &certificates);
+ void setLocalCertificate(const QSslCertificate &certificate);
+ void setPrivateKey(const QSslKey &key);
signals:
/// This signal is emitted when a new connection is established.