From a9950ac14243a744bee3e4b1bdbe0aa527d4590e Mon Sep 17 00:00:00 2001
From: Jonathan Helmus <jjhelmus@gmail.com>
Date: Mon, 17 Feb 2020 15:45:06 -0600
Subject: [PATCH 1/7] windows ssl lib names

Co-Authored-By: Julien Schueller <schueller@phimeca.com>
Co-Authored-By: Nicholas Bollweg <nick.bollweg@gmail.com>
Co-Authored-By: Marius van Niekerk <marius.v.niekerk@gmail.com>
---
 setup.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/setup.py b/setup.py
index ec27fe478f..bea7f92e15 100644
--- a/setup.py
+++ b/setup.py
@@ -329,10 +329,10 @@ if "win32" in sys.platform:
         'ws2_32',
     )
 if BUILD_WITH_SYSTEM_OPENSSL:
-    EXTENSION_LIBRARIES += (
-        'ssl',
-        'crypto',
-    )
+    if not "win32" in sys.platform:
+        EXTENSION_LIBRARIES += ('ssl', 'crypto',)
+    else:
+        EXTENSION_LIBRARIES += ('libssl', 'libcrypto',)
 if BUILD_WITH_SYSTEM_ZLIB:
     EXTENSION_LIBRARIES += ('z',)
 if BUILD_WITH_SYSTEM_CARES:
-- 
2.37.0.windows.1
