diff options
author | Richard Levitte <levitte@openssl.org> | 2016-06-02 20:44:11 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-06-02 21:11:07 +0200 |
commit | 6616429d4cdeb946fe8eb0fe6823d5b3b7793ef5 (patch) | |
tree | 1a0c52d00d3047da59b75f2efbe3e109a4305ea2 /apps/rehash.c | |
parent | Fix test failures when using enable-ubsan (diff) | |
download | openssl-6616429d4cdeb946fe8eb0fe6823d5b3b7793ef5.tar.xz openssl-6616429d4cdeb946fe8eb0fe6823d5b3b7793ef5.zip |
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@openssl.org>
Diffstat (limited to 'apps/rehash.c')
-rw-r--r-- | apps/rehash.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/rehash.c b/apps/rehash.c index 733794228d..417b91ed08 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]; |