Application context to set in CRYPTO_set_mem_functions
#22,329 opened on Oct 10, 2023
Repository metrics
- Stars
- (30,157 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Hello Team,
After reviewing the documentation for CRYPTO_set_mem_functions,
I've noticed that the current implementation restricts us to set application memory callbacks for per objects. Unfortunately, this limitation doesn't align well with my use case.
In my scenario, I'm dealing with multiple objects, each of which has its own memory allocation, reallocation, and deallocation functions. Since the current callback mechanism lacks an application context, and I couldn't find any other suitable OpenSSL API to access specific application contexts, I'm unable to utilize memory callbacks to invoke the memory functions of individual objects.
I kindly request that you consider accepting this feature request. It would greatly enhance the flexibility and usefulness of the OpenSSL library. I'm eager to know if this feature could be made available in OpenSSL 3.0.10 or a future release.
Thank you for your attention to this matter.