]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
apps/enc.c: Moved -pass, -k, -kfile to encryption options
authorSoumik Sarker <ronodhirsoumik@gmail.com>
Sun, 9 Nov 2025 17:52:35 +0000 (23:52 +0600)
committerTomas Mraz <tomas@openssl.org>
Tue, 18 Nov 2025 18:31:43 +0000 (19:31 +0100)
Signed-off-by: Soumik Sarker <ronodhirsoumik@gmail.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/29110)

apps/enc.c

index 8f5044fbb3b0089ae4279c5cf545459c0a438d41..ab53e83c02dd86a99de1e2c7e58e02f1b87d3acd 100644 (file)
@@ -70,12 +70,9 @@ const OPTIONS enc_options[] = {
 
     OPT_SECTION("Input"),
     {"in", OPT_IN, '<', "Input file"},
-    {"k", OPT_K, 's', "Passphrase"},
-    {"kfile", OPT_KFILE, '<', "Read passphrase from file"},
 
     OPT_SECTION("Output"),
     {"out", OPT_OUT, '>', "Output file"},
-    {"pass", OPT_PASS, 's', "Passphrase source"},
     {"v", OPT_V, '-', "Verbose output"},
     {"a", OPT_A, '-', "Base64 encode/decode, depending on encryption flag"},
     {"base64", OPT_A, '-', "Same as option -a"},
@@ -93,6 +90,9 @@ const OPTIONS enc_options[] = {
     {"S", OPT_UPPER_S, 's', "Salt, in hex"},
     {"iv", OPT_IV, 's', "IV in hex"},
     {"md", OPT_MD, 's', "Use specified digest to create a key from the passphrase"},
+    {"k", OPT_K, 's', "Passphrase (Deprecated"},
+    {"kfile", OPT_KFILE, '<', "Read passphrase from file (Deprecated)"},
+    {"pass", OPT_PASS, 's', "Passphrase source"},
     {"iter", OPT_ITER, 'p',
      "Specify the iteration count and force the use of PBKDF2"},
     {OPT_MORE_STR, 0, 0, "Default: " STR(PBKDF2_ITER_DEFAULT)},