summaryrefslogtreecommitdiffstats
path: root/apps/mac.c
diff options
context:
space:
mode:
authorPauli <ppzgs1@gmail.com>2021-02-25 13:47:36 +1000
committerPauli <ppzgs1@gmail.com>2021-02-28 17:25:48 +1000
commit2211bf6bb795c59f43aa93d746c46de63843d7cd (patch)
tree6a60bf87dfe7cb5c7efb961b54b9d43ca31a943a /apps/mac.c
parentebf8274c552bd7543119a138cfa86728711a1431 (diff)
apps: update mac to work with additional MAC_init arguments. This doesn't include the creation of new 'key' arguments.
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/14310)
Diffstat (limited to 'apps/mac.c')
-rw-r--r--apps/mac.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/mac.c b/apps/mac.c
index 6280fdcd3b..8f8dcde318 100644
--- a/apps/mac.c
+++ b/apps/mac.c
@@ -64,6 +64,7 @@ int mac_main(int argc, char **argv)
const char *infile = NULL;
int out_bin = 0;
int inform = FORMAT_BINARY;
+ OSSL_PARAM *params = NULL;
prog = opt_init(argc, argv, mac_options);
buf = app_malloc(BUFSIZE, "I/O buffer");
@@ -117,9 +118,9 @@ opthelp:
if (opts != NULL) {
int ok = 1;
- OSSL_PARAM *params =
- app_params_new_from_opts(opts, EVP_MAC_settable_ctx_params(mac));
+ params = app_params_new_from_opts(opts,
+ EVP_MAC_settable_ctx_params(mac));
if (params == NULL)
goto err;
@@ -144,7 +145,7 @@ opthelp:
if (out == NULL)
goto err;
- if (!EVP_MAC_init(ctx)) {
+ if (!EVP_MAC_init(ctx, NULL, 0, NULL)) {
BIO_printf(bio_err, "EVP_MAC_Init failed\n");
goto err;
}