Copyright | (c) Erick Gonzalez 2017 |
---|---|
License | BSD3 |
Maintainer | erick@codemonkeylabs.de |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
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.
- radiusHeaderSize :: Word16
- sign :: ByteString -> ByteString -> ByteString
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