Hey.
Both, --passphrase-fd and --passphrase-file are documented as:
Only the first line will be read from file file.
I think it would be worth to clarify what a line is exactly, especially:
- Is it platform dependent (i.e. only the native one of CRLF, LF, CR)?
- If it's platform independent, is it only LF? Or LF and CR(LF)?
This is especially important, because if it would be always LF, then a CRLF terminated line would add an undesired extra CR to the passphrase.
Given that in POSIX terms, a line has a maximum length, it might perhaps also make sense to tell:
- whether there is a maximum line (i.e. passphrase length) and if so which
- whether gpg will error out if the maximum length is reached but no newline has been found (which likely indicates that the provided passphrase was longer then the maximum).
Thanks,
Chris.