This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/crypto/asn1/tasn_dec.c b/crypto/asn1/tasn_dec.c | |
index 6f19829..d28dc60 100644 | |
--- a/crypto/asn1/tasn_dec.c | |
+++ b/crypto/asn1/tasn_dec.c | |
@@ -130,11 +130,17 @@ ASN1_VALUE *ASN1_item_d2i(ASN1_VALUE **pval, | |
{ | |
ASN1_TLC c; | |
ASN1_VALUE *ptmpval = NULL; | |
- if (!pval) | |
- pval = &ptmpval; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <vector> | |
#include <mutex> | |
#if defined(__clang__) && (!defined(SWIG)) | |
#define THREAD_ANNOTATION_ATTRIBUTE__(x) __attribute__((x)) | |
#else | |
#define THREAD_ANNOTATION_ATTRIBUTE__(x) // no-op | |
#endif | |
#define EXCLUSIVE_LOCKS_REQUIRED(...) THREAD_ANNOTATION_ATTRIBUTE__(exclusive_locks_required(__VA_ARGS__)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/net.cpp b/src/net.cpp | |
index 0392f6b..15cf7ce 100644 | |
--- a/src/net.cpp | |
+++ b/src/net.cpp | |
@@ -64,6 +64,7 @@ | |
const static std::string NET_MESSAGE_COMMAND_OTHER = "*other*"; | |
static const uint64_t RANDOMIZER_ID_NETGROUP = 0x6c0edd8036ef4036ULL; // SHA256("netgroup")[0:8] | |
+static const uint64_t RANDOMIZER_ID_LOCALHOSTNONCE = 0xd93e69e2bbfa5735ULL; // SHA256("localhostnonce")[0:8] | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```diff | |
diff --git a/src/net.cpp b/src/net.cpp | |
index 0392f6b..15cf7ce 100644 | |
--- a/src/net.cpp | |
+++ b/src/net.cpp | |
@@ -64,6 +64,7 @@ | |
const static std::string NET_MESSAGE_COMMAND_OTHER = "*other*"; | |
static const uint64_t RANDOMIZER_ID_NETGROUP = 0x6c0edd8036ef4036ULL; // SHA256("netgroup")[0:8] | |
+static const uint64_t RANDOMIZER_ID_LOCALHOSTNONCE = 0xd93e69e2bbfa5735ULL; // SHA256("localhostnonce")[0:8] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "strong_ptr.h" | |
#include <cassert> | |
#include <chrono> | |
#include <cstdio> | |
#include <mutex> | |
#include <thread> | |
#include <vector> | |
namespace { |
OlderNewer