kit/ChildSession.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) New commits: commit 637324354d12c655259a0f54c81d676ac8bb24cf Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Thu Nov 29 23:45:52 2018 +0200 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Thu Nov 29 23:46:16 2018 +0200
Skip the signature uploading code for the mobile app case Change-Id: If634c5b1ff77e6a56c9a195d9394c4d2906419cb diff --git a/kit/ChildSession.cpp b/kit/ChildSession.cpp index 114a89a96..856940c96 100644 --- a/kit/ChildSession.cpp +++ b/kit/ChildSession.cpp @@ -25,11 +25,13 @@ #include <Poco/URI.h> #include <Poco/BinaryReader.h> #include <Poco/Base64Decoder.h> +#ifndef MOBILEAPP #include <Poco/Net/HTTPResponse.h> #include <Poco/Net/HTTPSClientSession.h> #include <Poco/Net/SSLManager.h> #include <Poco/Net/KeyConsoleHandler.h> #include <Poco/Net/AcceptCertificateHandler.h> +#endif #include <common/FileUtil.hpp> #include <common/JsonUtil.hpp> @@ -365,10 +367,12 @@ bool ChildSession::_handleInput(const char *buffer, int length) { askSignatureStatus(buffer, length, tokens); } +#ifndef MOBILEAPP else if (tokens[0] == "uploadsigneddocument") { return uploadSignedDocument(buffer, length, tokens); } +#endif else { assert(false && "Unknown command token."); @@ -378,6 +382,8 @@ bool ChildSession::_handleInput(const char *buffer, int length) return true; } +#ifndef MOBILEAPP + // add to common / tools size_t getFileSize(const std::string& filename) { @@ -509,6 +515,8 @@ bool ChildSession::uploadSignedDocument(const char* buffer, int length, const st return true; } +#endif + bool ChildSession::loadDocument(const char * /*buffer*/, int /*length*/, const std::vector<std::string>& tokens) { int part = -1; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits