From 7a2fdf3fd60a63c1a67986d9f83b321ea3758b9d Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sat, 19 Mar 2022 16:54:27 +0100 Subject: rbutil: Handle SSL certificate errors on first request. Qt uses the systems certificate store. On old(er) systems the root certificate might not be present, so checking the certificate from the rockbox.org server might fail. On startup we try to download the build-info file. If this fails with a certificate error allow the user to temporarily accept the rockbox.org certificate for all successive requests. Change-Id: I459e12d53286aaedea4db659d90a5e057c56801f --- utils/rbutilqt/rbutilqt.h | 1 + 1 file changed, 1 insertion(+) (limited to 'utils/rbutilqt/rbutilqt.h') diff --git a/utils/rbutilqt/rbutilqt.h b/utils/rbutilqt/rbutilqt.h index c507317fa2..9caa8a1267 100644 --- a/utils/rbutilqt/rbutilqt.h +++ b/utils/rbutilqt/rbutilqt.h @@ -72,6 +72,7 @@ class RbUtilQt : public QMainWindow bool m_auto; private slots: + void sslError(const QSslError& error, const QSslCertificate& peerCert); void shutdown(void); void about(void); void help(void); -- cgit v1.2.3