(maybe) fix builds for Qt without SSL

This commit is contained in:
Matthias Koefferlein 2022-12-06 22:40:41 +01:00
parent dc6408a068
commit 4281cde169
2 changed files with 6 additions and 0 deletions

View File

@ -263,7 +263,9 @@ InputHttpStreamPrivateData::InputHttpStreamPrivateData (InputHttpStream *stream,
s_auth_handler = new AuthenticationHandler ();
connect (s_network_manager, SIGNAL (authenticationRequired (QNetworkReply *, QAuthenticator *)), s_auth_handler, SLOT (authenticationRequired (QNetworkReply *, QAuthenticator *)));
connect (s_network_manager, SIGNAL (proxyAuthenticationRequired (const QNetworkProxy &, QAuthenticator *)), s_auth_handler, SLOT (proxyAuthenticationRequired (const QNetworkProxy &, QAuthenticator *)));
#if !defined(QT_NO_SSL)
connect (s_network_manager, SIGNAL (sslErrors (QNetworkReply *, const QList<QSslError> &)), this, SLOT (sslErrors (QNetworkReply *, const QList<QSslError> &)));
#endif
tl::StaticObjects::reg (&s_network_manager);
tl::StaticObjects::reg (&s_auth_handler);
@ -515,6 +517,7 @@ InputHttpStreamPrivateData::read (char *b, size_t n)
return data.size ();
}
#if !defined(QT_NO_SSL)
void
InputHttpStreamPrivateData::sslErrors (QNetworkReply *, const QList<QSslError> &errors)
{
@ -528,6 +531,7 @@ InputHttpStreamPrivateData::sslErrors (QNetworkReply *, const QList<QSslError> &
m_ssl_errors += "\"";
}
}
#endif
void
InputHttpStreamPrivateData::reset ()

View File

@ -108,7 +108,9 @@ public:
private slots:
void finished (QNetworkReply *);
void resend ();
#if !defined(QT_NO_SSL)
void sslErrors (QNetworkReply *reply, const QList<QSslError> &errors);
#endif
private:
std::string m_url;