summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-09-21 05:42:01 +0000
committerRichard Levitte <levitte@openssl.org>2000-09-21 05:42:01 +0000
commitc5f8bbbc0b94f3ec3f3f8f2aabbe3cc81f7b8158 (patch)
treec8f72ab928a04717188255fc7887f0a07d12ab28 /crypto
parent4759abc5f268710bb5b75b38152958d7a1a3f95f (diff)
Portability patch for HP MPE/iX. Submitted by Mark Bixby <mark_bixby@hp.com>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/bio/bss_conn.c2
-rw-r--r--crypto/des/read_pwd.c6
2 files changed, 7 insertions, 1 deletions
diff --git a/crypto/bio/bss_conn.c b/crypto/bio/bss_conn.c
index e092528b3e..a6b77a2cb9 100644
--- a/crypto/bio/bss_conn.c
+++ b/crypto/bio/bss_conn.c
@@ -236,7 +236,7 @@ static int conn_state(BIO *b, BIO_CONNECT *c)
}
c->state=BIO_CONN_S_CONNECT;
-#ifdef SO_KEEPALIVE
+#if defined(SO_KEEPALIVE) && !defined(MPE)
i=1;
i=setsockopt(b->num,SOL_SOCKET,SO_KEEPALIVE,(char *)&i,sizeof(i));
if (i < 0)
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;