add "tty" for several subcommands of openssl
authorsemarie <semarie@openbsd.org>
Sat, 17 Oct 2015 07:51:10 +0000 (07:51 +0000)
committersemarie <semarie@openbsd.org>
Sat, 17 Oct 2015 07:51:10 +0000 (07:51 +0000)
commit41f935bf3baf8d06aca7da9a5a9029e1bbaff371
tree76013aca5a9742852c21c4f0027c730d5f7bd307
parent04faa3a6b4673afb18bac292472f55d3828e656a
add "tty" for several subcommands of openssl

it is needed in order to let libssl UI_* function plays with echo on/off when
asking for password on terminal.

passwd subcommand needs additionnal "wpath cpath" in order to let it calls
fopen("/dev/tty", "w") (O_WRONLY with O_CREAT | O_TRUNC).

problem reported by several
with and ok doug@
24 files changed:
usr.bin/openssl/ca.c
usr.bin/openssl/cms.c
usr.bin/openssl/dgst.c
usr.bin/openssl/dsa.c
usr.bin/openssl/ec.c
usr.bin/openssl/enc.c
usr.bin/openssl/gendsa.c
usr.bin/openssl/genpkey.c
usr.bin/openssl/genrsa.c
usr.bin/openssl/openssl.c
usr.bin/openssl/passwd.c
usr.bin/openssl/pkcs12.c
usr.bin/openssl/pkcs8.c
usr.bin/openssl/pkey.c
usr.bin/openssl/pkeyutl.c
usr.bin/openssl/req.c
usr.bin/openssl/rsa.c
usr.bin/openssl/rsautl.c
usr.bin/openssl/s_client.c
usr.bin/openssl/s_server.c
usr.bin/openssl/smime.c
usr.bin/openssl/spkac.c
usr.bin/openssl/ts.c
usr.bin/openssl/x509.c