| Portability | unknown |
|---|---|
| Stability | experimental |
| Maintainer | Vincent Hanquez <vincent@snarc.org> |
Network.TLS.Struct
Description
the Struct module contains all definitions and values of the TLS protocol
Documentation
type Bytes = ByteStringSource
data CertificateType Source
data HashAlgorithm Source
Constructors
| HashNone | |
| HashMD5 | |
| HashSHA1 | |
| HashSHA224 | |
| HashSHA256 | |
| HashSHA384 | |
| HashSHA512 | |
| HashOther Word8 |
data SignatureAlgorithm Source
data ProtocolType Source
Constructors
| ProtocolType_ChangeCipherSpec | |
| ProtocolType_Alert | |
| ProtocolType_Handshake | |
| ProtocolType_AppData |
Instances
Constructors
Instances
| Eq TLSError | |
| Show TLSError | |
| Error TLSError | |
| MonadError TLSError Get | |
| MonadError TLSError TLSRead |
Constructors
| Handshake Handshake | |
| Alert (AlertLevel, AlertDescription) | |
| ChangeCipherSpec | |
| AppData ByteString |
type FinishedData = [Word8]Source
data AlertDescription Source
Constructors
data HandshakeType Source
Constructors
| ClientHello !Version !ClientRandom !Session ![CipherID] ![CompressionID] (Maybe [Extension]) | |
| ServerHello !Version !ServerRandom !Session !CipherID !CompressionID (Maybe [Extension]) | |
| Certificates [Certificate] | |
| HelloRequest | |
| ServerHelloDone | |
| ClientKeyXchg Version ClientKeyData | |
| ServerKeyXchg ServerKeyXchgAlgorithmData | |
| CertRequest [CertificateType] (Maybe [(HashAlgorithm, SignatureAlgorithm)]) [Word8] | |
| CertVerify [Word8] | |
| Finished FinishedData |
numericalVer :: Version -> (Word8, Word8)Source
class TypeValuable a whereSource