Documentation ¶
Index ¶
- Constants
- type Identity
- type MD5Challenge
- type MSCHAPv2
- type MSCHAPv2Challenge
- type MSCHAPv2Response
- func (d *MSCHAPv2Response) GenerateAuthenticatorResponse(password string, authenticatorChallenge []byte) string
- func (d *MSCHAPv2Response) GenerateNTResponse(password string, authenticatorChallenge []byte) []byte
- func (d *MSCHAPv2Response) UnmarshalBinary(b []byte) error
- func (d *MSCHAPv2Response) Verify(password string, authenticatorChallenge []byte) bool
- type MSCHAPv2SuccessRequest
- type Nak
- type Packet
- type UnsupportedMSCHAPv2OpCodeError
- type UnsupportedTypeError
Constants ¶
View Source
const ( CodeRequest = 1 CodeResponse = 2 CodeSuccess = 3 CodeFailure = 4 )
View Source
const ( MSCHAPv2OpCodeChallenge = 1 MSCHAPv2OpCodeResponse = 2 MSCHAPv2OpCodeSuccess = 3 )
View Source
const ( TypeIdentity = 1 TypeNotification = 2 TypeNak = 3 TypeMD5Challenge = 4 TypeOneTimePassword = 5 TypeGenericTokenCard = 6 TypeMSCHAPv2 = 26 TypeExpendedNak = 254 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MD5Challenge ¶
func (*MD5Challenge) MarshalBinary ¶
func (d *MD5Challenge) MarshalBinary() ([]byte, error)
func (*MD5Challenge) UnmarshalBinary ¶
func (d *MD5Challenge) UnmarshalBinary(b []byte) error
type MSCHAPv2 ¶
func NewMSCHAPv2 ¶
func (*MSCHAPv2) DecodeData ¶
func (*MSCHAPv2) MarshalBinary ¶
func (*MSCHAPv2) UnmarshalBinary ¶
type MSCHAPv2Challenge ¶
func NewMSCHAPv2Challenge ¶
func NewMSCHAPv2Challenge(name string) (*MSCHAPv2Challenge, error)
func (*MSCHAPv2Challenge) MarshalBinary ¶
func (d *MSCHAPv2Challenge) MarshalBinary() ([]byte, error)
type MSCHAPv2Response ¶
func (*MSCHAPv2Response) GenerateAuthenticatorResponse ¶
func (d *MSCHAPv2Response) GenerateAuthenticatorResponse(password string, authenticatorChallenge []byte) string
func (*MSCHAPv2Response) GenerateNTResponse ¶
func (d *MSCHAPv2Response) GenerateNTResponse(password string, authenticatorChallenge []byte) []byte
func (*MSCHAPv2Response) UnmarshalBinary ¶
func (d *MSCHAPv2Response) UnmarshalBinary(b []byte) error
type MSCHAPv2SuccessRequest ¶
type MSCHAPv2SuccessRequest struct {
AuthenticatorResponse string
}
func (*MSCHAPv2SuccessRequest) MarshalBinary ¶
func (d *MSCHAPv2SuccessRequest) MarshalBinary() ([]byte, error)
type Packet ¶
func (*Packet) DecodeData ¶
func (*Packet) MarshalBinary ¶
func (*Packet) UnmarshalBinary ¶
type UnsupportedMSCHAPv2OpCodeError ¶
type UnsupportedMSCHAPv2OpCodeError struct {
OpCode int
}
func (UnsupportedMSCHAPv2OpCodeError) Error ¶
func (e UnsupportedMSCHAPv2OpCodeError) Error() string
type UnsupportedTypeError ¶
type UnsupportedTypeError struct {
Type int
}
func (UnsupportedTypeError) Error ¶
func (e UnsupportedTypeError) Error() string
Click to show internal directories.
Click to hide internal directories.