diff options
author | Richard Levitte <levitte@openssl.org> | 2000-09-21 05:42:01 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-09-21 05:42:01 +0000 |
commit | c5f8bbbc0b94f3ec3f3f8f2aabbe3cc81f7b8158 (patch) | |
tree | c8f72ab928a04717188255fc7887f0a07d12ab28 /crypto/des/read_pwd.c | |
parent | 4759abc5f268710bb5b75b38152958d7a1a3f95f (diff) |
Portability patch for HP MPE/iX. Submitted by Mark Bixby <mark_bixby@hp.com>
Diffstat (limited to 'crypto/des/read_pwd.c')
-rw-r--r-- | crypto/des/read_pwd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/des/read_pwd.c b/crypto/des/read_pwd.c index 9555abe3a5..c27ec336e7 100644 --- a/crypto/des/read_pwd.c +++ b/crypto/des/read_pwd.c @@ -271,7 +271,9 @@ int des_read_pw(char *buf, char *buff, int size, const char *prompt, #elif defined(MAC_OS_pre_X) tty=stdin; #else +#ifndef MPE if ((tty=fopen("/dev/tty","r")) == NULL) +#endif tty=stdin; #endif @@ -312,8 +314,12 @@ int des_read_pw(char *buf, char *buff, int size, const char *prompt, #if defined(TTY_set) && !defined(VMS) if (is_a_tty && (TTY_set(fileno(tty),&tty_new) == -1)) +#ifdef MPE + ; /* MPE lies -- echo really has been disabled */ +#else return(-1); #endif +#endif #ifdef VMS tty_new[0] = tty_orig[0]; tty_new[1] = tty_orig[1] | TT$M_NOECHO; |