mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 16:07:23 -06:00
Simplify SSL parameters setup
Simplify code by utilizing QSslConfiguration object. Also don't mess with global default value via `QSslConfiguration::setDefaultConfiguration`. It should not be done at such local class.
This commit is contained in:
@@ -31,8 +31,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <QSet>
|
||||
#include <QSslCertificate>
|
||||
#include <QSslKey>
|
||||
#include <QSslConfiguration>
|
||||
#include <QTcpServer>
|
||||
|
||||
namespace Http
|
||||
@@ -63,7 +62,6 @@ namespace Http
|
||||
QSet<Connection *> m_connections; // for tracking persistent connections
|
||||
|
||||
bool m_https = false;
|
||||
QList<QSslCertificate> m_certificates;
|
||||
QSslKey m_key;
|
||||
QSslConfiguration m_sslConfig;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user