49 this, &QNetworkAccessManager::sslErrors,
50 [
this, &parent](QNetworkReply *reply,
54 for (
auto const &error : errors) {
55 if (!allowed_ssl_errors_.contains(error)) {
58 reply->request().url().toDisplayString() +
59 ": " + error.errorString();
62 if (new_errors.size()) {
64 for (
auto const &cert :
65 reply->sslConfiguration().peerCertificateChain()) {
66 certs += cert.toText() +
'\n';
68 if (JS8MessageBox::Ignore ==
69 JS8MessageBox::query_message(
70 parent, tr(
"Network SSL Errors"), message, certs,
71 JS8MessageBox::Abort | JS8MessageBox::Ignore)) {
74 allowed_ssl_errors_.append(new_errors);
75 reply->ignoreSslErrors(allowed_ssl_errors_);
80 reply->ignoreSslErrors(allowed_ssl_errors_);