hs-tls/core/Network/TLS.hs

104 lines
2.3 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(..)
, RoleParams(..)
, ClientParams(..)
, ServerParams(..)
, updateClientParams
, updateServerParams
2012-03-28 07:49:31 +00:00
, Logging(..)
2012-10-21 17:32:07 +00:00
, Measurement(..)
2012-03-28 07:49:31 +00:00
, CertificateUsage(..)
, CertificateRejectReason(..)
, defaultParamsClient
, defaultParamsServer
, defaultLogging
2012-10-21 17:32:07 +00:00
, MaxFragmentEnum(..)
, HashAndSignatureAlgorithm
, HashAlgorithm(..)
, SignatureAlgorithm(..)
, CertificateType(..)
-- * raw types
, ProtocolType(..)
, Header(..)
-- * 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
2013-10-11 07:01:38 +00:00
, contextNewOnSocket
, contextFlush
, contextClose
2013-07-10 06:10:01 +00:00
, contextHookSetHandshakeRecv
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
, PubKey(..)
, PrivKey(..)
2012-10-20 07:56:39 +00:00
2012-03-28 07:49:31 +00:00
-- * Compressions & Predefined compressions
, module Network.TLS.Compression
2012-10-20 07:56:39 +00:00
2012-03-28 07:49:31 +00:00
-- * Ciphers & Predefined ciphers
, module Network.TLS.Cipher
2012-10-20 07:56:39 +00:00
2012-03-28 07:49:31 +00:00
-- * Versions
, Version(..)
2012-10-20 07:56:39 +00:00
2012-03-28 07:49:31 +00:00
-- * Errors
, TLSError(..)
2012-10-21 17:32:07 +00:00
, KxError(..)
, AlertDescription(..)
2012-10-20 07:56:39 +00:00
2012-03-28 07:49:31 +00:00
-- * Exceptions
, TLSException(..)
2012-03-28 07:49:31 +00:00
) where
import Network.TLS.Struct ( Version(..), TLSError(..), TLSException(..)
, HashAndSignatureAlgorithm, HashAlgorithm(..), SignatureAlgorithm(..)
, Header(..), ProtocolType(..), CertificateType(..)
, AlertDescription(..))
import Network.TLS.Crypto (KxError(..))
import Network.TLS.Cipher
import Network.TLS.Compression (CompressionC(..), Compression(..), nullCompression)
import Network.TLS.Context
import Network.TLS.Core
import Network.TLS.Session
import Data.X509 (PubKey(..), PrivKey(..))