-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Bindings for GNU libgnutls
--   
--   You almost certainly don't want to depend on this release.
--   
--   This is a pre-alpha, almost useless release; its only purpose is to
--   enable TLS support in some of my other libraries. More complete
--   bindings for GNU TLS will be released at a later date.
@package gnutls
@version 0.1.4

module Network.Protocol.TLS.GNU
data TLS a
data Session
data Error
Error :: Integer -> Error
runTLS :: Session -> TLS a -> IO (Either Error a)
runClient :: Transport -> TLS a -> IO (Either Error a)
getSession :: TLS Session
handshake :: TLS ()
rehandshake :: TLS ()
putBytes :: ByteString -> TLS ()
getBytes :: Integer -> TLS ByteString
checkPending :: TLS Integer
data Transport
Transport :: (ByteString -> IO ()) -> (Integer -> IO ByteString) -> Transport
transportPush :: Transport -> ByteString -> IO ()
transportPull :: Transport -> Integer -> IO ByteString
handleTransport :: Handle -> Transport
data Credentials
setCredentials :: Credentials -> TLS ()
certificateCredentials :: TLS Credentials
class Prioritised a
setPriority :: Prioritised a => [a] -> TLS ()
data CertificateType
X509 :: CertificateType
OpenPGP :: CertificateType
instance Show Error
instance Show CertificateType
instance Prioritised CertificateType
instance MonadError TLS
instance MonadIO TLS
instance Monad TLS
instance Functor TLS
