summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-09-09 14:48:36 +0000
committerRichard Levitte <levitte@openssl.org>2003-09-09 14:48:36 +0000
commite6fa67fa9337d498b4383b067da04c6b6e802cd0 (patch)
tree238c265927f1f143be8d0b62d80eaba98d1f8c5c /apps
parent9ea72d3705697b3d83023326f2d453530e5b4802 (diff)
Generalise the definition of strcasecmp() and strncasecmp() for
platforms that don't (necessarely) have it. In the case of VMS, this means moving a couple of functions from apps/ to crypto/ and make them general (although only used privately).
Diffstat (limited to 'apps')
-rw-r--r--apps/apps.c26
-rw-r--r--apps/apps.h6
-rw-r--r--apps/ca.c10
3 files changed, 0 insertions, 42 deletions
diff --git a/apps/apps.c b/apps/apps.c
index ac9e3daa5e..b1916bbc0f 100644
--- a/apps/apps.c
+++ b/apps/apps.c
@@ -126,16 +126,6 @@
#include <openssl/engine.h>
#endif
-#ifdef OPENSSL_SYS_WINDOWS
-#define strcasecmp _stricmp
-#else
-# ifdef NO_STRINGS_H
- int strcasecmp();
-# else
-# include <strings.h>
-# endif /* NO_STRINGS_H */
-#endif
-
#define NON_MAIN
#include "apps.h"
#undef NON_MAIN
@@ -378,22 +368,6 @@ int WIN32_rename(char *from, char *to)
}
#endif
-#ifdef OPENSSL_SYS_VMS
-int VMS_strcasecmp(const char *str1, const char *str2)
- {
- while (*str1 && *str2)
- {
- int res = toupper(*str1) - toupper(*str2);
- if (res) return res < 0 ? -1 : 1;
- }
- if (*str1)
- return 1;
- if (*str2)
- return -1;
- return 0;
- }
-#endif
-
int chopup_args(ARGS *arg, char *buf, int *argc, char **argv[])
{
int num,len,i;
diff --git a/apps/apps.h b/apps/apps.h
index 8a9c4ab0a0..0d50a94774 100644
--- a/apps/apps.h
+++ b/apps/apps.h
@@ -141,12 +141,6 @@ long app_RAND_load_files(char *file); /* `file' is a list of files to read,
int WIN32_rename(char *oldname,char *newname);
#endif
-/* VMS below version 7.0 doesn't have strcasecmp() */
-#ifdef OPENSSL_SYS_VMS
-#define strcasecmp(str1,str2) VMS_strcasecmp((str1),(str2))
-int VMS_strcasecmp(const char *str1, const char *str2);
-#endif
-
#ifndef MONOLITH
#define MAIN(a,v) main(a,v)
diff --git a/apps/ca.c b/apps/ca.c
index 2c7e91aabb..780868a9f0 100644
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -76,16 +76,6 @@
#include <openssl/ocsp.h>
#include <openssl/pem.h>
-#ifdef OPENSSL_SYS_WINDOWS
-#define strcasecmp _stricmp
-#else
-# ifdef NO_STRINGS_H
- int strcasecmp();
-# else
-# include <strings.h>
-# endif /* NO_STRINGS_H */
-#endif
-
#ifndef W_OK
# ifdef OPENSSL_SYS_VMS
# if defined(__DECC)