提交 1ef45418 编写于 作者: R Rich Salz

Remove some now-unneeded VMS controls

Reviewed-by: NRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3875)
上级 59e539e6
...@@ -48,23 +48,14 @@ ...@@ -48,23 +48,14 @@
#endif #endif
#define RAND_FILE_SIZE 1024 #define RAND_FILE_SIZE 1024
#define RFILE ".rnd"
#ifdef OPENSSL_SYS_VMS #ifdef OPENSSL_SYS_VMS
/* /*
* Misc hacks needed for specific cases.
*
* __FILE_ptr32 is a type provided by DEC C headers (types.h specifically) * __FILE_ptr32 is a type provided by DEC C headers (types.h specifically)
* to make sure the FILE* is a 32-bit pointer no matter what. We know that * to make sure the FILE* is a 32-bit pointer no matter what. We know that
* stdio function return this type (a study of stdio.h proves it). * stdio functions return this type (a study of stdio.h proves it).
*/ *
# if __INITIAL_POINTER_SIZE == 64
# pragma pointer_size save
# pragma pointer_size 32
typedef char *char_ptr32;
# pragma pointer_size restore
# endif
/*
* This declaration is a nasty hack to get around vms' extension to fopen for * This declaration is a nasty hack to get around vms' extension to fopen for
* passing in sharing options being disabled by /STANDARD=ANSI89 * passing in sharing options being disabled by /STANDARD=ANSI89
*/ */
...@@ -72,12 +63,9 @@ static __FILE_ptr32 (*const vms_fopen)(const char *, const char *, ...) = ...@@ -72,12 +63,9 @@ static __FILE_ptr32 (*const vms_fopen)(const char *, const char *, ...) =
(__FILE_ptr32 (*)(const char *, const char *, ...))fopen; (__FILE_ptr32 (*)(const char *, const char *, ...))fopen;
# define VMS_OPEN_ATTRS \ # define VMS_OPEN_ATTRS \
"shr=get,put,upd,del","ctx=bin,stm","rfm=stm","rat=none","mrs=0" "shr=get,put,upd,del","ctx=bin,stm","rfm=stm","rat=none","mrs=0"
# define openssl_fopen(fname, mode) vms_fopen((fname), (mode), VMS_OPEN_ATTRS)
# define openssl_fopen(fname,mode) vms_fopen((fname), (mode), VMS_OPEN_ATTRS)
#endif #endif
#define RFILE ".rnd"
/* /*
* Note that these functions are intended for seed files only. Entropy * Note that these functions are intended for seed files only. Entropy
* devices and EGD sockets are handled in rand_unix.c If |bytes| is * devices and EGD sockets are handled in rand_unix.c If |bytes| is
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册