From: Dr. David von Oheimb Date: Tue, 24 Aug 2021 10:27:12 +0000 (+0200) Subject: PKCS12 app: Improve readability w.r.t. enc_flag, renamed to enc_name X-Git-Tag: openssl-3.2.0-alpha1~3101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=870871e5df4f47611c38e81d3f50e38cbf362082;p=thirdparty%2Fopenssl.git PKCS12 app: Improve readability w.r.t. enc_flag, renamed to enc_name Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/16416) --- diff --git a/apps/pkcs12.c b/apps/pkcs12.c index 44b53b0b54c..08af7bf3d2a 100644 --- a/apps/pkcs12.c +++ b/apps/pkcs12.c @@ -155,7 +155,7 @@ const OPTIONS pkcs12_options[] = { int pkcs12_main(int argc, char **argv) { char *infile = NULL, *outfile = NULL, *keyname = NULL, *certfile = NULL; - char *untrusted = NULL, *ciphername = NULL, *enc_flag = NULL; + char *untrusted = NULL, *ciphername = NULL, *enc_name = NULL; char *passcertsarg = NULL, *passcerts = NULL; char *name = NULL, *csp_name = NULL; char pass[PASSWD_BUF_SIZE] = "", macpass[PASSWD_BUF_SIZE] = ""; @@ -238,16 +238,15 @@ int pkcs12_main(int argc, char **argv) case OPT_NODES: case OPT_NOENC: /* - * |enc_flag| stores the name of the option used so it + * |enc_name| stores the name of the option used so it * can be printed if an error message is output. */ - enc_flag = opt_flag() + 1; + enc_name = opt_flag() + 1; enc = NULL; ciphername = NULL; break; case OPT_CIPHER: - ciphername = opt_unknown(); - enc_flag = opt_unknown(); + enc_name = ciphername = opt_unknown(); break; case OPT_ITER: maciter = iter = opt_int_arg(); @@ -375,7 +374,7 @@ int pkcs12_main(int argc, char **argv) WARN_EXPORT("cacerts"); if (enc != default_enc) BIO_printf(bio_err, - "Warning: output encryption option -%s ignored with -export\n", enc_flag); + "Warning: output encryption option -%s ignored with -export\n", enc_name); } else { if (keyname != NULL) WARN_NO_EXPORT("inkey");