Prepare for next version.
[oweals/openssl.git] / crypto / x509 / by_dir.c
index f33ea7b84f2529a683bb6bded6d9be179253a01d..341e0ba6a41da3d2f85fafdc5c92e4f47dc51e5d 100644 (file)
 #include <openssl/lhash.h>
 #include <openssl/x509.h>
 
+#ifdef _WIN32
+#define stat   _stat
+#endif
+
 typedef struct lookup_dir_st
        {
        BUF_MEM *buffer;
@@ -198,7 +202,7 @@ static int add_cert_dir(BY_DIR *ctx, const char *dir, int type)
                        len=(int)(p-ss);
                        if (len == 0) continue;
                        for (j=0; j<ctx->num_dirs; j++)
-                               if (strlen(ctx->dirs[j]) == len &&
+                               if (strlen(ctx->dirs[j]) == (size_t)len &&
                                    strncmp(ctx->dirs[j],ss,(unsigned int)len) == 0)
                                        break;
                        if (j<ctx->num_dirs)