The functions OPENSSL_strcasen?cmp() were forgotten when merging the

FIPS branch into this.  It's needed at least for certain OpenVMS
versions, and should really be used in a more general way.
This commit is contained in:
Richard Levitte 2004-05-12 10:09:00 +00:00
parent 141a64faff
commit d529f2a8f7
2 changed files with 4 additions and 9 deletions

View File

@ -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); int WIN32_rename(char *oldname,char *newname);
#endif #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 #ifndef MONOLITH
#define MAIN(a,v) main(a,v) #define MAIN(a,v) main(a,v)

View File

@ -56,11 +56,12 @@
* *
*/ */
#include <ctype.h> #include <o_str.h>
#include <strings.h>
#include "o_str.h"
#include <openssl/e_os2.h> #include <openssl/e_os2.h>
#undef strncasecmp
#undef strcasecmp
int OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n) int OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n)
{ {
#if defined(OPENSSL_SYS_VMS) #if defined(OPENSSL_SYS_VMS)