From ae3ff60e7bea6fb7510b5c0c2b9599d8430cf001 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 12 Aug 2019 14:56:18 +0200 Subject: Add missing EVP param utility functions These functions were missing for a completes API: EVP_MD_get_params(), EVP_CIPHER_get_params(), EVP_CIPHER_CTX_set_params(), and EVP_CIPHER_CTX_get_params Additionally, we also add all the corresponding parameter descriptor returning functions, along the correspoding provider dispatches: EVP_MD_gettable_params(), EVP_MD_CTX_settable_params(), EVP_MD_CTX_gettable_params(), EVP_CIPHER_gettable_params(), EVP_CIPHER_CTX_settable_params(), and EVP_CIPHER_CTX_gettable_params() Reviewed-by: Matt Caswell Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/9576) --- crypto/include/internal/evp_int.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crypto/include') diff --git a/crypto/include/internal/evp_int.h b/crypto/include/internal/evp_int.h index cdb5aab87c..ce9b9b8f51 100644 --- a/crypto/include/internal/evp_int.h +++ b/crypto/include/internal/evp_int.h @@ -215,6 +215,9 @@ struct evp_md_st { OSSL_OP_digest_get_params_fn *get_params; OSSL_OP_digest_ctx_set_params_fn *ctx_set_params; OSSL_OP_digest_ctx_get_params_fn *ctx_get_params; + OSSL_OP_digest_gettable_params_fn *gettable_params; + OSSL_OP_digest_settable_ctx_params_fn *settable_ctx_params; + OSSL_OP_digest_gettable_ctx_params_fn *gettable_ctx_params; } /* EVP_MD */ ; @@ -266,6 +269,9 @@ struct evp_cipher_st { OSSL_OP_cipher_get_params_fn *get_params; OSSL_OP_cipher_ctx_get_params_fn *ctx_get_params; OSSL_OP_cipher_ctx_set_params_fn *ctx_set_params; + OSSL_OP_cipher_gettable_params_fn *gettable_params; + OSSL_OP_cipher_gettable_ctx_params_fn *gettable_ctx_params; + OSSL_OP_cipher_settable_ctx_params_fn *settable_ctx_params; } /* EVP_CIPHER */ ; /* Macros to code block cipher wrappers */ -- cgit v1.2.3