[openssl-commits] [openssl] master update

Rich Salz rsalz at openssl.org
Thu Jul 6 23:27:55 UTC 2017


The branch master has been updated
       via  1ef454181394b474ed590c551f659b4ce11aa093 (commit)
      from  59e539e6429d9c3b5c4db07569f09ec6acc5a7e9 (commit)


- Log -----------------------------------------------------------------
commit 1ef454181394b474ed590c551f659b4ce11aa093
Author: Rich Salz <rsalz at openssl.org>
Date:   Thu Jul 6 15:28:35 2017 -0400

    Remove some now-unneeded VMS controls
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/3875)

-----------------------------------------------------------------------

Summary of changes:
 crypto/rand/randfile.c | 20 ++++----------------
 1 file changed, 4 insertions(+), 16 deletions(-)

diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c
index c60022c..4005f78 100644
--- a/crypto/rand/randfile.c
+++ b/crypto/rand/randfile.c
@@ -48,23 +48,14 @@
 #endif
 
 #define RAND_FILE_SIZE 1024
+#define RFILE ".rnd"
 
 #ifdef OPENSSL_SYS_VMS
 /*
- * Misc hacks needed for specific cases.
- *
  * __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
- * stdio function 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
-
-/*
+ * stdio functions return this type (a study of stdio.h proves it).
+ *
  * This declaration is a nasty hack to get around vms' extension to fopen for
  * passing in sharing options being disabled by /STANDARD=ANSI89
  */
@@ -72,12 +63,9 @@ static __FILE_ptr32 (*const vms_fopen)(const char *, const char *, ...) =
         (__FILE_ptr32 (*)(const char *, const char *, ...))fopen;
 # define VMS_OPEN_ATTRS \
         "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
 
-#define RFILE ".rnd"
-
 /*
  * Note that these functions are intended for seed files only. Entropy
  * devices and EGD sockets are handled in rand_unix.c  If |bytes| is


More information about the openssl-commits mailing list