Skip to content

Commit f4c7c52

Browse files
committed
Revert "Explicitly use contextSetDefaultVerifyPaths (#72)"
This reverts commit cd7f427.
1 parent fd36bf6 commit f4c7c52

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ library:
2828
- Testing.CurlRunnings.Internal.KeyValuePairs
2929
- Testing.CurlRunnings.Internal.Payload
3030
dependencies:
31-
- HsOpenSSL >=0.11.7
31+
- HsOpenSSL
3232
- aeson >=1.2.4.0
3333
- base64-bytestring >=1.0.0.2
3434
- bytestring >=0.10.8.2

src/Testing/CurlRunnings.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import Network.HTTP.Conduit
5050
import Network.HTTP.Simple hiding (Header)
5151
import qualified Network.HTTP.Simple as HTTP
5252
import qualified Network.HTTP.Types as NT
53-
import OpenSSL.Session (VerificationMode (..), contextSetDefaultVerifyPaths)
53+
import OpenSSL.Session (VerificationMode (..))
5454
import System.Directory
5555
import System.Environment
5656
import Testing.CurlRunnings.Internal
@@ -139,7 +139,7 @@ runCase state@(CurlRunningsState _ _ _ tlsCheckType) curlCase = do
139139
-- Don't do any loading from custom locations but
140140
-- instead use OpenSSL's default settings.
141141
-- See https://github.com/snoyberg/http-client/issues/462
142-
{ HTTP.osslSettingsLoadCerts = contextSetDefaultVerifyPaths }
142+
{ HTTP.osslSettingsLoadCerts = \_ -> pure () }
143143
SkipTLSCheck -> HTTP.defaultMakeContext HTTP.defaultOpenSSLSettings
144144
{ HTTP.osslSettingsVerifyMode = VerifyNone }
145145

0 commit comments

Comments
 (0)