Rename sslDisableCertficateValidation to sslDisableCertificateValidation
This commit is contained in:
parent
2dc5878f29
commit
bc814b6345
@ -9,7 +9,7 @@ data Settings = Settings
|
||||
{ sslPort :: PortNumber
|
||||
, sslMaxLineLength :: Int
|
||||
, sslLogToConsole :: Bool
|
||||
, sslDisableCertficateValidation :: Bool
|
||||
, sslDisableCertificateValidation :: Bool
|
||||
}
|
||||
|
||||
defaultSettingsWithPort :: PortNumber -> Settings
|
||||
@ -17,5 +17,5 @@ defaultSettingsWithPort p = Settings
|
||||
{ sslPort = p
|
||||
, sslMaxLineLength = 10000
|
||||
, sslLogToConsole = False
|
||||
, sslDisableCertficateValidation = False
|
||||
, sslDisableCertificateValidation = False
|
||||
}
|
||||
|
||||
@ -43,7 +43,7 @@ connectSSL hostname cfg = do
|
||||
return $ connectionToStream c cfg
|
||||
where params = ConnectionParams hostname port (Just tlsCfg) Nothing
|
||||
port = sslPort cfg
|
||||
tlsCfg = def { settingDisableCertificateValidation = sslDisableCertficateValidation cfg }
|
||||
tlsCfg = def { settingDisableCertificateValidation = sslDisableCertificateValidation cfg }
|
||||
|
||||
connectPlain :: String -> Settings -> IO (BSStream, STARTTLS)
|
||||
connectPlain hostname cfg = do
|
||||
@ -52,4 +52,4 @@ connectPlain hostname cfg = do
|
||||
return (connectionToStream c cfg, connectionSetSecure ctx c tlsCfg)
|
||||
where params = ConnectionParams hostname port Nothing Nothing
|
||||
port = sslPort cfg
|
||||
tlsCfg = def { settingDisableCertificateValidation = sslDisableCertficateValidation cfg }
|
||||
tlsCfg = def { settingDisableCertificateValidation = sslDisableCertificateValidation cfg }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user