| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.HTTP.Client.OpenSSL
Description
Support for making connections via the OpenSSL library.
Synopsis
- withOpenSSL :: IO a -> IO a
- newOpenSSLManager :: MonadIO m => m Manager
- opensslManagerSettings :: IO SSLContext -> ManagerSettings
- defaultMakeContext :: OpenSSLSettings -> IO SSLContext
- data OpenSSLSettings = OpenSSLSettings {
- osslSettingsOptions :: [SSLOption]
- osslSettingsVerifyMode :: VerificationMode
- osslSettingsCiphers :: String
- osslSettingsLoadCerts :: SSLContext -> IO ()
- defaultOpenSSLSettings :: OpenSSLSettings
Documentation
withOpenSSL :: IO a -> IO a #
newOpenSSLManager :: MonadIO m => m Manager Source #
Create a new Manager using opensslManagerSettings and defaultMakeContext
with defaultOpenSSLSettings.
opensslManagerSettings :: IO SSLContext -> ManagerSettings Source #
Note that it is the caller's responsibility to pass in an appropriate context.
defaultMakeContext :: OpenSSLSettings -> IO SSLContext Source #
data OpenSSLSettings Source #
Constructors
| OpenSSLSettings | |
Fields
| |
defaultOpenSSLSettings :: OpenSSLSettings Source #
Default OpenSSL settings. In particular:
- SSLv2 and SSLv3 are disabled
- Hostname validation
DEFAULTcipher list- Certificates loaded from OS-specific store
Note that these settings might change in the future.