77 #define ATTR(attr, type, string, min, max) 78 #define UNASSIGNED(attr) 79 #define ATTRIBUTES(fields) 81 #define INTEGER(name, octets) 82 #define OCTETS(name, field_giving_octets) 83 #define PDU(name, id, fields) name = id, 95 #define ATTR(attr, type, string, min, max) 96 #define UNASSIGNED(attr) 97 #define ATTRIBUTES(fields) 99 #define INTEGER(name, octets) unsigned long name; 100 #define NULTERMINATED(name, max_octets) Octstr *name; 101 #define OCTETS(name, field_giving_octets) Octstr *name; 102 #define PDU(name, id, fields) struct name { fields } name;
Octstr * radius_pdu_pack(RADIUS_PDU *pdu)
RADIUS_PDU * radius_pdu_create(int type, RADIUS_PDU *req)
void radius_pdu_destroy(RADIUS_PDU *pdu)
Octstr * radius_get_attribute(RADIUS_PDU *pdu, Octstr *attribute)
RADIUS_PDU * radius_pdu_unpack(Octstr *data_without_len)
void radius_pdu_dump(RADIUS_PDU *pdu)
int radius_authenticate_pdu(RADIUS_PDU *pdu, Octstr **data, Octstr *secret)