tlsParams :: HostName -> ClientParams
tlsParams host =
  (defaultParamsClient host "")
      { clientSupported = def
           { supportedVersions = [TLS10, TLS12]
           , supportedCiphers = ciphers
           }
      , clientWantSessionResume = Nothing
      , clientUseServerNameIndication = True
      , clientShared = def { sharedValidationCache = vcache }
      }
  where
    vcache =
      ValidationCache (\_ _ _ -> return ValidationCachePass) (\_ _ _ -> return ())
tlsParams :: HostName -> ClientParams
tlsParams host =
  (defaultParamsClient host "")
      { clientSupported = def
           { supportedVersions = [TLS10, TLS12]
           , supportedCiphers = ciphers
           }
      , clientWantSessionResume = Nothing
      , clientUseServerNameIndication = True
      , clientShared = def { sharedValidationCache = vcache }
      }
  where
    vcache =
      ValidationCache (\_ _ _ -> return ValidationCachePass) (\_ _ _ -> return ())
tlsParams host =
  (defaultParamsClient host "")
      { clientSupported = def
           { supportedVersions = [TLS10, TLS12]
           , supportedCiphers = ciphers
           }
      , clientWantSessionResume = Nothing
      , clientUseServerNameIndication = True
      , clientShared = def { sharedValidationCache = vcache }
      }
  where
    vcache =
      ValidationCache (\_ _ _ -> return ValidationCachePass) (\_ _ _ -> return ())