]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
pkcs12: Fix macsaltlen parameter type
authorMarco Abbadini <39488007+marcoabbadini@users.noreply.github.com>
Tue, 16 May 2023 21:52:53 +0000 (23:52 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 18 May 2023 11:25:28 +0000 (13:25 +0200)
It expects an integer so change it from non-argument type to positive integer type.

Fixes #20969

CLA: trivial

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20979)

apps/pkcs12.c

index 0c39ed79bd4d2bd7b2290918e9f9d67b12f391f2..4f2d3f7f2efd13bb8249cd176fa15fc6675f2925 100644 (file)
@@ -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}
 };