openssl/openssl

Application context to set in CRYPTO_set_mem_functions

Open

#22,329 创建于 2023年10月10日

在 GitHub 查看
 (7 评论) (0 反应) (0 负责人)C (11,262 fork)batch import
backlog fixbranch: masterhelp wantedtriaged: feature

仓库指标

Star
 (30,157 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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.

贡献者指南