diff options
author | Richard Levitte <levitte@openssl.org> | 2018-03-12 23:02:18 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2018-03-12 23:02:18 +0100 |
commit | d3bc941df4142be4042e78ab9ba07fb296c424d1 (patch) | |
tree | 68028c3312c7fa4d41f9f8c78b7193bd46d3ab52 /apps/rehash.c | |
parent | Adjust LPdir_unix.c on VMS for OpenSSL expectations (diff) | |
download | openssl-d3bc941df4142be4042e78ab9ba07fb296c424d1.tar.xz openssl-d3bc941df4142be4042e78ab9ba07fb296c424d1.zip |
openssl rehash: no more need to massage the files on VMS
OPENSSL_DIR_read() now returns unique file names on VMS, no generation
number. We therefore do not need to handle that case in apps/rehash.c
any more.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5602)
Diffstat (limited to 'apps/rehash.c')
-rw-r--r-- | apps/rehash.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/apps/rehash.c b/apps/rehash.c index d918ac89e9..6f2b5da4ad 100644 --- a/apps/rehash.c +++ b/apps/rehash.c @@ -293,24 +293,6 @@ static int ends_with_dirsep(const char *path) return *path == '/'; } -static int massage_filename(char *name) -{ -# ifdef __VMS - char *p = strchr(name, ';'); - char *q = p; - - if (q != NULL) { - for (q++; *q != '\0'; q++) { - if (!isdigit((unsigned char)*q)) - return 1; - } - } - - *p = '\0'; -# endif - return 1; -} - /* * Process a directory; return number of errors found. */ @@ -346,7 +328,6 @@ static int do_dir(const char *dirname, enum Hash h) } while ((filename = OPENSSL_DIR_read(&d, dirname)) != NULL) { if ((copy = strdup(filename)) == NULL - || !massage_filename(copy) || sk_OPENSSL_STRING_push(files, copy) == 0) { BIO_puts(bio_err, "out of memory\n"); exit(1); |