parent
e1b4bb5597
commit
87e8313108
@ -1,3 +0,0 @@
|
||||
export interface IEAPChallenge {
|
||||
decode(data: Buffer, stateID: string): { username: string; password?: string };
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
import { RadiusPacket } from 'radius';
|
||||
|
||||
export type ResponseHandler = (
|
||||
msg: Buffer
|
||||
) => Promise<{ identifier: number; response: ResponseHandler }>;
|
||||
export type ResponseAuthHandler = (
|
||||
username: string,
|
||||
password: string,
|
||||
additionalAuthHandler?: AdditionalAuthHandler
|
||||
) => void;
|
||||
|
||||
export interface IResponseHandlers {
|
||||
response: ResponseHandler;
|
||||
checkAuth: ResponseAuthHandler;
|
||||
}
|
||||
|
||||
export type AdditionalAuthHandler = (
|
||||
success: boolean,
|
||||
params: { packet: RadiusPacket; attributes: any[]; secret: string }
|
||||
) => void;
|
Loading…
Reference in new issue