aboutsummaryrefslogtreecommitdiffstats
path: root/src/sdk/GFSDKBasic.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-27 12:18:26 +0000
committersaturneric <[email protected]>2024-07-27 12:18:26 +0000
commit5be04d1602355278814bc86c69ec9f648978be8c (patch)
tree6d691279591a267a6fe82bd3e9f84ced68dea214 /src/sdk/GFSDKBasic.cpp
parentfix: discover and solve some memory issues (diff)
downloadGpgFrontend-5be04d1602355278814bc86c69ec9f648978be8c.tar.gz
GpgFrontend-5be04d1602355278814bc86c69ec9f648978be8c.zip
feat: improve sdk api for pinentry module
Diffstat (limited to 'src/sdk/GFSDKBasic.cpp')
-rw-r--r--src/sdk/GFSDKBasic.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sdk/GFSDKBasic.cpp b/src/sdk/GFSDKBasic.cpp
index aefa022a..8b884c84 100644
--- a/src/sdk/GFSDKBasic.cpp
+++ b/src/sdk/GFSDKBasic.cpp
@@ -38,6 +38,10 @@ auto GFAllocateMemory(uint32_t size) -> void* {
return GpgFrontend::SecureMemoryAllocator::Allocate(size);
}
+auto GFReallocateMemory(void* ptr, uint32_t size) -> void* {
+ return GpgFrontend::SecureMemoryAllocator::Reallocate(ptr, size);
+}
+
void GFFreeMemory(void* ptr) {
return GpgFrontend::SecureMemoryAllocator::Deallocate(ptr);
}