mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07: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:
parent
25dbea1388
commit
337730ddef
2 changed files with 15 additions and 19 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue