peyotls-0.1.6.2: Pretty Easy YOshikuni-made TLS library

StabilityExperimental
MaintainerPAF01143@nifty.ne.jp
Safe HaskellNone

Network.PeyoTLS.Client

Contents

Description

 

Synopsis

Basic

type TlsM h g = ErrorT Alert (StateT (TlsState h g) (HandleMonad h))Source

data TlsHandle h g Source

Instances

Show h => Show (TlsHandle h g) 
(ValidateHandle h, CPRG g) => HandleLike (TlsHandle h g) 

data Alert Source

Constructors

Alert AlertLevel AlertDesc String 
ExternalAlert String 
NotDetected String 

Instances

Show Alert 
Error Alert 

run :: HandleLike h => TlsM h g a -> g -> HandleMonad h aSource

open :: (ValidateHandle h, CPRG g) => h -> [CipherSuite] -> [(CertSecretKey, CertificateChain)] -> CertificateStore -> TlsM h g (TlsHandle h g)Source

Don't forget check server name by checkName.

open' :: (ValidateHandle h, CPRG g) => h -> String -> [CipherSuite] -> [(CertSecretKey, CertificateChain)] -> CertificateStore -> TlsM h g (TlsHandle h g)Source

This function open and check server name. Use this so as not to forget to check server name.

getNames :: HandleLike h => TlsHandle h g -> TlsM h g [String]Source

checkName :: HandleLike h => TlsHandle h g -> String -> TlsM h g BoolSource

Renegotiation

Cipher Suite

data KeyEx Source

Instances

Eq KeyEx 
Read KeyEx 
Show KeyEx 

data BulkEnc Source

Instances

Eq BulkEnc 
Read BulkEnc 
Show BulkEnc 

Others

data CertSecretKey Source

Constructors

RsaKey 

Fields

rsaKey :: PrivateKey
 
EcdsaKey 

Fields

ecdsaKey :: PrivateKey
 

Instances