EVP_PKEY_CTX_get_params(): add error queue entry EVP_R_PROVIDER_GET_CTX_PARAMS_NOT_SUPPORTED

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/28473)
This commit is contained in:
Dr. David von Oheimb 2025-06-02 21:00:49 +02:00 committed by Pauli
parent 17d5c9297e
commit 5a9b7ea6de
4 changed files with 7 additions and 0 deletions

View File

@ -808,6 +808,8 @@ EVP_R_PRIVATE_KEY_DECODE_ERROR:145:private key decode error
EVP_R_PRIVATE_KEY_ENCODE_ERROR:146:private key encode error
EVP_R_PROVIDER_ASYM_CIPHER_FAILURE:232:provider asym cipher failure
EVP_R_PROVIDER_ASYM_CIPHER_NOT_SUPPORTED:235:provider asym cipher not supported
EVP_R_PROVIDER_GET_CTX_PARAMS_NOT_SUPPORTED:238:\
provider get ctx params not supported
EVP_R_PROVIDER_KEYMGMT_FAILURE:233:provider keymgmt failure
EVP_R_PROVIDER_KEYMGMT_NOT_SUPPORTED:236:provider keymgmt not supported
EVP_R_PROVIDER_SIGNATURE_FAILURE:234:provider signature failure

View File

@ -155,6 +155,8 @@ static const ERR_STRING_DATA EVP_str_reasons[] = {
"provider asym cipher failure"},
{ERR_PACK(ERR_LIB_EVP, 0, EVP_R_PROVIDER_ASYM_CIPHER_NOT_SUPPORTED),
"provider asym cipher not supported"},
{ERR_PACK(ERR_LIB_EVP, 0, EVP_R_PROVIDER_GET_CTX_PARAMS_NOT_SUPPORTED),
"provider get ctx params not supported"},
{ERR_PACK(ERR_LIB_EVP, 0, EVP_R_PROVIDER_KEYMGMT_FAILURE),
"provider keymgmt failure"},
{ERR_PACK(ERR_LIB_EVP, 0, EVP_R_PROVIDER_KEYMGMT_NOT_SUPPORTED),

View File

@ -762,6 +762,8 @@ int EVP_PKEY_CTX_get_params(EVP_PKEY_CTX *ctx, OSSL_PARAM *params)
return evp_pkey_ctx_get_params_to_ctrl(ctx, params);
#endif
}
ERR_raise_data(ERR_LIB_EVP, EVP_R_PROVIDER_GET_CTX_PARAMS_NOT_SUPPORTED,
"EVP_PKEY_OP=0x%x", ctx->operation);
return 0;
}

View File

@ -106,6 +106,7 @@
# define EVP_R_PRIVATE_KEY_ENCODE_ERROR 146
# define EVP_R_PROVIDER_ASYM_CIPHER_FAILURE 232
# define EVP_R_PROVIDER_ASYM_CIPHER_NOT_SUPPORTED 235
# define EVP_R_PROVIDER_GET_CTX_PARAMS_NOT_SUPPORTED 238
# define EVP_R_PROVIDER_KEYMGMT_FAILURE 233
# define EVP_R_PROVIDER_KEYMGMT_NOT_SUPPORTED 236
# define EVP_R_PROVIDER_SIGNATURE_FAILURE 234