summaryrefslogtreecommitdiffstats
path: root/apps/apps.c
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/apps.c
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/apps.c')
-rw-r--r--apps/apps.c26
1 files changed, 0 insertions, 26 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;