summaryrefslogtreecommitdiffstats
path: root/src/oauth/qoauthhttpserverreplyhandler_p.h
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@qt.io>2024-10-07 11:21:05 +0300
committerJuha Vuolle <juha.vuolle@qt.io>2024-11-14 15:14:37 +0200
commit741fd2b1cef4159aabbc90a870adf7450945eeac (patch)
tree81de792376ddacc8bacdffbadde112c175891a7e /src/oauth/qoauthhttpserverreplyhandler_p.h
parentea2787daf64a37d68606ac4ed54ea100af9a0147 (diff)
Add https support to QOAuthHttpServerReplyHandler
[ChangeLog][QOAuthHttpServerReplyHandler] Added support for https localhost server Fixes: QTBUG-64615 Change-Id: Ic28c74bb382642077e791ea1e6cd0b3ed9ee2264 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/oauth/qoauthhttpserverreplyhandler_p.h')
-rw-r--r--src/oauth/qoauthhttpserverreplyhandler_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/oauth/qoauthhttpserverreplyhandler_p.h b/src/oauth/qoauthhttpserverreplyhandler_p.h
index 391516a..57b8ff6 100644
--- a/src/oauth/qoauthhttpserverreplyhandler_p.h
+++ b/src/oauth/qoauthhttpserverreplyhandler_p.h
@@ -37,7 +37,7 @@ public:
QString callback() const;
- QTcpServer httpServer;
+ QTcpServer *httpServer = nullptr;
QString text;
QString path;
QHostAddress callbackAddress;
@@ -47,6 +47,8 @@ private:
void _q_clientConnected();
void _q_readData(QTcpSocket *socket);
void _q_answerClient(QTcpSocket *socket, const QUrl &url);
+ void initializeLocalServer();
+ bool listen(const QHostAddress &address, quint16 port);
struct QHttpRequest {
quint16 port = 0;