hs-tls/Network/TLS.hs
Vincent Hanquez 74633cd68f add internal module as backdoor for hidden function/definition.
also export core sendPacket/recvPacket
2011-03-19 21:45:43 +00:00

50 lines
1,020 B
Haskell

-- |
-- Module : Network.TLS
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : unknown
--
module Network.TLS
(
-- * Context configuration
TLSParams(..)
, defaultParams
-- * Context object
, TLSCtx
, ctxHandle
-- * Creating a context
, client
, server
-- * Initialisation and Termination of context
, bye
, handshake
-- * High level API
, sendData
, recvData
-- * Crypto Key
, PrivateKey(..)
-- * Crypto RNG
, makeSRandomGen, SRandomGen
-- * Compressions & Predefined compressions
, Compression
, nullCompression
-- * Ciphers & Predefined ciphers
, Cipher
-- * Versions
, Version(..)
-- * Errors
, TLSError(..)
) where
import Network.TLS.Struct (Version(..), TLSError(..))
import Network.TLS.Crypto (PrivateKey(..))
import Network.TLS.Cipher (Cipher(..))
import Network.TLS.Compression (Compression(..), nullCompression)
import Network.TLS.SRandom (makeSRandomGen, SRandomGen)
import Network.TLS.Core