summaryrefslogtreecommitdiffstats
path: root/providers/implementations/digests
diff options
context:
space:
mode:
authorPauli <ppzgs1@gmail.com>2021-02-22 12:06:04 +1000
committerPauli <ppzgs1@gmail.com>2021-02-26 18:08:41 +1000
commite772f25ca856d830b46927464c8e79c819746974 (patch)
treef5a45269cb21a6efa562b2ee2037a3798fcaddf2 /providers/implementations/digests
parent5a6a6d59a642e0ee437e3753c152b67e92d3cb3f (diff)
prov: update digests to support modified ctx params
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14240)
Diffstat (limited to 'providers/implementations/digests')
-rw-r--r--providers/implementations/digests/md5_sha1_prov.c3
-rw-r--r--providers/implementations/digests/mdc2_prov.c3
-rw-r--r--providers/implementations/digests/sha2_prov.c3
-rw-r--r--providers/implementations/digests/sha3_prov.c3
4 files changed, 8 insertions, 4 deletions
diff --git a/providers/implementations/digests/md5_sha1_prov.c b/providers/implementations/digests/md5_sha1_prov.c
index d96b72676b..d05a7e7d85 100644
--- a/providers/implementations/digests/md5_sha1_prov.c
+++ b/providers/implementations/digests/md5_sha1_prov.c
@@ -30,7 +30,8 @@ static const OSSL_PARAM known_md5_sha1_settable_ctx_params[] = {
OSSL_PARAM_END
};
-static const OSSL_PARAM *md5_sha1_settable_ctx_params(ossl_unused void *provctx)
+static const OSSL_PARAM *md5_sha1_settable_ctx_params(ossl_unused void *ctx,
+ ossl_unused void *provctx)
{
return known_md5_sha1_settable_ctx_params;
}
diff --git a/providers/implementations/digests/mdc2_prov.c b/providers/implementations/digests/mdc2_prov.c
index 91f123d55f..edd73ed89e 100644
--- a/providers/implementations/digests/mdc2_prov.c
+++ b/providers/implementations/digests/mdc2_prov.c
@@ -30,7 +30,8 @@ static const OSSL_PARAM known_mdc2_settable_ctx_params[] = {
OSSL_PARAM_END
};
-static const OSSL_PARAM *mdc2_settable_ctx_params(ossl_unused void *provctx)
+static const OSSL_PARAM *mdc2_settable_ctx_params(ossl_unused void *ctx,
+ ossl_unused void *provctx)
{
return known_mdc2_settable_ctx_params;
}
diff --git a/providers/implementations/digests/sha2_prov.c b/providers/implementations/digests/sha2_prov.c
index 45fa643ed5..96f4cc7004 100644
--- a/providers/implementations/digests/sha2_prov.c
+++ b/providers/implementations/digests/sha2_prov.c
@@ -33,7 +33,8 @@ 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(ossl_unused void *provctx)
+static const OSSL_PARAM *sha1_settable_ctx_params(ossl_unused void *ctx,
+ ossl_unused void *provctx)
{
return known_sha1_settable_ctx_params;
}
diff --git a/providers/implementations/digests/sha3_prov.c b/providers/implementations/digests/sha3_prov.c
index d4d3befa5e..c8c5df41ed 100644
--- a/providers/implementations/digests/sha3_prov.c
+++ b/providers/implementations/digests/sha3_prov.c
@@ -265,7 +265,8 @@ 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(ossl_unused void *provctx)
+static const OSSL_PARAM *shake_settable_ctx_params(ossl_unused void *ctx,
+ ossl_unused void *provctx)
{
return known_shake_settable_ctx_params;
}