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;