#include <string.h>
#include <openssl/provider.h>
#include <openssl/params.h>
-#include <openssl/ossl_typ.h>
+#include <openssl/types.h>
#include <openssl/core_names.h>
#include "internal/nelem.h"
#include "testutil.h"
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 ";
OSSL_PROVIDER *prov = NULL;
OSSL_PARAM params[2];
- params[i++] = OSSL_PARAM_construct_int(OSSL_DIGEST_PARAM_PAD_TYPE,
- &pad_type, NULL),
+ 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");