diff options
author | erbsland-dev <github@erbsland.dev> | 2024-07-14 19:14:49 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-07-18 19:03:41 +0200 |
commit | 4ef8753ef6be961687555f383ce5f0a3002037f7 (patch) | |
tree | 9dec29db5141e3d6cf9a7321c5a607da2846b020 | |
parent | ff9c48be5ec23a0f6cea2b60e284ee4f53429039 (diff) | |
download | openssl-4ef8753ef6be961687555f383ce5f0a3002037f7.zip openssl-4ef8753ef6be961687555f383ce5f0a3002037f7.tar.gz openssl-4ef8753ef6be961687555f383ce5f0a3002037f7.tar.bz2 |
Improve clarity and readability of password input documentation
Fixed #7310: Enhanced existing documentation for password input methods
- Refined descriptions for password input methods: `file:`, `fd:`, and `stdin`
- Enhanced readability and consistency in the instructions
- Clarified handling of multiple lines in read files.
- Clarified that `fd:` is not supported on Windows.
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24878)
(cherry picked from commit 0d4663ca6a91eb5eeb7bbe24a3b5a7cbee9e0fad)
-rw-r--r-- | doc/man1/openssl-passphrase-options.pod | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/doc/man1/openssl-passphrase-options.pod b/doc/man1/openssl-passphrase-options.pod index abc43fb..2260dce 100644 --- a/doc/man1/openssl-passphrase-options.pod +++ b/doc/man1/openssl-passphrase-options.pod @@ -46,26 +46,32 @@ the environment of other processes is visible on certain platforms =item B<file:>I<pathname> -The first line of I<pathname> is the password. If the same I<pathname> -argument is supplied to B<-passin> and B<-passout> arguments then the first -line will be used for the input password and the next line for the output -password. I<pathname> need not refer to a regular file: it could for example -refer to a device or named pipe. +Reads the password from the specified file I<pathname>, which can be a regular +file, device, or named pipe. Only the first line, up to the newline character, +is read from the stream. + +If the same I<pathname> argument is supplied to both B<-passin> and B<-passout> +arguments, the first line will be used for the input password, and the next +line will be used for the output password. =item B<fd:>I<number> -Read the password from the file descriptor I<number>. This can be used to -send the data via a pipe for example. +Reads the password from the file descriptor I<number>. This can be useful for +sending data via a pipe, for example. The same line handling as described for +B<file:> applies to passwords read from file descriptors. + +B<fd:> is not supported on Windows. =item B<stdin> -Read the password from standard input. +Reads the password from standard input. The same line handling as described for +B<file:> applies to passwords read from standard input. =back =head1 COPYRIGHT -Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved. +Copyright 2000-2024 The OpenSSL Project Authors. All Rights Reserved. Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy |