diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-05-30 19:33:47 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-05-30 19:33:47 +0200 |
| commit | ea39cc542e17ce592dc3c4f2053d534bc458d88e (patch) | |
| tree | c3c6a369d5b6d8a6a4e0b3e3667a56ca19e93173 /geminiclient.cpp | |
| parent | 79ff338a3427a236ef53adf806c56616faa3426c (diff) | |
| download | kristall-ea39cc542e17ce592dc3c4f2053d534bc458d88e.tar.gz | |
More usability, survives conmans torture nearly with 100%
Diffstat (limited to 'geminiclient.cpp')
| -rw-r--r-- | geminiclient.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/geminiclient.cpp b/geminiclient.cpp index 4a914a3..57e1679 100644 --- a/geminiclient.cpp +++ b/geminiclient.cpp @@ -7,6 +7,7 @@ GeminiClient::GeminiClient(QObject *parent) : QObject(parent) connect(&socket, &QSslSocket::encrypted, this, &GeminiClient::socketEncrypted); connect(&socket, &QSslSocket::readyRead, this, &GeminiClient::socketReadyRead); connect(&socket, &QSslSocket::disconnected, this, &GeminiClient::socketDisconnected); + connect(&socket, QOverload<const QList<QSslError> &>::of(&QSslSocket::sslErrors), this, &GeminiClient::sslErrors); } bool GeminiClient::startRequest(const QUrl &url) @@ -218,3 +219,12 @@ void GeminiClient::socketDisconnected() emit requestComplete(body, mime_type); } } + +void GeminiClient::sslErrors(const QList<QSslError> &errors) +{ + for(auto const & error : errors) { + qDebug() << error.errorString() ; + } + + socket.ignoreSslErrors(errors); +} |
