提交 992492f5 编写于 作者: P Pauli

gettables: documentation changes to pass the provider context.

Reviewed-by: NMatt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12581)
上级 132b6160
......@@ -36,9 +36,9 @@ provider-asym_cipher - The asym_cipher library E<lt>-E<gt> provider functions
/* Asymmetric Cipher parameters */
int OSSL_FUNC_asym_cipher_get_ctx_params(void *ctx, OSSL_PARAM params[]);
const OSSL_PARAM *OSSL_FUNC_asym_cipher_gettable_ctx_params(void);
const OSSL_PARAM *OSSL_FUNC_asym_cipher_gettable_ctx_params(void *provctx);
int OSSL_FUNC_asym_cipher_set_ctx_params(void *ctx, const OSSL_PARAM params[]);
const OSSL_PARAM *OSSL_FUNC_asym_cipher_settable_ctx_params(void);
const OSSL_PARAM *OSSL_FUNC_asym_cipher_settable_ctx_params(void *provctx);
=head1 DESCRIPTION
......
......@@ -37,11 +37,11 @@ provider-cipher - The cipher library E<lt>-E<gt> provider functions
size_t outsize, const unsigned char *in, size_t inl);
/* Cipher parameter descriptors */
const OSSL_PARAM *OSSL_FUNC_cipher_gettable_params(void);
const OSSL_PARAM *OSSL_FUNC_cipher_gettable_params(void *provctx);
/* Cipher operation parameter descriptors */
const OSSL_PARAM *OSSL_FUNC_cipher_gettable_ctx_params(void);
const OSSL_PARAM *OSSL_FUNC_cipher_settable_ctx_params(void);
const OSSL_PARAM *OSSL_FUNC_cipher_gettable_ctx_params(void *provctx);
const OSSL_PARAM *OSSL_FUNC_cipher_settable_ctx_params(void *provctx);
/* Cipher parameters */
int OSSL_FUNC_cipher_get_params(OSSL_PARAM params[]);
......
......@@ -30,11 +30,11 @@ provider-digest - The digest library E<lt>-E<gt> provider functions
unsigned char *out, size_t *outl, size_t outsz);
/* Digest parameter descriptors */
const OSSL_PARAM *OSSL_FUNC_digest_gettable_params(void);
const OSSL_PARAM *OSSL_FUNC_digest_gettable_params(void *provctx);
/* Digest operation parameter descriptors */
const OSSL_PARAM *OSSL_FUNC_digest_gettable_ctx_params(void);
const OSSL_PARAM *OSSL_FUNC_digest_settable_ctx_params(void);
const OSSL_PARAM *OSSL_FUNC_digest_gettable_ctx_params(void *provctx);
const OSSL_PARAM *OSSL_FUNC_digest_settable_ctx_params(void *provctx);
/* Digest parameters */
int OSSL_FUNC_digest_get_params(OSSL_PARAM params[]);
......
......@@ -30,9 +30,9 @@ provider-keyexch - The keyexch library E<lt>-E<gt> provider functions
/* Key Exchange parameters */
int OSSL_FUNC_keyexch_set_ctx_params(void *ctx, const OSSL_PARAM params[]);
const OSSL_PARAM *OSSL_FUNC_keyexch_settable_ctx_params(void);
const OSSL_PARAM *OSSL_FUNC_keyexch_settable_ctx_params(void *provctx);
int OSSL_FUNC_keyexch_get_ctx_params(void *ctx, OSSL_PARAM params[]);
const OSSL_PARAM *OSSL_FUNC_keyexch_gettable_ctx_params(void);
const OSSL_PARAM *OSSL_FUNC_keyexch_gettable_ctx_params(void *provctx);
=head1 DESCRIPTION
......
......@@ -31,9 +31,9 @@ provider-keymgmt - The KEYMGMT library E<lt>-E<gt> provider functions
/* Key object information */
int OSSL_FUNC_keymgmt_get_params(void *keydata, OSSL_PARAM params[]);
const OSSL_PARAM *OSSL_FUNC_keymgmt_gettable_params(void);
const OSSL_PARAM *OSSL_FUNC_keymgmt_gettable_params(void *provctx);
int OSSL_FUNC_keymgmt_set_params(void *keydata, const OSSL_PARAM params[]);
const OSSL_PARAM *OSSL_FUNC_keymgmt_settable_params(void);
const OSSL_PARAM *OSSL_FUNC_keymgmt_settable_params(void *provctx);
/* Key object content checks */
int OSSL_FUNC_keymgmt_has(void *keydata, int selection);
......
......@@ -28,9 +28,9 @@ provider-mac - The mac library E<lt>-E<gt> provider functions
int OSSL_FUNC_mac_final(void *mctx, unsigned char *out, size_t *outl, size_t outsize);
/* MAC parameter descriptors */
const OSSL_PARAM *OSSL_FUNC_mac_get_params(void);
const OSSL_PARAM *OSSL_FUNC_mac_get_ctx_params(void);
const OSSL_PARAM *OSSL_FUNC_mac_set_ctx_params(void);
const OSSL_PARAM *OSSL_FUNC_mac_get_params(void *provctx);
const OSSL_PARAM *OSSL_FUNC_mac_get_ctx_params(void *provctx);
const OSSL_PARAM *OSSL_FUNC_mac_set_ctx_params(void *provctx);
/* MAC parameters */
int OSSL_FUNC_mac_get_params(OSSL_PARAM params[]);
......
......@@ -50,9 +50,9 @@ functions
void OSSL_FUNC_rand_unlock(void *ctx);
/* RAND parameter descriptors */
const OSSL_PARAM *OSSL_FUNC_rand_gettable_params(void);
const OSSL_PARAM *OSSL_FUNC_rand_gettable_ctx_params(void);
const OSSL_PARAM *OSSL_FUNC_rand_settable_ctx_params(void);
const OSSL_PARAM *OSSL_FUNC_rand_gettable_params(void *provctx);
const OSSL_PARAM *OSSL_FUNC_rand_gettable_ctx_params(void *provctx);
const OSSL_PARAM *OSSL_FUNC_rand_settable_ctx_params(void *provctx);
/* RAND parameters */
int OSSL_FUNC_rand_get_params(OSSL_PARAM params[]);
......
......@@ -24,7 +24,7 @@ Future development will also include deserializing functions.
void *OSSL_FUNC_serializer_newctx(void *provctx);
void OSSL_FUNC_serializer_freectx(void *ctx);
int OSSL_FUNC_serializer_set_ctx_params(void *ctx, const OSSL_PARAM params[]);
const OSSL_PARAM *OSSL_FUNC_serializer_settable_ctx_params(void)
const OSSL_PARAM *OSSL_FUNC_serializer_settable_ctx_params(void *provctx)
/* Functions to serialize object data */
int OSSL_FUNC_serializer_serialize_data(void *ctx, const OSSL_PARAM *data,
......
......@@ -64,9 +64,9 @@ provider-signature - The signature library E<lt>-E<gt> provider functions
/* Signature parameters */
int OSSL_FUNC_signature_get_ctx_params(void *ctx, OSSL_PARAM params[]);
const OSSL_PARAM *OSSL_FUNC_signature_gettable_ctx_params(void);
const OSSL_PARAM *OSSL_FUNC_signature_gettable_ctx_params(void *provctx);
int OSSL_FUNC_signature_set_ctx_params(void *ctx, const OSSL_PARAM params[]);
const OSSL_PARAM *OSSL_FUNC_signature_settable_ctx_params(void);
const OSSL_PARAM *OSSL_FUNC_signature_settable_ctx_params(void *provctx);
/* MD parameters */
int OSSL_FUNC_signature_get_ctx_md_params(void *ctx, OSSL_PARAM params[]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册