2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2017 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#include <QApplication>
|
|
|
|
#include <QMessageBox>
|
2017-09-21 11:24:07 +00:00
|
|
|
#include <QtNetwork>
|
|
|
|
|
|
|
|
QT_REQUIRE_CONFIG(ssl);
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#include "sslclient.h"
|
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
Q_INIT_RESOURCE(securesocketclient);
|
|
|
|
|
|
|
|
QApplication app(argc, argv);
|
|
|
|
|
|
|
|
if (!QSslSocket::supportsSsl()) {
|
2019-11-01 12:21:32 +00:00
|
|
|
QMessageBox::information(nullptr, "Secure Socket Client",
|
|
|
|
"This system does not support TLS.");
|
2011-04-27 10:05:43 +00:00
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
SslClient client;
|
|
|
|
client.show();
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
}
|