projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support the EBCDIC character set and BS2000/OSD-POSIX (work in progress).
[oweals/openssl.git]
/
crypto
/
des
/
read_pwd.c
diff --git
a/crypto/des/read_pwd.c
b/crypto/des/read_pwd.c
index 24e814ec76e4994e51ed1ec5c6eafb142383d483..8ac1f1e36e0222674a5a8c104ddfb2a8e45902d7 100644
(file)
--- a/
crypto/des/read_pwd.c
+++ b/
crypto/des/read_pwd.c
@@
-82,10
+82,18
@@
#include "des_locl.h"
#include "cryptlib.h"
#include <signal.h>
#include "des_locl.h"
#include "cryptlib.h"
#include <signal.h>
+#include <stdio.h>
#include <string.h>
#include <setjmp.h>
#include <errno.h>
#include <string.h>
#include <setjmp.h>
#include <errno.h>
+#ifdef VMS /* prototypes for sys$whatever */
+#include <starlet.h>
+#ifdef __DECC
+#pragma message disable DOLLARID
+#endif
+#endif
+
#ifdef WIN_CONSOLE_BUG
#include <windows.h>
#include <wincon.h>
#ifdef WIN_CONSOLE_BUG
#include <windows.h>
#include <wincon.h>
@@
-275,10
+283,10
@@
int des_read_pw(char *buf, char *buff, int size, const char *prompt,
memcpy(&(tty_new),&(tty_orig),sizeof(tty_orig));
#endif
#ifdef VMS
memcpy(&(tty_new),&(tty_orig),sizeof(tty_orig));
#endif
#ifdef VMS
- status =
SYS$ASSIGN
(&terminal,&channel,0,0);
+ status =
sys$assign
(&terminal,&channel,0,0);
if (status != SS$_NORMAL)
return(-1);
if (status != SS$_NORMAL)
return(-1);
- status=
SYS$QIOW
(0,channel,IO$_SENSEMODE,&iosb,0,0,tty_orig,12,0,0,0,0);
+ status=
sys$qiow
(0,channel,IO$_SENSEMODE,&iosb,0,0,tty_orig,12,0,0,0,0);
if ((status != SS$_NORMAL) || (iosb.iosb$w_value != SS$_NORMAL))
return(-1);
#endif
if ((status != SS$_NORMAL) || (iosb.iosb$w_value != SS$_NORMAL))
return(-1);
#endif
@@
-298,7
+306,7
@@
int des_read_pw(char *buf, char *buff, int size, const char *prompt,
tty_new[0] = tty_orig[0];
tty_new[1] = tty_orig[1] | TT$M_NOECHO;
tty_new[2] = tty_orig[2];
tty_new[0] = tty_orig[0];
tty_new[1] = tty_orig[1] | TT$M_NOECHO;
tty_new[2] = tty_orig[2];
- status =
SYS$QIOW
(0,channel,IO$_SETMODE,&iosb,0,0,tty_new,12,0,0,0,0);
+ status =
sys$qiow
(0,channel,IO$_SETMODE,&iosb,0,0,tty_new,12,0,0,0,0);
if ((status != SS$_NORMAL) || (iosb.iosb$w_value != SS$_NORMAL))
return(-1);
#endif
if ((status != SS$_NORMAL) || (iosb.iosb$w_value != SS$_NORMAL))
return(-1);
#endif
@@
-344,19
+352,19
@@
error:
perror("fgets(tty)");
#endif
/* What can we do if there is an error? */
perror("fgets(tty)");
#endif
/* What can we do if there is an error? */
-#if defined(TTY_set) && !defined(VMS)
+#if defined(TTY_set) && !defined(VMS)
if (ps >= 2) TTY_set(fileno(tty),&tty_orig);
#endif
#ifdef VMS
if (ps >= 2)
if (ps >= 2) TTY_set(fileno(tty),&tty_orig);
#endif
#ifdef VMS
if (ps >= 2)
- status =
SYS$QIOW
(0,channel,IO$_SETMODE,&iosb,0,0
+ status =
sys$qiow
(0,channel,IO$_SETMODE,&iosb,0,0
,tty_orig,12,0,0,0,0);
#endif
if (ps >= 1) popsig();
if (stdin != tty) fclose(tty);
#ifdef VMS
,tty_orig,12,0,0,0,0);
#endif
if (ps >= 1) popsig();
if (stdin != tty) fclose(tty);
#ifdef VMS
- status =
SYS$DASSGN
(channel);
+ status =
sys$dassgn
(channel);
#endif
return(!ok);
}
#endif
return(!ok);
}