From b34168b57020b13ba030de63273784692b3b555a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Wed, 25 Jan 2023 21:18:05 +0800 Subject: Writes/reads to/from a cookie file --- interchange.cxx | 5 +++-- interchange.hxx | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/interchange.cxx b/interchange.cxx index 5a574e0..5b39309 100644 --- a/interchange.cxx +++ b/interchange.cxx @@ -5,10 +5,11 @@ namespace QInterchange { static Interchange* interchange; - Interchange::Interchange(char const* sampleURL, char const* image_Dir, char const* certificate) + Interchange::Interchange(char const* sampleURL, char const* image_Dir, + char const* cookie, char const* certificate) { interchange = this; - interchange_init(sampleURL, image_Dir, certificate); + interchange_init(sampleURL, image_Dir, cookie, certificate); } Interchange::~Interchange() diff --git a/interchange.hxx b/interchange.hxx index 37b7f5f..361334d 100644 --- a/interchange.hxx +++ b/interchange.hxx @@ -17,9 +17,13 @@ namespace QInterchange { * \brief Constructor. * \param sampleURL The value of the SAMPLEURL setting in products/variable.txt. * \param image_Dir The value of the IMAGE_DIR setting in products/variable.txt. + * \param certificate Path to the cookie file. * \param certificate Path to the CA certificate file. */ - Interchange(char const* sampleURL, char const* image_Dir, char const* certificate = nullptr); + Interchange(char const* sampleURL, + char const* image_Dir, + char const* cookie = nullptr, + char const* certificate = nullptr); /*! * \brief Destructor. */ -- cgit v1.2.3