From 26cf0767a71743de00cd20f90526052358d67d03 Mon Sep 17 00:00:00 2001 From: Marco Abbadini <39488007+marcoabbadini@users.noreply.github.com> Date: Tue, 16 May 2023 23:52:53 +0200 Subject: [PATCH] pkcs12: Fix macsaltlen parameter type It expects an integer so change it from non-argument type to positive integer type. Fixes #20969 CLA: trivial Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/20979) --- apps/pkcs12.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/pkcs12.c b/apps/pkcs12.c index 0c39ed79bd..4f2d3f7f2e 100644 --- a/apps/pkcs12.c +++ b/apps/pkcs12.c @@ -152,7 +152,7 @@ const OPTIONS pkcs12_options[] = { {"noiter", OPT_NOITER, '-', "Don't use encryption iteration"}, {"nomaciter", OPT_NOMACITER, '-', "Don't use MAC iteration)"}, {"maciter", OPT_MACITER, '-', "Unused, kept for backwards compatibility"}, - {"macsaltlen", OPT_MACSALTLEN, '-', "Specify the salt len for MAC"}, + {"macsaltlen", OPT_MACSALTLEN, 'p', "Specify the salt len for MAC"}, {"nomac", OPT_NOMAC, '-', "Don't generate MAC"}, {NULL} };