From 18977911a7645333c1887bfbbee96520226b3989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Tue, 24 Sep 2019 17:52:24 +0800 Subject: Initialisation takes CA certificates file path and the URL is C string --- client.cxx | 4 ++-- librtclient | 2 +- qrtclient/client.hxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client.cxx b/client.cxx index 0127d26..ecc5c30 100644 --- a/client.cxx +++ b/client.cxx @@ -5,9 +5,9 @@ namespace RTClient { - Client::Client(QString const& url) + Client::Client(char const* url, char const* certificate) { - rtclient_init(url.toLatin1().constData()); + rtclient_init(url, certificate); } void Client::logIn(QString const& name, QString const& password) diff --git a/librtclient b/librtclient index ab559a9..a266783 160000 --- a/librtclient +++ b/librtclient @@ -1 +1 @@ -Subproject commit ab559a9b0a509d9bcf27b43b23f1944e7f595abc +Subproject commit a2667831d91ca18b9b8d41ad1d52a721103f8750 diff --git a/qrtclient/client.hxx b/qrtclient/client.hxx index 628472a..13b935a 100644 --- a/qrtclient/client.hxx +++ b/qrtclient/client.hxx @@ -14,7 +14,7 @@ namespace RTClient { Q_OBJECT public: - Client(QString const& url); + Client(char const* url, char const* certificate = NULL); ~Client(); public slots: -- cgit v1.2.3