Changeset 979:b90cb4c07160 in freeDiameter for extensions/app_radgw/radius.c
- Timestamp:
- Mar 15, 2013, 2:45:03 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_radgw/radius.c
r974 r979 328 328 for (i = 0; i < msg->radius.attr_used; i++) { 329 329 struct radius_attr_hdr *attr = (struct radius_attr_hdr *)(msg->radius.buf + msg->radius.attr_pos[i]); 330 fd_log_debug(" - Type: 0x%02hhx (%s) \nLen: %-3hhu", attr->type, rgw_msg_attrtype_str(attr->type), attr->length);330 fd_log_debug(" - Type: 0x%02hhx (%s) Len: %-3hhu", attr->type, rgw_msg_attrtype_str(attr->type), attr->length); 331 331 radius_msg_dump_attr_val(attr); 332 332 } … … 335 335 for (i = msg->ps_first; i < msg->ps_first + msg->ps_nb; i++) { 336 336 struct radius_attr_hdr *attr = (struct radius_attr_hdr *)(msg->radius.buf + msg->radius.attr_pos[i]); 337 fd_log_debug(" - Type: 0x%02hhx (%s) \nLen: %-3hhu", attr->type, rgw_msg_attrtype_str(attr->type), attr->length);337 fd_log_debug(" - Type: 0x%02hhx (%s) Len: %-3hhu", attr->type, rgw_msg_attrtype_str(attr->type), attr->length); 338 338 radius_msg_dump_attr_val(attr); 339 339 } … … 355 355 auth, MD5_MAC_LEN); 356 356 if (attr == NULL) { 357 printf("WARNING: Could not add " 358 "Message-Authenticator\n"); 357 printf("WARNING: Could not add Message-Authenticator\n"); 359 358 return -1; 360 359 } … … 693 692 if (tmp->type == RADIUS_ATTR_MESSAGE_AUTHENTICATOR) { 694 693 if (attr != NULL) { 695 printf("Multiple Message-Authenticator " 696 "attributes in RADIUS message\n"); 694 printf("Multiple Message-Authenticator attributes in RADIUS message\n"); 697 695 return 1; 698 696 }
Note: See TracChangeset
for help on using the changeset viewer.