hs-tls/core/Network/TLS.hs

102 lines
2.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(..)
, 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
, 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
2012-12-31 15:48:04 +00:00
, Terminated(..)
2012-03-28 07:49:31 +00:00
, HandshakeFailed(..)
, ConnectionNotEstablished(..)
) where
2012-10-21 17:32:07 +00:00
import Network.TLS.Struct (Version(..), TLSError(..), 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(..))