aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/alloc
diff options
context:
space:
mode:
authorlloyd <[email protected]>2015-01-27 14:10:37 +0000
committerlloyd <[email protected]>2015-01-27 14:10:37 +0000
commitb8fa304ec981d273c45d7ef31705d65ccfb00cc1 (patch)
tree86a0c03ddcf3f6b331a73170167bbf1e429e3d79 /src/lib/alloc
parent5ca89c642f19b747b965a22db87e7af2d13d0f35 (diff)
Add typedefs for function signatures/types used in TLS for easier reading
Diffstat (limited to 'src/lib/alloc')
-rw-r--r--src/lib/alloc/secmem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/alloc/secmem.h b/src/lib/alloc/secmem.h
index 58d0734cb..82b4083ea 100644
--- a/src/lib/alloc/secmem.h
+++ b/src/lib/alloc/secmem.h
@@ -11,6 +11,7 @@
#include <botan/mem_ops.h>
#include <algorithm>
#include <vector>
+#include <deque>
#if defined(BOTAN_HAS_LOCKING_ALLOCATOR)
#include <botan/locking_allocator.h>
@@ -90,6 +91,7 @@ operator!=(const secure_allocator<T>&, const secure_allocator<T>&)
{ return false; }
template<typename T> using secure_vector = std::vector<T, secure_allocator<T>>;
+template<typename T> using secure_deque = std::deque<T, secure_allocator<T>>;
template<typename T>
std::vector<T> unlock(const secure_vector<T>& in)