fix SSL errors in Qt UI on NEOS (#20225)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 60a9443b61
commatwo_master
parent
f8966cecae
commit
54df1204e8
3 changed files with 4 additions and 28 deletions
@ -1,22 +0,0 @@ |
||||
#include <QDebug> |
||||
#include <QApplication> |
||||
#include <QSslSocket> |
||||
#include <QNetworkProxy> |
||||
|
||||
int main(int argc, char **argv) { |
||||
QCoreApplication app(argc, argv); |
||||
QSslSocket socket; |
||||
|
||||
socket.setPeerVerifyMode(QSslSocket::VerifyNone); |
||||
|
||||
qDebug() << "Supports SSL: " << QSslSocket::supportsSsl(); |
||||
qDebug() << "Version: " << QSslSocket::sslLibraryVersionString() << " " << QSslSocket::sslLibraryVersionNumber(); |
||||
qDebug() << "Build Version: " << QSslSocket::sslLibraryBuildVersionString() << " " << QSslSocket::sslLibraryBuildVersionNumber(); |
||||
|
||||
socket.connectToHost("www.google.com", 443); |
||||
|
||||
socket.write("GET / HTTP/1.1rnrn"); |
||||
|
||||
while (socket.waitForReadyRead()) |
||||
qDebug() << socket.readAll().data(); |
||||
} |
Loading…
Reference in new issue