Support integer values in provider configuration (via load_ex or config file)
#27.430 aberto em 17 de abr. de 2025
Métricas do repositório
- Stars
- (30.157 stars)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
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.
-
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.
-
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.