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