mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-21 22:13:45 +08:00
ec8b21c261
* no outline * disable on qcom for now * fix qt 5.12.8 * cleanup drive stats * widgets cleanup * ssl test * revert that * disable by default Co-authored-by: Comma Device <device@comma.ai>
23 lines
711 B
C++
23 lines
711 B
C++
#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();
|
|
}
|