hs-tls/Network/TLS.hs

93 lines
2 KiB
Haskell
Raw Normal View History

-- |
-- Module : Network.TLS
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : unknown
--
module Network.TLS
2012-03-28 07:49:31 +00:00
(
-- * Context configuration
Params(..)
, ClientCertParamsClient(..)
, ClientCertParamsServer(..)
, RoleParams(..)
, ClientParams(..)
, ServerParams(..)
, updateClientParams
, updateServerParams
2012-03-28 07:49:31 +00:00
, Logging(..)
, CertificateUsage(..)
, CertificateRejectReason(..)
, defaultParamsClient
, defaultParamsServer
, defaultLogging
-- * Session
, SessionID
, SessionData(..)
, SessionManager(..)
, NoSessionManager(..)
, setSessionManager
2012-03-28 07:49:31 +00:00
-- * Backend abstraction
, Backend(..)
2012-03-28 07:49:31 +00:00
-- * Context object
, Context
, ctxConnection
2012-03-28 07:49:31 +00:00
-- * Creating a context
, contextNew
, contextNewOnHandle
, contextFlush
, contextClose
2012-03-28 07:49:31 +00:00
-- * deprecated type aliases
, TLSParams
, TLSLogging
, TLSCertificateUsage
, TLSCertificateRejectReason
, TLSCtx
2012-03-28 07:49:31 +00:00
-- * deprecated values
, defaultParams
2012-03-28 07:49:31 +00:00
-- * Initialisation and Termination of context
, bye
, handshake
2012-03-28 07:49:31 +00:00
-- * Next Protocol Negotiation
, getNegotiatedProtocol
2012-03-28 07:49:31 +00:00
-- * High level API
, sendData
, recvData
, recvData'
2012-03-28 07:49:31 +00:00
-- * Crypto Key
, PrivateKey(..)
-- * Compressions & Predefined compressions
, CompressionC(..)
, Compression(..)
, nullCompression
-- * Ciphers & Predefined ciphers
, Cipher(..)
, Bulk(..)
-- * Versions
, Version(..)
-- * Errors
, TLSError(..)
-- * Exceptions
, HandshakeFailed(..)
, ConnectionNotEstablished(..)
) where
import Network.TLS.Struct (Version(..), TLSError(..))
import Network.TLS.Crypto (PrivateKey(..))
import Network.TLS.Cipher (Cipher(..), Bulk(..))
import Network.TLS.Compression (CompressionC(..), Compression(..), nullCompression)
import Network.TLS.Context
import Network.TLS.Core
import Network.TLS.Session