From 2a0f3420f72b47b31c259ffd9f1dde8e646cc0e6 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Wed, 29 Oct 2014 16:07:12 -0400 Subject: [PATCH] Fix standalone bio_test and v3name_test on Win64. Win32 still has assembly issues and bssl wants to select() on both sockets and stdin (doesn't work on Windows). But this is a start. Change-Id: Iafc5215be281aed836c5ac2dc8b379399848a2c2 Reviewed-on: https://boringssl-review.googlesource.com/2090 Reviewed-by: Adam Langley --- crypto/bio/CMakeLists.txt | 3 +++ crypto/x509v3/v3nametest.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/crypto/bio/CMakeLists.txt b/crypto/bio/CMakeLists.txt index 86092f0a..91789315 100644 --- a/crypto/bio/CMakeLists.txt +++ b/crypto/bio/CMakeLists.txt @@ -26,3 +26,6 @@ add_executable( ) target_link_libraries(bio_test crypto) +if (WIN32) + target_link_libraries(bio_test ws2_32) +endif() diff --git a/crypto/x509v3/v3nametest.c b/crypto/x509v3/v3nametest.c index 6a2ea859..b2e9c09c 100644 --- a/crypto/x509v3/v3nametest.c +++ b/crypto/x509v3/v3nametest.c @@ -53,9 +53,9 @@ * Hudson (tjh@cryptsoft.com). */ #include -#include #include +#include #include #include @@ -326,7 +326,7 @@ static void run_cert(X509 *crt, const char *nameincert, const char *const *pname = names; while (*pname) { - int samename = strcasecmp(nameincert, *pname) == 0; + int samename = OPENSSL_strcasecmp(nameincert, *pname) == 0; size_t namelen = strlen(*pname); char *name = malloc(namelen); int match, ret;