mirror of
https://github.com/cubixle/radius-rs.git
synced 2026-04-30 17:08:45 +01:00
Comment for special RADIUS code; zero out authenticator
Signed-off-by: moznion <moznion@mail.moznion.net>
This commit is contained in:
@@ -180,7 +180,10 @@ impl Packet {
|
|||||||
| Code::CoANAK => {
|
| Code::CoANAK => {
|
||||||
let mut buf: Vec<u8> = bs[..4].to_vec();
|
let mut buf: Vec<u8> = bs[..4].to_vec();
|
||||||
match self.code {
|
match self.code {
|
||||||
Code::AccountingRequest | Code::DisconnectRequest | Code::CoARequest => {
|
Code::AccountingRequest // see "Request Authenticator" in https://tools.ietf.org/html/rfc2866#section-3
|
||||||
|
| Code::DisconnectRequest // same as "RFC2866"; https://tools.ietf.org/html/rfc5176#section-2.3
|
||||||
|
| Code::CoARequest // same as "RFC2866"; https://tools.ietf.org/html/rfc5176#section-2.3
|
||||||
|
=> {
|
||||||
buf.extend(vec![
|
buf.extend(vec![
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00,
|
||||||
|
|||||||
Reference in New Issue
Block a user