summaryrefslogtreecommitdiffstats
path: root/crypto/include
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-08-12 14:56:18 +0200
committerRichard Levitte <levitte@openssl.org>2019-08-15 10:49:56 +0200
commitae3ff60e7bea6fb7510b5c0c2b9599d8430cf001 (patch)
treea6cef6a574ebeac091b9bdb57ba6aff5c257becf /crypto/include
parentaee6e29f0e88df18ebc21dbcf9d4d5794d7511e0 (diff)
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 <matt@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/9576)
Diffstat (limited to 'crypto/include')
-rw-r--r--crypto/include/internal/evp_int.h6
1 files changed, 6 insertions, 0 deletions
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 */