diff options
author | Steve Wills <swills@FreeBSD.org> | 2013-12-17 13:10:02 +0000 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2013-12-17 13:10:02 +0000 |
commit | 042a5028e8ead2f04f7f83838beb06b6d31cfe45 (patch) | |
tree | 9be3d7db4872aaf507feff70aa18816cb9a52915 /net-p2p/litecoin/files | |
parent | Unlike your common unilateral falling block games, 'Double Cross' implements (diff) |
- Update to 0.8.6.1
Notes
Notes:
svn path=/head/; revision=336721
Diffstat (limited to 'net-p2p/litecoin/files')
-rw-r--r-- | net-p2p/litecoin/files/extra-patch-endian | 47 | ||||
-rw-r--r-- | net-p2p/litecoin/files/patch-src__serialize.h | 22 |
2 files changed, 47 insertions, 22 deletions
diff --git a/net-p2p/litecoin/files/extra-patch-endian b/net-p2p/litecoin/files/extra-patch-endian new file mode 100644 index 000000000000..8a016d89daad --- /dev/null +++ b/net-p2p/litecoin/files/extra-patch-endian @@ -0,0 +1,47 @@ +--- src/scrypt.cpp.orig 2013-12-09 18:10:12.046606050 +0000 ++++ src/scrypt.cpp 2013-12-09 18:10:25.898605023 +0000 +@@ -34,22 +34,6 @@ + #include <string.h> + #include <openssl/sha.h> + +-static inline uint32_t be32dec(const void *pp) +-{ +- const uint8_t *p = (uint8_t const *)pp; +- return ((uint32_t)(p[3]) + ((uint32_t)(p[2]) << 8) + +- ((uint32_t)(p[1]) << 16) + ((uint32_t)(p[0]) << 24)); +-} +- +-static inline void be32enc(void *pp, uint32_t x) +-{ +- uint8_t *p = (uint8_t *)pp; +- p[3] = x & 0xff; +- p[2] = (x >> 8) & 0xff; +- p[1] = (x >> 16) & 0xff; +- p[0] = (x >> 24) & 0xff; +-} +- + typedef struct HMAC_SHA256Context { + SHA256_CTX ictx; + SHA256_CTX octx; +--- src/scrypt.h.orig 2013-12-09 15:26:17.343282984 +0000 ++++ src/scrypt.h 2013-12-09 15:45:11.032205545 +0000 +@@ -17,19 +17,4 @@ + PBKDF2_SHA256(const uint8_t *passwd, size_t passwdlen, const uint8_t *salt, + size_t saltlen, uint64_t c, uint8_t *buf, size_t dkLen); + +-static inline uint32_t le32dec(const void *pp) +-{ +- const uint8_t *p = (uint8_t const *)pp; +- return ((uint32_t)(p[0]) + ((uint32_t)(p[1]) << 8) + +- ((uint32_t)(p[2]) << 16) + ((uint32_t)(p[3]) << 24)); +-} +- +-static inline void le32enc(void *pp, uint32_t x) +-{ +- uint8_t *p = (uint8_t *)pp; +- p[0] = x & 0xff; +- p[1] = (x >> 8) & 0xff; +- p[2] = (x >> 16) & 0xff; +- p[3] = (x >> 24) & 0xff; +-} + #endif diff --git a/net-p2p/litecoin/files/patch-src__serialize.h b/net-p2p/litecoin/files/patch-src__serialize.h deleted file mode 100644 index a199c7f7f352..000000000000 --- a/net-p2p/litecoin/files/patch-src__serialize.h +++ /dev/null @@ -1,22 +0,0 @@ ---- src/serialize.h.orig 2013-09-21 15:05:20.000000000 +0000 -+++ src/serialize.h 2013-09-21 15:06:01.000000000 +0000 -@@ -895,19 +895,6 @@ - iterator insert(iterator it, const char& x=char()) { return vch.insert(it, x); } - void insert(iterator it, size_type n, const char& x) { vch.insert(it, n, x); } - -- void insert(iterator it, const_iterator first, const_iterator last) -- { -- assert(last - first >= 0); -- if (it == vch.begin() + nReadPos && (unsigned int)(last - first) <= nReadPos) -- { -- // special case for inserting at the front when there's room -- nReadPos -= (last - first); -- memcpy(&vch[nReadPos], &first[0], last - first); -- } -- else -- vch.insert(it, first, last); -- } -- - void insert(iterator it, std::vector<char>::const_iterator first, std::vector<char>::const_iterator last) - { - assert(last - first >= 0); |