Skip to content

Commit

Permalink
Fix for Windows OpenSSL build: Link crypt and ws2_32 in case OpenSSL …
Browse files Browse the repository at this point in the history
…is a newer

version which was build with capi engine support
  • Loading branch information
9EOR9 committed Jul 17, 2019
1 parent 970e929 commit 07f6f95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/auth/caching_sha2_pw.c
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions plugins/auth/sha256_pw.c
Expand Up @@ -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

Expand Down

0 comments on commit 07f6f95

Please sign in to comment.