You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
444 B
20 lines
444 B
4 years ago
|
import { RadiusPacket } from 'radius';
|
||
|
|
||
|
export enum PacketResponseCode {
|
||
|
AccessChallenge = 'Access-Challenge',
|
||
|
AccessAccept = 'Access-Accept',
|
||
|
AccessReject = 'Access-Reject'
|
||
|
}
|
||
|
|
||
|
export interface IPacketHandlerResult {
|
||
|
code?: PacketResponseCode;
|
||
|
attributes?: [string, Buffer][];
|
||
|
}
|
||
|
|
||
|
export interface IPacketHandler {
|
||
|
handlePacket(
|
||
|
attributes: { [key: string]: Buffer },
|
||
|
orgRadiusPacket: RadiusPacket
|
||
|
): Promise<IPacketHandlerResult>;
|
||
|
}
|