2011-03-02 08:43:14 +00:00
|
|
|
-- |
|
|
|
|
-- Module : Network.TLS
|
|
|
|
-- License : BSD-style
|
|
|
|
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
|
|
|
|
-- Stability : experimental
|
|
|
|
-- Portability : unknown
|
|
|
|
--
|
|
|
|
module Network.TLS
|
|
|
|
(
|
2011-03-19 21:45:43 +00:00
|
|
|
-- * 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
|
|
|
|
|
2011-03-02 08:43:14 +00:00
|
|
|
-- * Crypto Key
|
|
|
|
, PrivateKey(..)
|
|
|
|
-- * 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(..))
|
2011-03-19 09:22:12 +00:00
|
|
|
import Network.TLS.Cipher (Cipher(..))
|
2011-03-02 08:43:14 +00:00
|
|
|
import Network.TLS.Compression (Compression(..), nullCompression)
|
|
|
|
import Network.TLS.Core
|