radius-0.5.0.0: Remote Authentication Dial In User Service (RADIUS)

Copyright(c) Erick Gonzalez 2017
LicenseBSD3
Maintainererick@codemonkeylabs.de
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Network.RADIUS.Encoding

Contents

Description

This module provides Binary instances for the RADIUS Packet type and attributes. So you basically decode a (lazy) ByteString and get a RADIUS Packet back or you can encode a RADIUS Packet to a ByteString, which you can then send on the wire as is, etc. Simple as that.

Synopsis

Documentation

radiusHeaderSize :: Word16 Source #

Self explanatory. It can be useful when reading a RADIUS packet from a socket for example, so one can retrieve the packet header (containing the packet length) first and then use that to figure out how much data is left to read

sign :: ByteString -> ByteString -> ByteString Source #

Add authenticator field to a RADIUS packet using the specified secret

Orphan instances

Binary IPv4 Source # 

Methods

put :: IPv4 -> Put #

get :: Get IPv4 #

putList :: [IPv4] -> Put #

Binary IPv6 Source # 

Methods

put :: IPv6 -> Put #

get :: Get IPv6 #

putList :: [IPv6] -> Put #

Binary ARAPZoneAccess Source # 
Binary NASPortType Source # 
Binary TerminationAction Source # 
Binary LoginService Source # 
Binary FramedCompression Source # 
Binary FramedRouting Source # 
Binary FramedProtocol Source # 
Binary ServiceType Source # 
Binary PacketAttribute Source # 
Binary PacketType Source # 
Binary Packet Source # 

Methods

put :: Packet -> Put #

get :: Get Packet #

putList :: [Packet] -> Put #