openssl/openssl

Support integer values in provider configuration (via load_ex or config file)

Open

#27,430 创建于 2025年4月17日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)C (11,262 fork)batch import
help wantedtriaged: documentationtriaged: feature

仓库指标

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

描述

OSSL_PROVIDER_get_params() is used to get provider parameter values. The caller must prepare the OSSL_PARAM(3) array before calling this function, and the variables acting as buffers for this parameter array should be filled with data when it returns successfully.

Based on documentation caller could prepare any parameter type and to expect code to perform type conversion from string.

  1. So far so good, but the documentation lies - code review shows that only utf-8 strings are processed. From this point of view this is documentation bug.

  2. From other point of view this is enhancement request. For instance ENGINE_CMD_FLAG_NUMERIC allows numeric configuration. Unfortunately compatibility with ENGINE_CMD_FLAG_INTERNAL is blocked by https://github.com/openssl/openssl/issues/17182. So, what about to support "numeric" values at least?

It seems to be utf-8 string limitation exist in ..load_ex() functions where it is documented though.


Remark: Issue is not about OSSL_PROVIDER_get_params() return value (looks like big mess).


Off topic: horrible idea is to unload and load provider, see doc/designs/prov_loadex.md.

贡献者指南