peyotls-0.1.6.6: Pretty Easy YOshikuni-made TLS library

Copyright(c) Yoshikuni Jujo, 2014
LicenseBSD3
MaintainerPAF01143@nifty.ne.jp
StabilityExperimental
Safe HaskellNone
LanguageHaskell98

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

data Alert Source

Constructors

Alert AlertLevel AlertDesc String 
ExternalAlert String 
NotDetected String 

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

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.

Renegotiation

renegotiate :: (ValidateHandle h, CPRG g) => TlsHandle h g -> TlsM h g () Source

Cipher Suite

data KeyEx :: *

Instances

Others