File add-SecureVector-data.patch of Package Botan.5777
From b220743ae9d93bc335414c9857b34476beabfaaa Mon Sep 17 00:00:00 2001
From: Jack Lloyd <jack@randombit.net>
Date: Wed, 27 Sep 2017 06:03:14 -0400
Subject: [PATCH] Add SecureVector::data
Makes it a little easier to write code that compiles in both 1.10
and 2
---
src/alloc/secmem.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/alloc/secmem.h b/src/alloc/secmem.h
index 4ff530ecc..0c32fa6c7 100644
--- a/src/alloc/secmem.h
+++ b/src/alloc/secmem.h
@@ -46,6 +46,12 @@ class MemoryRegion
*/
operator const T* () const { return buf; }
+ /**
+ * Get a pointer to the first element in the buffer.
+ * @return pointer to the first element in the buffer
+ */
+ T* data() { return buf; }
+
/**
* Get a pointer to the first element in the buffer.
* @return pointer to the first element in the buffer
--
2.14.1