aboutsummaryrefslogtreecommitdiff
path: root/src/allocators.h
Commit message (Collapse)AuthorAgeFilesLines
* add missing header end commentsPhilip Kaufmann2014-08-281-1/+1
| | | | | | - ensures a consistent usage in header files - also add a blank line after the copyright header where missing - also remove orphan new-lines at the end of some files
* Fix typos in comments (missing i's).paveljanik2014-07-241-1/+1
|
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-3/+4
| | | | | | | | | Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
* Merge pull request #3046 from sarchar/lockedpage-changeGavin Andresen2013-10-201-5/+38
|\ | | | | Changing LockedPageManager to use a managed instance
| * Changing LockedPageManager to use a managed instanceChuck2013-10-201-5/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures the allocator is ready no matter when it's needed (as some STL implementations allocate in constructors -- i.e., MSVC's STL in debug builds). Using boost::call_once to guarantee thread-safe static initialization. Adding some comments describing why the change was made. Addressing deinitialization of the LockedPageManager object by initializing it in a local static initializer and adding an assert in the base's destructor.
* | Bump Year Number to 2013super32013-10-201-1/+1
|/
* Remove include of windows.h from allocators.hGavin Andresen2013-10-091-53/+3
| | | | | | | | | | Create an allocators.cpp, and move all of the #ifdef WIN32 code and the #include of windows.h into it. Two motives for this cleanup: 1. I'm getting a weird error in windows.h in my smartfee branch. 2. allocators.h is included (indirectly) just about everywhere, so this should speed up Windows compiles quite a lot.
* Make signature cache store CPubKeysPieter Wuille2013-05-301-0/+4
|
* CSecret/CKey -> CKey/CPubKey split/refactorPieter Wuille2013-05-301-0/+9
|
* don't use memset() in privacy/security relevant code partsPhilip Kaufmann2012-11-091-2/+3
| | | | | | | | | | | | As memset() can be optimized out by a compiler it should not be used in privacy/security relevant code parts. OpenSSL provides the safe OPENSSL_cleanse() function in crypto.h, which perfectly does the job of clean and overwrite data. For details see: http://www.viva64.com/en/b/0178/ - change memset() to OPENSSL_cleanse() where appropriate - change a hard-coded number from netbase.cpp into a sizeof()
* Handle locked pages more robustly (Fixes issue #1462)Wladimir J. van der Laan2012-08-231-15/+150
| | | | | | | Memory locks do not stack, that is, pages which have been locked several times by calls to mlock() will be unlocked by a single call to munlock(). This can result in keying material ending up in swap when those functions are used naively. In this commit a class "LockedPageManager" is added that simulates stacking memory locks by keeping a counter per page.
* Update comment about secure_allocator<>Pieter Wuille2012-06-081-1/+0
|
* Update License in File HeadersFordy2012-05-181-1/+1
| | | | | | I originally created a pull to replace the "COPYING" in crypter.cpp and crypter.h, but it turned out that COPYING was actually the correct file.
* Add missing includes. (Fix bulding under GCC 4.7)Timothy Redaelli2012-04-201-0/+1
|
* Remove headers.hPieter Wuille2012-04-171-0/+3
|
* remove dependency on serialize.h and util.h for SecureStringWladimir J. van der Laan2012-04-041-0/+119