From 07f6f951e4954ed12054aaa1ab65ab45bfa9b519 Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Wed, 17 Jul 2019 08:22:19 +0200 Subject: [PATCH] Fix for Windows OpenSSL build: Link crypt and ws2_32 in case OpenSSL is a newer version which was build with capi engine support --- plugins/auth/caching_sha2_pw.c | 3 +++ plugins/auth/sha256_pw.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/plugins/auth/caching_sha2_pw.c b/plugins/auth/caching_sha2_pw.c index f49c455a5..6e46891d9 100644 --- a/plugins/auth/caching_sha2_pw.c +++ b/plugins/auth/caching_sha2_pw.c @@ -23,6 +23,9 @@ #ifdef _WIN32 #if !defined(HAVE_OPENSSL) #define HAVE_WINCRYPT +#else +#pragma comment(lib, "crypt32.lib") +#pragma comment(lib, "ws2_32.lib") #endif #endif diff --git a/plugins/auth/sha256_pw.c b/plugins/auth/sha256_pw.c index 58e27735a..78b4ce0c3 100644 --- a/plugins/auth/sha256_pw.c +++ b/plugins/auth/sha256_pw.c @@ -23,6 +23,9 @@ #ifdef _WIN32 #if !defined(HAVE_OPENSSL) #define HAVE_WINCRYPT +#else +#pragma comment(lib, "crypt32.lib") +#pragma comment(lib, "ws2_32.lib") #endif #endif