You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by jb...@apache.org on 2018/04/06 23:17:28 UTC
[geode-native] branch develop updated: GEODE-4994: Fix windows
compilation (#266)
This is an automated email from the ASF dual-hosted git repository.
jbarrett pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git
The following commit(s) were added to refs/heads/develop by this push:
new e4795be GEODE-4994: Fix windows compilation (#266)
e4795be is described below
commit e4795bebce105eed1aca8ceeb8cd747a0c10b09a
Author: Ryan McMahon <rm...@pivotal.io>
AuthorDate: Fri Apr 6 16:17:26 2018 -0700
GEODE-4994: Fix windows compilation (#266)
* GEODE-4994: Fix windows compilation
Signed-off-by: Ryan McMahon <rm...@pivotal.io>
Signed-off-by: Michael Oleske <mo...@pivotal.io>
---
.../integration-test/testXmlCacheCreationWithPools.cpp | 9 +++++----
cryptoimpl/DHImpl.cpp | 9 +--------
dhimpl/DHImpl.cpp | 3 +--
tests/cpp/testobject/BatchObject.hpp | 15 ++++++++-------
tests/cpp/testobject/DeltaFastAssetAccount.hpp | 10 ++++------
tests/cpp/testobject/DeltaPSTObject.hpp | 17 +++++++++--------
tests/cpp/testobject/EqStruct.hpp | 15 ++++++++-------
tests/cpp/testobject/PSTObject.hpp | 15 ++++++++-------
8 files changed, 44 insertions(+), 49 deletions(-)
diff --git a/cppcache/integration-test/testXmlCacheCreationWithPools.cpp b/cppcache/integration-test/testXmlCacheCreationWithPools.cpp
index d4f64c0..18be4bf 100644
--- a/cppcache/integration-test/testXmlCacheCreationWithPools.cpp
+++ b/cppcache/integration-test/testXmlCacheCreationWithPools.cpp
@@ -15,15 +15,16 @@
* limitations under the License.
*/
-#include <string>
+#include <inttypes.h>
+#include <cstdint>
#include <iostream>
+#include <string>
#include <vector>
-#include <cstdint>
-
-#include "fw_dunit.hpp"
#include <geode/internal/chrono/duration.hpp>
+#include "fw_dunit.hpp"
+
#define CLIENT1 s1p1
#define SERVER1 s2p1
#define SERVER2 s2p2
diff --git a/cryptoimpl/DHImpl.cpp b/cryptoimpl/DHImpl.cpp
index 32a65eb..0017774 100644
--- a/cryptoimpl/DHImpl.cpp
+++ b/cryptoimpl/DHImpl.cpp
@@ -99,35 +99,29 @@ ASN1_SEQUENCE(
dhimpl->m_dh = DH_new();
-
const BIGNUM *pbn, *gbn;
DH_get0_pqg(dhimpl->m_dh, &pbn, NULL, &gbn);
BN_dec2bn((BIGNUM **)&pbn, dhP);
- LOGDH(" DHInit: BN_dec2bn dhP ret %d", ret);
LOGDH(" DHInit: P ptr is %p", pbn);
LOGDH(" DHInit: G ptr is %p", gbn);
LOGDH(" DHInit: length is %d", DH_get_length(dhimpl->m_dh));
BN_dec2bn((BIGNUM **)&gbn, dhG);
- LOGDH(" DHInit: BN_dec2bn dhG ret %d", ret);
DH_set_length(dhimpl->m_dh, dhL);
DH_generate_key(dhimpl->m_dh);
- LOGDH(" DHInit: DH_generate_key ret %d", ret);
const BIGNUM *pub_key, *priv_key;
DH_get0_key(dhimpl->m_dh, &pub_key, &priv_key);
BN_num_bits(priv_key);
- LOGDH(" DHInit: BN_num_bits priv_key is %d", ret);
BN_num_bits(pub_key);
- LOGDH(" DHInit: BN_num_bits pub_key is %d", ret);
int codes = 0;
DH_check(dhimpl->m_dh, &codes);
- LOGDH(" DHInit: DH_check ret %d : codes is 0x%04X", ret, codes);
+ LOGDH(" DHInit: DH_check codes is 0x%04X", codes);
LOGDH(" DHInit: DH_size is %d", DH_size(dhimpl->m_dh));
// load the server's RSA public key for server authentication
@@ -371,7 +365,6 @@ unsigned char *gf_encryptDH(void *dhCtx, const unsigned char *cleartext,
int keySize = dhimpl->m_keySize > 128 ? dhimpl->m_keySize / 8 : 16;
EVP_EncryptInit_ex(ctx, cipherFunc, NULL, NULL,
(unsigned char *)dhimpl->m_key + keySize);
- LOGDH("DHencrypt: init BF ret %d", ret);
EVP_CIPHER_CTX_set_key_length(ctx, keySize);
LOGDH("DHencrypt: BF keysize is %d", keySize);
EVP_EncryptInit_ex(ctx, NULL, NULL, (unsigned char *)dhimpl->m_key, NULL);
diff --git a/dhimpl/DHImpl.cpp b/dhimpl/DHImpl.cpp
index 44c2316..e8a15c3 100644
--- a/dhimpl/DHImpl.cpp
+++ b/dhimpl/DHImpl.cpp
@@ -100,7 +100,7 @@ ASN1_SEQUENCE(
int codes = 0;
DH_check(m_dh, &codes);
- LOGDH(" DHInit: DH_check ret %d : codes is 0x%04X", ret, codes);
+ LOGDH(" DHInit: DH_check codes is 0x%04X", codes);
LOGDH(" DHInit: DH_size is %d", DH_size(m_dh));
// load the server's RSA public key for server authentication
@@ -336,7 +336,6 @@ unsigned char *gf_encryptDH(const unsigned char *cleartext, int len,
int keySize = m_keySize > 128 ? m_keySize / 8 : 16;
EVP_EncryptInit_ex(ctx, cipherFunc, NULL, NULL,
(unsigned char *)m_key + keySize);
- LOGDH("DHencrypt: init BF ret %d", ret);
EVP_CIPHER_CTX_set_key_length(ctx, keySize);
LOGDH("DHencrypt: BF keysize is %d", keySize);
EVP_EncryptInit_ex(ctx, NULL, NULL, (unsigned char *)m_key, NULL);
diff --git a/tests/cpp/testobject/BatchObject.hpp b/tests/cpp/testobject/BatchObject.hpp
index d73c3b0..32c05d0 100644
--- a/tests/cpp/testobject/BatchObject.hpp
+++ b/tests/cpp/testobject/BatchObject.hpp
@@ -20,23 +20,24 @@
#ifndef GEODE_TESTOBJECT_BATCHOBJECT_H_
#define GEODE_TESTOBJECT_BATCHOBJECT_H_
-/*
- * @brief User class for testing the cq functionality.
- */
-
+#include <inttypes.h>
#include <string>
-#include "fwklib/Timer.hpp"
-#include "fwklib/FrameworkTest.hpp"
-#include "TimestampedObject.hpp"
+
#include <ace/ACE.h>
#include <ace/OS.h>
#include <ace/Time_Value.h>
+#include "fwklib/Timer.hpp"
+#include "fwklib/FrameworkTest.hpp"
+#include "TimestampedObject.hpp"
#include "testobject_export.h"
using namespace apache::geode::client;
using namespace testframework;
namespace testobject {
+/**
+ * @brief User class for testing the cq functionality.
+ */
class TESTOBJECT_EXPORT BatchObject : public TimestampedObject {
private:
int32_t index;
diff --git a/tests/cpp/testobject/DeltaFastAssetAccount.hpp b/tests/cpp/testobject/DeltaFastAssetAccount.hpp
index 785d8f3..30757fd 100644
--- a/tests/cpp/testobject/DeltaFastAssetAccount.hpp
+++ b/tests/cpp/testobject/DeltaFastAssetAccount.hpp
@@ -20,9 +20,7 @@
#ifndef GEODE_TESTOBJECT_DELTAFASTASSETACCOUNT_H_
#define GEODE_TESTOBJECT_DELTAFASTASSETACCOUNT_H_
-/*
- * @brief User class for testing the query functionality.
- */
+#include <inttypes.h>
#include <string>
#include <ace/ACE.h>
@@ -32,15 +30,15 @@
#include <geode/Delta.hpp>
#include "fwklib/FrameworkTest.hpp"
-
#include "FastAsset.hpp"
-
#include "testobject_export.h"
using namespace apache::geode::client;
using namespace testframework;
namespace testobject {
-
+/**
+ * @brief User class for testing the query functionality.
+ */
class TESTOBJECT_EXPORT DeltaFastAssetAccount : public Cacheable, public Delta {
private:
bool encodeTimestamp;
diff --git a/tests/cpp/testobject/DeltaPSTObject.hpp b/tests/cpp/testobject/DeltaPSTObject.hpp
index e9dfbb2..b04c5cc 100644
--- a/tests/cpp/testobject/DeltaPSTObject.hpp
+++ b/tests/cpp/testobject/DeltaPSTObject.hpp
@@ -20,24 +20,25 @@
#ifndef GEODE_TESTOBJECT_DELTAPSTOBJECT_H_
#define GEODE_TESTOBJECT_DELTAPSTOBJECT_H_
-/*
- * @brief User class for testing the put functionality for object.
- */
-
+#include <inttypes.h>
#include <string>
-#include "fwklib/Timer.hpp"
-#include "fwklib/FrameworkTest.hpp"
-#include "TimestampedObject.hpp"
-#include "testobject/PSTObject.hpp"
+
#include <ace/ACE.h>
#include <ace/OS.h>
#include <ace/Time_Value.h>
+#include "fwklib/Timer.hpp"
+#include "fwklib/FrameworkTest.hpp"
+#include "TimestampedObject.hpp"
+#include "testobject/PSTObject.hpp"
#include "testobject_export.h"
using namespace apache::geode::client;
using namespace testframework;
namespace testobject {
+/**
+ * @brief User class for testing the put functionality for object.
+ */
class TESTOBJECT_EXPORT DeltaPSTObject : public Cacheable, public Delta {
private:
uint64_t timestamp;
diff --git a/tests/cpp/testobject/EqStruct.hpp b/tests/cpp/testobject/EqStruct.hpp
index f6d3877..8a3883d 100644
--- a/tests/cpp/testobject/EqStruct.hpp
+++ b/tests/cpp/testobject/EqStruct.hpp
@@ -20,23 +20,24 @@
#ifndef GEODE_TESTOBJECT_EQSTRUCT_H_
#define GEODE_TESTOBJECT_EQSTRUCT_H_
-/*
- * @brief User class for testing the put functionality for object.
- */
-
+#include <inttypes.h>
#include <string>
-#include "fwklib/Timer.hpp"
-#include "fwklib/FrameworkTest.hpp"
-#include "TimestampedObject.hpp"
+
#include <ace/ACE.h>
#include <ace/OS.h>
#include <ace/Time_Value.h>
+#include "fwklib/Timer.hpp"
+#include "fwklib/FrameworkTest.hpp"
#include "testobject_export.h"
+#include "TimestampedObject.hpp"
using namespace apache::geode::client;
using namespace testframework;
namespace testobject {
+/**
+ * @brief User class for testing the put functionality for object.
+ */
class TESTOBJECT_EXPORT EqStruct : public TimestampedObject {
int myIndex;
std::string state;
diff --git a/tests/cpp/testobject/PSTObject.hpp b/tests/cpp/testobject/PSTObject.hpp
index 81a12c1..474320c 100644
--- a/tests/cpp/testobject/PSTObject.hpp
+++ b/tests/cpp/testobject/PSTObject.hpp
@@ -20,23 +20,24 @@
#ifndef GEODE_TESTOBJECT_PSTOBJECT_H_
#define GEODE_TESTOBJECT_PSTOBJECT_H_
-/*
- * @brief User class for testing the put functionality for object.
- */
-
+#include <inttypes.h>
#include <string>
-#include "fwklib/Timer.hpp"
-#include "fwklib/FrameworkTest.hpp"
-#include "TimestampedObject.hpp"
+
#include <ace/ACE.h>
#include <ace/OS.h>
#include <ace/Time_Value.h>
+#include "fwklib/Timer.hpp"
+#include "fwklib/FrameworkTest.hpp"
#include "testobject_export.h"
+#include "TimestampedObject.hpp"
using namespace apache::geode::client;
using namespace testframework;
namespace testobject {
+/**
+ * @brief User class for testing the put functionality for object.
+ */
class TESTOBJECT_EXPORT PSTObject : public TimestampedObject {
protected:
uint64_t timestamp;
--
To stop receiving notification emails like this one, please contact
jbarrett@apache.org.