use sslConfiguration on socket
A public accessor and mutator was provided for using a QSslConfiguration with a QAmqpClient, however the configuration was never actually assigned to the internal socket. This patch fixes that, and removes the needless storage of a copy of the QSslConfiguration as well
This commit is contained in:
parent
c4524b5204
commit
99b0d32f3f
|
|
@ -789,17 +789,16 @@ QString QAmqpClient::errorString() const
|
|||
QSslConfiguration QAmqpClient::sslConfiguration() const
|
||||
{
|
||||
Q_D(const QAmqpClient);
|
||||
return d->sslConfiguration;
|
||||
return d->socket->sslConfiguration();
|
||||
}
|
||||
|
||||
void QAmqpClient::setSslConfiguration(const QSslConfiguration &config)
|
||||
{
|
||||
Q_D(QAmqpClient);
|
||||
d->sslConfiguration = config;
|
||||
|
||||
if (!config.isNull()) {
|
||||
d->useSsl = true;
|
||||
d->port = AMQP_SSL_PORT;
|
||||
d->socket->setSslConfiguration(config);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
#include <QSharedPointer>
|
||||
#include <QPointer>
|
||||
#include <QAbstractSocket>
|
||||
#include <QSslConfiguration>
|
||||
#include <QSslError>
|
||||
|
||||
#include "qamqpglobal.h"
|
||||
|
|
@ -101,8 +100,6 @@ public:
|
|||
QAMQP::Error error;
|
||||
QString errorString;
|
||||
|
||||
QSslConfiguration sslConfiguration;
|
||||
|
||||
QAmqpClient * const q_ptr;
|
||||
Q_DECLARE_PUBLIC(QAmqpClient)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue