From 261750134865150fe72298fd34dc7214c849b926 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 11 Jul 2019 12:19:33 +0200 Subject: Replace OSSL_ITEM with OSSL_PARAM as parameter descriptor, everywhere Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/9346) --- doc/internal/man3/ossl_provider_new.pod | 10 +++++----- doc/man3/OSSL_PROVIDER.pod | 13 +++++-------- 2 files changed, 10 insertions(+), 13 deletions(-) (limited to 'doc') diff --git a/doc/internal/man3/ossl_provider_new.pod b/doc/internal/man3/ossl_provider_new.pod index cb40cb2cf9..426d95393d 100644 --- a/doc/internal/man3/ossl_provider_new.pod +++ b/doc/internal/man3/ossl_provider_new.pod @@ -51,7 +51,7 @@ ossl_provider_get_params, ossl_provider_query_operation /* Thin wrappers around calls to the provider */ void ossl_provider_teardown(const OSSL_PROVIDER *prov); - const OSSL_ITEM *ossl_provider_get_param_types(const OSSL_PROVIDER *prov); + const OSSL_PARAM *ossl_provider_get_param_types(const OSSL_PROVIDER *prov); int ossl_provider_get_params(const OSSL_PROVIDER *prov, OSSL_PARAM params[]); const OSSL_ALGORITHM *ossl_provider_query_operation(const OSSL_PROVIDER *prov, int operation_id, @@ -174,7 +174,7 @@ the provider has one. ossl_provider_get_param_types() calls the provider's I function, if the provider has one. -It should return an array of I to describe all the +It should return an array of I to describe all the parameters that the provider has for the provider object. ossl_provider_get_params() calls the provider's parameter request @@ -235,9 +235,9 @@ is returned. ossl_provider_teardown() doesnt't return any value. -ossl_provider_get_param_types() returns a pointer to an I -array if this function is available in the provider, otherwise -NULL. +ossl_provider_get_param_types() returns a pointer to a constant +I array if this function is available in the provider, +otherwise NULL. ossl_provider_get_params() returns 1 on success, or 0 on error. If this function isn't available in the provider, 0 is returned. diff --git a/doc/man3/OSSL_PROVIDER.pod b/doc/man3/OSSL_PROVIDER.pod index fec67060f0..1453fcc50a 100644 --- a/doc/man3/OSSL_PROVIDER.pod +++ b/doc/man3/OSSL_PROVIDER.pod @@ -15,7 +15,7 @@ OSSL_PROVIDER_add_builtin, OSSL_PROVIDER_name - provider routines OSSL_PROVIDER *OSSL_PROVIDER_load(OPENSSL_CTX *, const char *name); int OSSL_PROVIDER_unload(OSSL_PROVIDER *prov); - const OSSL_ITEM *OSSL_PROVIDER_get_param_types(OSSL_PROVIDER *prov); + const OSSL_PARAM *OSSL_PROVIDER_get_param_types(OSSL_PROVIDER *prov); int OSSL_PROVIDER_get_params(OSSL_PROVIDER *prov, OSSL_PARAM params[]); int OSSL_PROVIDER_add_builtin(OPENSSL_CTX *, const char *name, @@ -50,11 +50,8 @@ For a provider added with OSSL_PROVIDER_add_builtin(), this simply runs its teardown function. OSSL_PROVIDER_get_param_types() is used to get a provider parameter -descriptor set as an B array. -Each element is a tuple of an B parameter type and a name -in form of a C string. -See L for more information on B and -parameter types. +descriptor set as a constant B array. +See L for more information. OSSL_PROVIDER_get_params() is used to get provider parameter values. The caller must prepare the B array before calling this @@ -72,8 +69,8 @@ success, or B on error. OSSL_PROVIDER_unload() returns 1 on success, or 0 on error. -OSSL_PROVIDER_get_param_types() returns a pointer to a constant array -of B, or NULL if none is provided. +OSSL_PROVIDER_get_param_types() returns a pointer to an array +of constant B, or NULL if none is provided. OSSL_PROVIDER_get_params() returns 1 on success, or 0 on error. -- cgit v1.2.3