Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
Botan
add-SecureVector-data.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File add-SecureVector-data.patch of Package Botan
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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor