From 18977911a7645333c1887bfbbee96520226b3989 Mon Sep 17 00:00:00 2001 From: ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ 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.3