diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2019-09-05 11:23:57 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2019-09-05 11:23:57 +1000 |
commit | 1c3ace6898032b7b45d8106ba4e0d21d75b0997e (patch) | |
tree | 5e07997567a0c99c1a0d55a2a4d258f614b0f7e0 /test | |
parent | bc5a80910dccbc1e417f96bb7f0a3814d3ad5a4d (diff) | |
download | openssl-1c3ace6898032b7b45d8106ba4e0d21d75b0997e.tar.gz |
Change provider params from int to size_t
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9699)
Diffstat (limited to 'test')
-rw-r--r-- | test/mdc2test.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/mdc2test.c b/test/mdc2test.c index 5b54f1038b..d1c2f26bdc 100644 --- a/test/mdc2test.c +++ b/test/mdc2test.c @@ -39,7 +39,8 @@ static unsigned char pad2[16] = { static int test_mdc2(void) { - int testresult = 0, pad_type = 2; + int testresult = 0; + unsigned int pad_type = 2; unsigned char md[MDC2_DIGEST_LENGTH]; EVP_MD_CTX *c; static char text[] = "Now is the time for all "; @@ -47,8 +48,8 @@ static int test_mdc2(void) OSSL_PROVIDER *prov = NULL; OSSL_PARAM params[2]; - params[i++] = OSSL_PARAM_construct_int(OSSL_DIGEST_PARAM_PAD_TYPE, - &pad_type), + params[i++] = OSSL_PARAM_construct_uint(OSSL_DIGEST_PARAM_PAD_TYPE, + &pad_type), params[i++] = OSSL_PARAM_construct_end(); prov = OSSL_PROVIDER_load(NULL, "legacy"); |