From 1a95c209fbe659b9d1416afbf8de9715618a3e01 Mon Sep 17 00:00:00 2001 From: Dario Date: Fri, 18 Oct 2019 10:00:10 +0200 Subject: [PATCH] =?UTF-8?q?=C3=A4h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cpp/Crypto/KeyPair.h | 2 +- src/cpp/Crypto/Obfus_array.cpp | 4 ++-- src/cpp/HTTPInterface/ElopageWebhook.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cpp/Crypto/KeyPair.h b/src/cpp/Crypto/KeyPair.h index 3c259a17e..28eee3041 100644 --- a/src/cpp/Crypto/KeyPair.h +++ b/src/cpp/Crypto/KeyPair.h @@ -8,7 +8,7 @@ #include class UserWriteKeysIntoDB; - +// TODO: https://libsodium.gitbook.io/doc/advanced/ed25519-curve25519 class KeyPair { friend UserWriteKeysIntoDB; diff --git a/src/cpp/Crypto/Obfus_array.cpp b/src/cpp/Crypto/Obfus_array.cpp index 8786b5351..8ae867bcf 100644 --- a/src/cpp/Crypto/Obfus_array.cpp +++ b/src/cpp/Crypto/Obfus_array.cpp @@ -12,7 +12,7 @@ ObfusArray::ObfusArray(size_t size, const unsigned char * data) m_offsetSize = randombytes_random() % (int)roundf((m_arraySize - m_dataSize) * 0.8f); - printf("[ObfusArray::ObfusArray] array_size: %d, start by: %d, size: %u, offset: %u\n", + printf("[ObfusArray::ObfusArray] array_size: %d, start by: %lld, size: %u, offset: %u\n", m_arraySize, m_Data, size, m_offsetSize); assert(m_arraySize - m_offsetSize >= size); @@ -20,7 +20,7 @@ ObfusArray::ObfusArray(size_t size, const unsigned char * data) uint32_t* d = (uint32_t*)m_Data; size_t dMax = (size_t)floorf(m_arraySize / 4.0f); - printf("d start by: %d, dMax: %u\n", d, dMax); + printf("d start by: %lld, dMax: %u\n", d, dMax); for (size_t i = 0; i < dMax; i++) { d[i] = randombytes_random(); } diff --git a/src/cpp/HTTPInterface/ElopageWebhook.cpp b/src/cpp/HTTPInterface/ElopageWebhook.cpp index 9f4714192..f366fc2be 100644 --- a/src/cpp/HTTPInterface/ElopageWebhook.cpp +++ b/src/cpp/HTTPInterface/ElopageWebhook.cpp @@ -24,7 +24,7 @@ using namespace Poco::Data::Keywords; void ElopageWebhook::handleRequest(Poco::Net::HTTPServerRequest& request, Poco::Net::HTTPServerResponse& response) { // simply write request to file for later lookup - //ServerConfig::writeToFile(request.stream(), "elopage_webhook_requests.txt"); + ServerConfig::writeToFile(request.stream(), "elopage_webhook_requests.txt"); std::istream& stream = request.stream();