hs-tls/Network/TLS.hs

76 lines
1.5 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
(
-- * Context configuration
Params(..)
, Logging(..)
, CertificateUsage(..)
, CertificateRejectReason(..)
, defaultParamsClient
, defaultParamsServer
, defaultLogging
-- * Backend abstraction
, Backend(..)
-- * Context object
, Context
, ctxConnection
-- * Creating a context
, contextNew
, contextNewOnHandle
-- * deprecated type aliases
, TLSParams
, TLSLogging
, TLSCertificateUsage
, TLSCertificateRejectReason
, TLSCtx
-- * deprecated values
, defaultParams
-- * Initialisation and Termination of context
, bye
, handshake
-- * Next Protocol Negotiation
, getNegotiatedProtocol
-- * High level API
, sendData
, recvData
, recvData'
-- * Crypto Key
, PrivateKey(..)
-- * Compressions & Predefined compressions
, CompressionC(..)
, Compression(..)
, nullCompression
-- * Ciphers & Predefined ciphers
2011-08-12 17:32:18 +00:00
, Cipher(..)
, Bulk(..)
-- * Versions
, Version(..)
-- * Errors
, TLSError(..)
2012-01-18 06:41:32 +00:00
-- * 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