mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-07 06:32:08 +08:00
7ac52e2374
* 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> old-commit-hash: ec8b21c261b28d62dd84c2a6fa28bef09f5c8ed0
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();
|
|
}
|