diff options
Diffstat (limited to 'crypto/o_str.c')
-rw-r--r-- | crypto/o_str.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crypto/o_str.c b/crypto/o_str.c index da8860491d..56104a6c34 100644 --- a/crypto/o_str.c +++ b/crypto/o_str.c @@ -60,6 +60,12 @@ #include <e_os.h> #include "o_str.h" +#if !defined(OPENSSL_IMPLEMENTS_strncasecmp) && \ + !defined(OPENSSL_SYSNAME_WIN32) && \ + !defined(NETWARE_CLIB) +# include <strings.h> +#endif + int OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n) { #if defined(OPENSSL_IMPLEMENTS_strncasecmp) @@ -94,3 +100,12 @@ int OPENSSL_strcasecmp(const char *str1, const char *str2) #endif } +int OPENSSL_memcmp(const void *v1,const void *v2,size_t n) + { + const unsigned char *c1=v1,*c2=v2; + int ret=0; + + while(n && (ret=*c1-*c2)==0) n--,c1++,c2++; + + return ret; + } |