diff options
author | joerg <joerg> | 2012-04-17 17:46:30 +0000 |
---|---|---|
committer | joerg <joerg> | 2012-04-17 17:46:30 +0000 |
commit | a552f53408d3edf050cef41d4135edc3ed784321 (patch) | |
tree | e5ea1cb9d170c4511a1ea40c44af50583e869bbe /security | |
parent | d50fa33014f03d2c9cfcaacd1d1d8023e58d722a (diff) | |
download | pkgsrc-a552f53408d3edf050cef41d4135edc3ed784321.tar.gz |
Fix some errors in C++ usage.
Diffstat (limited to 'security')
-rw-r--r-- | security/crypto++/distinfo | 5 | ||||
-rw-r--r-- | security/crypto++/patches/patch-panama.cpp | 13 | ||||
-rw-r--r-- | security/crypto++/patches/patch-secblock.h | 13 | ||||
-rw-r--r-- | security/crypto++/patches/patch-simple.h | 13 |
4 files changed, 43 insertions, 1 deletions
diff --git a/security/crypto++/distinfo b/security/crypto++/distinfo index d52f87e94a2..8792f3a5ab8 100644 --- a/security/crypto++/distinfo +++ b/security/crypto++/distinfo @@ -1,6 +1,9 @@ -$NetBSD: distinfo,v 1.4 2007/12/01 04:17:51 rillig Exp $ +$NetBSD: distinfo,v 1.5 2012/04/17 17:46:30 joerg Exp $ SHA1 (cryptopp552.zip) = 18efe451b3c682f40db75dc2b09cb448a835e7d6 RMD160 (cryptopp552.zip) = 8929795b654d7186b2b38714d22a57ea01862dbd Size (cryptopp552.zip) = 992073 bytes SHA1 (patch-aa) = 777f0cec232cf696ea1a9dd04fa626f3e76442c1 +SHA1 (patch-panama.cpp) = 483b7153d3b5433b34981d7eb4895e37c7d9a1b7 +SHA1 (patch-secblock.h) = 5e0e3c5b48424e4232a88efc2244a9bd5df0fc5a +SHA1 (patch-simple.h) = 1a268509a6bc96dcaa61e83cc2fcb7ed1f7eb180 diff --git a/security/crypto++/patches/patch-panama.cpp b/security/crypto++/patches/patch-panama.cpp new file mode 100644 index 00000000000..219bbe75bed --- /dev/null +++ b/security/crypto++/patches/patch-panama.cpp @@ -0,0 +1,13 @@ +$NetBSD: patch-panama.cpp,v 1.1 2012/04/17 17:46:31 joerg Exp $ + +--- panama.cpp.orig 2012-04-17 15:42:03.000000000 +0000 ++++ panama.cpp +@@ -420,7 +420,7 @@ void PanamaHash<B>::TruncatedFinal(byte + { + this->ThrowIfInvalidTruncatedSize(size); + +- PadLastBlock(this->BLOCKSIZE, 0x01); ++ this->PadLastBlock(this->BLOCKSIZE, 0x01); + + HashEndianCorrectedBlock(this->m_data); + diff --git a/security/crypto++/patches/patch-secblock.h b/security/crypto++/patches/patch-secblock.h new file mode 100644 index 00000000000..2656384f340 --- /dev/null +++ b/security/crypto++/patches/patch-secblock.h @@ -0,0 +1,13 @@ +$NetBSD: patch-secblock.h,v 1.1 2012/04/17 17:46:31 joerg Exp $ + +--- secblock.h.orig 2012-04-17 15:36:29.000000000 +0000 ++++ secblock.h +@@ -94,7 +94,7 @@ public: + + pointer allocate(size_type n, const void * = NULL) + { +- CheckSize(n); ++ this->CheckSize(n); + if (n == 0) + return NULL; + diff --git a/security/crypto++/patches/patch-simple.h b/security/crypto++/patches/patch-simple.h new file mode 100644 index 00000000000..fcfd275a2f9 --- /dev/null +++ b/security/crypto++/patches/patch-simple.h @@ -0,0 +1,13 @@ +$NetBSD: patch-simple.h,v 1.1 2012/04/17 17:46:31 joerg Exp $ + +--- simple.h.orig 2012-04-17 15:39:30.000000000 +0000 ++++ simple.h +@@ -125,7 +125,7 @@ public: + bool Flush(bool hardFlush, int propagation=-1, bool blocking=true) + {return ChannelFlush(this->NULL_CHANNEL, hardFlush, propagation, blocking);} + bool MessageSeriesEnd(int propagation=-1, bool blocking=true) +- {return ChannelMessageSeriesEnd(this->NULL_CHANNEL, propagation, blocking);} ++ {return this->ChannelMessageSeriesEnd(this->NULL_CHANNEL, propagation, blocking);} + byte * CreatePutSpace(size_t &size) + {return ChannelCreatePutSpace(this->NULL_CHANNEL, size);} + size_t Put2(const byte *begin, size_t length, int messageEnd, bool blocking) |