mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
provider: add the unused paramater tag to the gettable and settable functions
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/12603)
This commit is contained in:
parent
520150151b
commit
1017ab21e4
@ -382,7 +382,7 @@ static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
|
||||
static const OSSL_PARAM *rsa_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *rsa_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_gettable_ctx_params;
|
||||
}
|
||||
@ -526,7 +526,7 @@ static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
|
||||
static const OSSL_PARAM *rsa_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *rsa_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_settable_ctx_params;
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ static const OSSL_PARAM cipher_aes_known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_size_t(OSSL_CIPHER_PARAM_KEYLEN, NULL),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
const OSSL_PARAM *aes_settable_ctx_params(void *provctx)
|
||||
const OSSL_PARAM *aes_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return cipher_aes_known_settable_ctx_params;
|
||||
}
|
||||
@ -257,7 +257,7 @@ static const OSSL_PARAM cipher_aes_known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_octet_string(OSSL_CIPHER_PARAM_IV_STATE, NULL, 0),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
const OSSL_PARAM *aes_gettable_ctx_params(void *provctx)
|
||||
const OSSL_PARAM *aes_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return cipher_aes_known_gettable_ctx_params;
|
||||
}
|
||||
|
@ -452,7 +452,7 @@ static const OSSL_PARAM cipher_ocb_known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_octet_string(OSSL_CIPHER_PARAM_AEAD_TAG, NULL, 0),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
static const OSSL_PARAM *cipher_ocb_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *cipher_ocb_gettable_ctx_params(ossl_unused void *p_ctx)
|
||||
{
|
||||
return cipher_ocb_known_gettable_ctx_params;
|
||||
}
|
||||
@ -463,7 +463,7 @@ static const OSSL_PARAM cipher_ocb_known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_octet_string(OSSL_CIPHER_PARAM_AEAD_TAG, NULL, 0),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
static const OSSL_PARAM *cipher_ocb_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *cipher_ocb_settable_ctx_params(ossl_unused void *p_ctx)
|
||||
{
|
||||
return cipher_ocb_known_settable_ctx_params;
|
||||
}
|
||||
|
@ -166,7 +166,7 @@ static const OSSL_PARAM aes_siv_known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_octet_string(OSSL_CIPHER_PARAM_AEAD_TAG, NULL, 0),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
static const OSSL_PARAM *aes_siv_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *aes_siv_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return aes_siv_known_gettable_ctx_params;
|
||||
}
|
||||
@ -216,7 +216,7 @@ static const OSSL_PARAM aes_siv_known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_octet_string(OSSL_CIPHER_PARAM_AEAD_TAG, NULL, 0),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
static const OSSL_PARAM *aes_siv_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *aes_siv_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return aes_siv_known_settable_ctx_params;
|
||||
}
|
||||
|
@ -211,7 +211,7 @@ static const OSSL_PARAM aes_xts_known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
|
||||
static const OSSL_PARAM *aes_xts_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *aes_xts_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return aes_xts_known_settable_ctx_params;
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ static const OSSL_PARAM chacha20_known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_size_t(OSSL_CIPHER_PARAM_IVLEN, NULL),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
const OSSL_PARAM *chacha20_gettable_ctx_params(void *provctx)
|
||||
const OSSL_PARAM *chacha20_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return chacha20_known_gettable_ctx_params;
|
||||
}
|
||||
@ -131,7 +131,7 @@ static const OSSL_PARAM chacha20_known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_size_t(OSSL_CIPHER_PARAM_IVLEN, NULL),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
const OSSL_PARAM *chacha20_settable_ctx_params(void *provctx)
|
||||
const OSSL_PARAM *chacha20_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return chacha20_known_settable_ctx_params;
|
||||
}
|
||||
|
@ -135,7 +135,8 @@ static const OSSL_PARAM chacha20_poly1305_known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_size_t(OSSL_CIPHER_PARAM_AEAD_TLS1_AAD_PAD, NULL),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
static const OSSL_PARAM *chacha20_poly1305_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *chacha20_poly1305_gettable_ctx_params
|
||||
(ossl_unused void *provctx)
|
||||
{
|
||||
return chacha20_poly1305_known_gettable_ctx_params;
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ static const OSSL_PARAM null_known_gettable_ctx_params[] = {
|
||||
};
|
||||
|
||||
static OSSL_FUNC_cipher_gettable_ctx_params_fn null_gettable_ctx_params;
|
||||
static const OSSL_PARAM *null_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *null_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return null_known_gettable_ctx_params;
|
||||
}
|
||||
@ -131,7 +131,7 @@ static const OSSL_PARAM null_known_settable_ctx_params[] = {
|
||||
};
|
||||
|
||||
static OSSL_FUNC_cipher_settable_ctx_params_fn null_settable_ctx_params;
|
||||
static const OSSL_PARAM *null_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *null_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return null_known_settable_ctx_params;
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ static const OSSL_PARAM rc4_hmac_md5_known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_size_t(OSSL_CIPHER_PARAM_AEAD_TLS1_AAD_PAD, NULL),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
const OSSL_PARAM *rc4_hmac_md5_gettable_ctx_params(void *provctx)
|
||||
const OSSL_PARAM *rc4_hmac_md5_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return rc4_hmac_md5_known_gettable_ctx_params;
|
||||
}
|
||||
@ -107,7 +107,7 @@ static const OSSL_PARAM rc4_hmac_md5_known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_octet_string(OSSL_CIPHER_PARAM_AEAD_TLS1_AAD, NULL, 0),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
const OSSL_PARAM *rc4_hmac_md5_settable_ctx_params(void *provctx)
|
||||
const OSSL_PARAM *rc4_hmac_md5_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return rc4_hmac_md5_known_settable_ctx_params;
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ static const OSSL_PARAM cipher_aead_known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_octet_string(OSSL_CIPHER_PARAM_AEAD_TLS1_GET_IV_GEN, NULL, 0),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
const OSSL_PARAM *cipher_aead_gettable_ctx_params(void *provctx)
|
||||
const OSSL_PARAM *cipher_aead_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return cipher_aead_known_gettable_ctx_params;
|
||||
}
|
||||
@ -131,7 +131,7 @@ static const OSSL_PARAM cipher_aead_known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_octet_string(OSSL_CIPHER_PARAM_AEAD_TLS1_SET_IV_INV, NULL, 0),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
const OSSL_PARAM *cipher_aead_settable_ctx_params(void *provctx)
|
||||
const OSSL_PARAM *cipher_aead_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return cipher_aead_known_settable_ctx_params;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ static const OSSL_PARAM known_md5_sha1_settable_ctx_params[] = {
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
|
||||
static const OSSL_PARAM *md5_sha1_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *md5_sha1_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_md5_sha1_settable_ctx_params;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ static const OSSL_PARAM known_mdc2_settable_ctx_params[] = {
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
|
||||
static const OSSL_PARAM *mdc2_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *mdc2_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_mdc2_settable_ctx_params;
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ static const OSSL_PARAM known_sha1_settable_ctx_params[] = {
|
||||
{OSSL_DIGEST_PARAM_SSL3_MS, OSSL_PARAM_OCTET_STRING, NULL, 0, 0},
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
static const OSSL_PARAM *sha1_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *sha1_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_sha1_settable_ctx_params;
|
||||
}
|
||||
|
@ -250,7 +250,7 @@ static const OSSL_PARAM known_shake_settable_ctx_params[] = {
|
||||
{OSSL_DIGEST_PARAM_XOFLEN, OSSL_PARAM_UNSIGNED_INTEGER, NULL, 0, 0},
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
static const OSSL_PARAM *shake_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *shake_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_shake_settable_ctx_params;
|
||||
}
|
||||
|
@ -279,7 +279,7 @@ static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
};
|
||||
|
||||
static
|
||||
const OSSL_PARAM *ecdh_settable_ctx_params(void *provctx)
|
||||
const OSSL_PARAM *ecdh_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_settable_ctx_params;
|
||||
}
|
||||
@ -360,7 +360,7 @@ static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
};
|
||||
|
||||
static
|
||||
const OSSL_PARAM *ecdh_gettable_ctx_params(void *provctx)
|
||||
const OSSL_PARAM *ecdh_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_gettable_ctx_params;
|
||||
}
|
||||
|
@ -225,7 +225,7 @@ static int kdf_hkdf_set_ctx_params(void *vctx, const OSSL_PARAM params[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *kdf_hkdf_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *kdf_hkdf_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_KDF_PARAM_MODE, NULL, 0),
|
||||
@ -250,7 +250,7 @@ static int kdf_hkdf_get_ctx_params(void *vctx, OSSL_PARAM params[])
|
||||
return -2;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *kdf_hkdf_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *kdf_hkdf_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_size_t(OSSL_KDF_PARAM_SIZE, NULL),
|
||||
|
@ -298,7 +298,7 @@ static int kbkdf_set_ctx_params(void *vctx, const OSSL_PARAM params[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *kbkdf_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *kbkdf_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_octet_string(OSSL_KDF_PARAM_INFO, NULL, 0),
|
||||
@ -328,7 +328,7 @@ static int kbkdf_get_ctx_params(void *vctx, OSSL_PARAM params[])
|
||||
return OSSL_PARAM_set_size_t(p, SIZE_MAX);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *kbkdf_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *kbkdf_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] =
|
||||
{ OSSL_PARAM_size_t(OSSL_KDF_PARAM_SIZE, NULL), OSSL_PARAM_END };
|
||||
|
@ -140,7 +140,7 @@ static int krb5kdf_set_ctx_params(void *vctx, const OSSL_PARAM params[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *krb5kdf_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *krb5kdf_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_KDF_PARAM_PROPERTIES, NULL, 0),
|
||||
@ -170,7 +170,7 @@ static int krb5kdf_get_ctx_params(void *vctx, OSSL_PARAM params[])
|
||||
return -2;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *krb5kdf_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *krb5kdf_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_size_t(OSSL_KDF_PARAM_SIZE, NULL),
|
||||
|
@ -200,7 +200,7 @@ static int kdf_pbkdf2_set_ctx_params(void *vctx, const OSSL_PARAM params[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *kdf_pbkdf2_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *kdf_pbkdf2_settable_ctx_params(ossl_unused void *p_ctx)
|
||||
{
|
||||
static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_KDF_PARAM_PROPERTIES, NULL, 0),
|
||||
@ -223,7 +223,7 @@ static int kdf_pbkdf2_get_ctx_params(void *vctx, OSSL_PARAM params[])
|
||||
return -2;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *kdf_pbkdf2_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *kdf_pbkdf2_gettable_ctx_params(ossl_unused void *p_ctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_size_t(OSSL_KDF_PARAM_SIZE, NULL),
|
||||
|
@ -194,7 +194,7 @@ static int kdf_scrypt_set_ctx_params(void *vctx, const OSSL_PARAM params[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *kdf_scrypt_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *kdf_scrypt_settable_ctx_params(ossl_unused void *p_ctx)
|
||||
{
|
||||
static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_octet_string(OSSL_KDF_PARAM_PASSWORD, NULL, 0),
|
||||
@ -217,7 +217,7 @@ static int kdf_scrypt_get_ctx_params(void *vctx, OSSL_PARAM params[])
|
||||
return -2;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *kdf_scrypt_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *kdf_scrypt_gettable_ctx_params(ossl_unused void *p_ctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_size_t(OSSL_KDF_PARAM_SIZE, NULL),
|
||||
|
@ -160,7 +160,7 @@ static int kdf_sshkdf_set_ctx_params(void *vctx, const OSSL_PARAM params[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *kdf_sshkdf_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *kdf_sshkdf_settable_ctx_params(ossl_unused void *p_ctx)
|
||||
{
|
||||
static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_KDF_PARAM_PROPERTIES, NULL, 0),
|
||||
@ -183,7 +183,7 @@ static int kdf_sshkdf_get_ctx_params(void *vctx, OSSL_PARAM params[])
|
||||
return -2;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *kdf_sshkdf_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *kdf_sshkdf_gettable_ctx_params(ossl_unused void *p_ctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_size_t(OSSL_KDF_PARAM_SIZE, NULL),
|
||||
|
@ -478,7 +478,7 @@ static int sskdf_set_ctx_params(void *vctx, const OSSL_PARAM params[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *sskdf_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *sskdf_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_octet_string(OSSL_KDF_PARAM_SECRET, NULL, 0),
|
||||
@ -504,7 +504,7 @@ static int sskdf_get_ctx_params(void *vctx, OSSL_PARAM params[])
|
||||
return -2;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *sskdf_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *sskdf_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_size_t(OSSL_KDF_PARAM_SIZE, NULL),
|
||||
|
@ -200,7 +200,7 @@ static int kdf_tls1_prf_set_ctx_params(void *vctx, const OSSL_PARAM params[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *kdf_tls1_prf_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *kdf_tls1_prf_settable_ctx_params(ossl_unused void *ctx)
|
||||
{
|
||||
static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_KDF_PARAM_PROPERTIES, NULL, 0),
|
||||
@ -221,7 +221,7 @@ static int kdf_tls1_prf_get_ctx_params(void *vctx, OSSL_PARAM params[])
|
||||
return -2;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *kdf_tls1_prf_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *kdf_tls1_prf_gettable_ctx_params(ossl_unused void *ctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_size_t(OSSL_KDF_PARAM_SIZE, NULL),
|
||||
|
@ -402,7 +402,7 @@ static int x942kdf_set_ctx_params(void *vctx, const OSSL_PARAM params[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *x942kdf_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *x942kdf_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_KDF_PARAM_PROPERTIES, NULL, 0),
|
||||
@ -426,7 +426,7 @@ static int x942kdf_get_ctx_params(void *vctx, OSSL_PARAM params[])
|
||||
return -2;
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *x942kdf_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *x942kdf_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_size_t(OSSL_KDF_PARAM_SIZE, NULL),
|
||||
|
@ -109,7 +109,7 @@ static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_size_t(OSSL_MAC_PARAM_SIZE, NULL),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
static const OSSL_PARAM *blake2_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *blake2_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_gettable_ctx_params;
|
||||
}
|
||||
@ -131,7 +131,7 @@ static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_octet_string(OSSL_MAC_PARAM_SALT, NULL, 0),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
static const OSSL_PARAM *blake2_mac_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *blake2_mac_settable_ctx_params(ossl_unused void *p_ctx)
|
||||
{
|
||||
return known_settable_ctx_params;
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_size_t(OSSL_MAC_PARAM_SIZE, NULL),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
static const OSSL_PARAM *cmac_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *cmac_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_gettable_ctx_params;
|
||||
}
|
||||
@ -146,7 +146,7 @@ static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_octet_string(OSSL_MAC_PARAM_KEY, NULL, 0),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
static const OSSL_PARAM *cmac_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *cmac_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_settable_ctx_params;
|
||||
}
|
||||
|
@ -158,7 +158,7 @@ static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_octet_string(OSSL_MAC_PARAM_IV, NULL, 0),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
static const OSSL_PARAM *gmac_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *gmac_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_settable_ctx_params;
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_size_t(OSSL_MAC_PARAM_SIZE, NULL),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
static const OSSL_PARAM *hmac_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *hmac_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_gettable_ctx_params;
|
||||
}
|
||||
@ -160,7 +160,7 @@ static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_int(OSSL_MAC_PARAM_FLAGS, NULL),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
static const OSSL_PARAM *hmac_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *hmac_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_settable_ctx_params;
|
||||
}
|
||||
|
@ -306,7 +306,7 @@ static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_size_t(OSSL_MAC_PARAM_SIZE, NULL),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
static const OSSL_PARAM *kmac_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *kmac_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_gettable_ctx_params;
|
||||
}
|
||||
@ -328,7 +328,7 @@ static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_octet_string(OSSL_MAC_PARAM_CUSTOM, NULL, 0),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
static const OSSL_PARAM *kmac_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *kmac_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_settable_ctx_params;
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_octet_string(OSSL_MAC_PARAM_KEY, NULL, 0),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
static const OSSL_PARAM *poly1305_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *poly1305_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_settable_ctx_params;
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_size_t(OSSL_MAC_PARAM_SIZE, NULL),
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
static const OSSL_PARAM *siphash_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *siphash_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_gettable_ctx_params;
|
||||
}
|
||||
|
@ -635,7 +635,7 @@ static int drbg_ctr_get_ctx_params(void *vdrbg, OSSL_PARAM params[])
|
||||
return drbg_get_ctx_params(drbg, params);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *drbg_ctr_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *drbg_ctr_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_DRBG_GETTABLE_CTX_COMMON,
|
||||
@ -701,7 +701,7 @@ static int drbg_ctr_set_ctx_params(void *vctx, const OSSL_PARAM params[])
|
||||
return drbg_set_ctx_params(ctx, params);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *drbg_ctr_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *drbg_ctr_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_DRBG_PARAM_PROPERTIES, NULL, 0),
|
||||
|
@ -432,7 +432,7 @@ static int drbg_hash_get_ctx_params(void *vdrbg, OSSL_PARAM params[])
|
||||
return drbg_get_ctx_params(drbg, params);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *drbg_hash_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *drbg_hash_gettable_ctx_params(ossl_unused void *p_ctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_DRBG_GETTABLE_CTX_COMMON,
|
||||
@ -476,7 +476,7 @@ static int drbg_hash_set_ctx_params(void *vctx, const OSSL_PARAM params[])
|
||||
return drbg_set_ctx_params(ctx, params);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *drbg_hash_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *drbg_hash_settable_ctx_params(ossl_unused void *p_ctx)
|
||||
{
|
||||
static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_DRBG_PARAM_PROPERTIES, NULL, 0),
|
||||
|
@ -329,7 +329,7 @@ static int drbg_hmac_get_ctx_params(void *vdrbg, OSSL_PARAM params[])
|
||||
return drbg_get_ctx_params(drbg, params);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *drbg_hmac_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *drbg_hmac_gettable_ctx_params(ossl_unused void *p_ctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_DRBG_GETTABLE_CTX_COMMON,
|
||||
@ -378,7 +378,7 @@ static int drbg_hmac_set_ctx_params(void *vctx, const OSSL_PARAM params[])
|
||||
return drbg_set_ctx_params(ctx, params);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *drbg_hmac_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *drbg_hmac_settable_ctx_params(ossl_unused void *p_ctx)
|
||||
{
|
||||
static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_DRBG_PARAM_PROPERTIES, NULL, 0),
|
||||
|
@ -186,7 +186,7 @@ static int test_rng_get_ctx_params(void *vdrbg, OSSL_PARAM params[])
|
||||
return drbg_get_ctx_params(drbg, params);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *test_rng_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *test_rng_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_DRBG_GETTABLE_CTX_COMMON,
|
||||
@ -264,7 +264,7 @@ static int test_rng_set_ctx_params(void *vdrbg, const OSSL_PARAM params[])
|
||||
return drbg_set_ctx_params(drbg, params);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *test_rng_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *test_rng_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_octet_string(OSSL_RAND_PARAM_TEST_ENTROPY, NULL, 0),
|
||||
|
@ -71,7 +71,7 @@ static void dh_priv_freectx(void *vctx)
|
||||
OPENSSL_free(ctx);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *dh_priv_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *dh_priv_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM settables[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_SERIALIZER_PARAM_CIPHER, NULL, 0),
|
||||
|
@ -71,7 +71,7 @@ static void dsa_priv_freectx(void *vctx)
|
||||
OPENSSL_free(ctx);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *dsa_priv_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *dsa_priv_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM settables[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_SERIALIZER_PARAM_CIPHER, NULL, 0),
|
||||
|
@ -65,7 +65,7 @@ static void ec_priv_freectx(void *vctx)
|
||||
OPENSSL_free(ctx);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *ec_priv_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *ec_priv_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM settables[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_SERIALIZER_PARAM_CIPHER, NULL, 0),
|
||||
|
@ -88,7 +88,7 @@ static void ecx_priv_freectx(void *vctx)
|
||||
OPENSSL_free(ctx);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *ecx_priv_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *ecx_priv_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM settables[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_SERIALIZER_PARAM_CIPHER, NULL, 0),
|
||||
|
@ -73,7 +73,7 @@ static void rsa_priv_freectx(void *vctx)
|
||||
OPENSSL_free(ctx);
|
||||
}
|
||||
|
||||
static const OSSL_PARAM *rsa_priv_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *rsa_priv_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
static const OSSL_PARAM settables[] = {
|
||||
OSSL_PARAM_utf8_string(OSSL_SERIALIZER_PARAM_CIPHER, NULL, 0),
|
||||
|
@ -412,7 +412,7 @@ static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
|
||||
static const OSSL_PARAM *dsa_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *dsa_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_gettable_ctx_params;
|
||||
}
|
||||
@ -454,7 +454,7 @@ static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
|
||||
static const OSSL_PARAM *dsa_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *dsa_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
/*
|
||||
* TODO(3.0): Should this function return a different set of settable ctx
|
||||
|
@ -399,7 +399,7 @@ static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
|
||||
static const OSSL_PARAM *ecdsa_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *ecdsa_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_gettable_ctx_params;
|
||||
}
|
||||
@ -451,7 +451,7 @@ static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
|
||||
static const OSSL_PARAM *ecdsa_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *ecdsa_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
/*
|
||||
* TODO(3.0): Should this function return a different set of settable ctx
|
||||
|
@ -983,7 +983,7 @@ static const OSSL_PARAM known_gettable_ctx_params[] = {
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
|
||||
static const OSSL_PARAM *rsa_gettable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *rsa_gettable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
return known_gettable_ctx_params;
|
||||
}
|
||||
@ -1233,7 +1233,7 @@ static const OSSL_PARAM known_settable_ctx_params[] = {
|
||||
OSSL_PARAM_END
|
||||
};
|
||||
|
||||
static const OSSL_PARAM *rsa_settable_ctx_params(void *provctx)
|
||||
static const OSSL_PARAM *rsa_settable_ctx_params(ossl_unused void *provctx)
|
||||
{
|
||||
/*
|
||||
* TODO(3.0): Should this function return a different set of settable ctx
|
||||
|
Loading…
Reference in New Issue
Block a user