diff options
author | Dr. David von Oheimb <dev@ddvo.net> | 2024-09-27 07:58:20 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-10-04 12:09:33 +0200 |
commit | 1dbb67c4f1a3aec7f4026e43257b33ffad665ba5 (patch) | |
tree | 07426178cfc48f5f2481a23cd51863c1bccabb01 /doc | |
parent | APPS/dsaparam: fix case where infile and outfile are the same (diff) | |
download | openssl-1dbb67c4f1a3aec7f4026e43257b33ffad665ba5.tar.xz openssl-1dbb67c4f1a3aec7f4026e43257b33ffad665ba5.zip |
APPS/{ecparam,pkeyparam}: fix case where infile and outfile are the same
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25552)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man1/openssl-ecparam.pod.in | 8 | ||||
-rw-r--r-- | doc/man1/openssl-pkeyparam.pod.in | 5 |
2 files changed, 9 insertions, 4 deletions
diff --git a/doc/man1/openssl-ecparam.pod.in b/doc/man1/openssl-ecparam.pod.in index 4585050514..27ce10490f 100644 --- a/doc/man1/openssl-ecparam.pod.in +++ b/doc/man1/openssl-ecparam.pod.in @@ -55,14 +55,16 @@ Parameters are encoded as B<EcpkParameters> as specified in IETF RFC 3279. =item B<-in> I<filename> -This specifies the input filename to read parameters from or standard input if +This specifies the input file to read parameters from or standard input if this option is not specified. =item B<-out> I<filename> This specifies the output filename parameters to. Standard output is used -if this option is not present. The output filename should B<not> be the same -as the input filename. +if this option is not present. +The output filename can be the same as the input filename, +which leads to replacing the file contents. +Note that file I/O is not atomic. The output file is truncated and then written. =item B<-noout> diff --git a/doc/man1/openssl-pkeyparam.pod.in b/doc/man1/openssl-pkeyparam.pod.in index 5053316c68..b8b1792f28 100644 --- a/doc/man1/openssl-pkeyparam.pod.in +++ b/doc/man1/openssl-pkeyparam.pod.in @@ -35,13 +35,16 @@ Print out a usage message. =item B<-in> I<filename> -This specifies the input filename to read parameters from or standard input if +This specifies the input file to read parameters from or standard input if this option is not specified. =item B<-out> I<filename> This specifies the output filename to write parameters to or standard output if this option is not specified. +The output filename can be the same as the input filename, +which leads to replacing the file contents. +Note that file I/O is not atomic. The output file is truncated and then written. =item B<-text> |