Pack RADIUS data prior computing the authentication MAC
(radius_packet, RequestAuth)
| 613 | |
| 614 | |
| 615 | def prepare_packed_data(radius_packet, RequestAuth): |
| 616 | """ |
| 617 | Pack RADIUS data prior computing the authentication MAC |
| 618 | """ |
| 619 | s = bytes(radius_packet) |
| 620 | Code_Id_Length = s[:4] |
| 621 | Attributes = s[4 + 16:] |
| 622 | return Code_Id_Length + RequestAuth + Attributes |
| 623 | |
| 624 | |
| 625 | class RadiusAttr_Message_Authenticator(_RadiusAttrHexStringVal): |
no outgoing calls
no test coverage detected
searching dependent graphs…