[openssl-commits] [openssl] master update

Richard Levitte levitte at openssl.org
Thu Jun 2 19:11:09 UTC 2016


The branch master has been updated
       via  6616429d4cdeb946fe8eb0fe6823d5b3b7793ef5 (commit)
      from  02d6070430de33cf09e1db6b77a6aa43390c62a8 (commit)


- Log -----------------------------------------------------------------
commit 6616429d4cdeb946fe8eb0fe6823d5b3b7793ef5
Author: Richard Levitte <levitte at openssl.org>
Date:   Thu Jun 2 20:44:11 2016 +0200

    Build the 'openssl rehash' command on VMS version 8.3 and up
    
    Include a note in INSTALL that tests must be run from an unprivileged
    process.
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>

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

Summary of changes:
 INSTALL       | 3 +++
 apps/rehash.c | 8 ++++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/INSTALL b/INSTALL
index 901a5c0..ff134f2 100644
--- a/INSTALL
+++ b/INSTALL
@@ -495,6 +495,9 @@
        $ mms test                                       ! OpenVMS
        $ nmake test                                     # Windows
 
+     NOTE: you MUST run the tests from an unprivileged account (or
+     disable your privileges temporarly if your platform allows it).
+
      If some tests fail, look at the output.  There may be reasons for
      the failure that isn't a problem in OpenSSL itself (like a
      malfunction with Perl).  You may want increased verbosity, that
diff --git a/apps/rehash.c b/apps/rehash.c
index 7337942..417b91e 100644
--- a/apps/rehash.c
+++ b/apps/rehash.c
@@ -15,7 +15,8 @@
 
 #include "apps.h"
 
-#if defined(OPENSSL_SYS_UNIX) || defined(__APPLE__)
+#if defined(OPENSSL_SYS_UNIX) || defined(__APPLE__) || \
+    (defined(__VMS) && defined(__DECC) && __CTRL_VER >= 80300000)
 # include <unistd.h>
 # include <stdio.h>
 # include <limits.h>
@@ -30,6 +31,9 @@
 # include <openssl/x509.h>
 
 
+# ifndef PATH_MAX
+#  define PATH_MAX 4096
+# endif
 # ifndef NAME_MAX
 #  define NAME_MAX 255
 # endif
@@ -159,7 +163,7 @@ static int handle_symlink(const char *filename, const char *fullpath)
     int i, type, id;
     unsigned char ch;
     char linktarget[PATH_MAX], *endptr;
-    ssize_t n;
+    ossl_ssize_t n;
 
     for (i = 0; i < 8; i++) {
         ch = filename[i];


More information about the openssl-commits mailing list