aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/base/secmem.h
Commit message (Collapse)AuthorAgeFilesLines
* Simplify some secmem.h functionsJack Lloyd2020-11-051-50/+7
| | | | Move buffer_insert to mem_ops.h
* Remove support for Visual C++ 2013Jack Lloyd2018-10-011-28/+5
| | | | Closes GH #1557
* Spell check the documentationJack Lloyd2018-09-281-1/+1
|
* Add defensive assert to buffer_insertJack Lloyd2018-04-071-0/+2
| | | | | Otherwise an integer overflow bug elsewhere could turn into a heap overflow.
* Fix secure_allocator with std::string on VS2013Daniel Neus2017-11-161-5/+21
| | | | Closes #1295
* In secure_allocator, hide mlock/new usage in a function in mem_opsJack Lloyd2017-09-291-20/+2
| | | | | | | Switch to calloc/free instead of new/delete - shouldn't matter since we are only allocate integral types. This change reduces the size of libbotan-2.so by ~300 Kb on my system.
* Add back size_type typedefJack Lloyd2017-09-291-0/+1
| | | | | | | Lacking this seems to cause interesting issues with Apple Clang on 32-bit ARM. It seems like it implicitly defines a size_type that is the same size as size_t, but not actually size_t, so we get an unsigned long vs unsigned int mismatch on the type.
* Of course MSVC 2013 has to be specialJack Lloyd2017-09-291-0/+7
|
* Simplifiy secure_allocatorJack Lloyd2017-09-291-44/+4
| | | | | | | | | According to https://howardhinnant.github.io/allocator_boilerplate.html we don't need most of what was in there in C++11 and later. I think I originally wrote that code referencing a C++03 doc. Specifically avoiding construct, destruct prevents a performance issue in MSVC (GH #1228)
* Further header cleanupsJack Lloyd2017-09-281-1/+1
|
* Move the SecureVector typedef to secmem.hJack Lloyd2017-09-271-0/+3
| | | | No point making someone include a deprecated header to get this.
* Header file cleanupsJack Lloyd2017-09-211-1/+2
| | | | Some help from include-what-you-use
* Change header guard format to BOTAN_FOO_H_Jack Lloyd2017-09-201-2/+2
| | | | | | ISO C++ reserves names with double underscores in them Closes #512
* Fix failure to fully zero memory before freeJack Lloyd2017-07-161-1/+1
| | | | | | Introduced in 455bd2557cbb1343e59eefd97cb449f06a702c28 Found and reported by Roman Pozlevich
* Content:Tomasz Frydrych2017-04-031-3/+11
| | | | | | | | | * fixes for deprecated constructions in c++11 and later (explicit rule of 3/5 or implicit rule of 0 and other violations) * `default` specifier instead of `{}` in some places(probably all) * removal of unreachable code (for example `return` after `throw`) * removal of compilation unit only visible, but not used functions * fix for `throw()` specifier - used instead `BOTAN_NOEXCEPT` * removed not needed semicolons
* Rename zero_mem to secure_scrub_memoryJack Lloyd2016-11-031-1/+1
|
* Diable static_assert in secure_allocator in MSVC debugSimon Warta2016-10-131-0/+9
|
* Prevent use of secure_vector with non-integer typesJack Lloyd2016-09-091-0/+3
| | | | | If a non trival type was used, memory corruption could occur. Original issue reported by Matthias Gierlings.
* prevent massive amount of MSVC C4100 warningsDaniel Neus2016-07-051-0/+5
|
* Remove alloc module; move secmem.h to base and locking_allocator to utilsJack Lloyd2015-08-291-0/+205