Navigation



Ignore:
Timestamp:
Sep 15, 2010, 2:24:45 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Hide and automate the Proxy-State attributes management in RADIUS gateway

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_radgw/rgw_clients.c

    r548 r550  
    975975        }
    976976       
     977        /* Add all the Proxy-States back in the message */
     978        for (p = 0; p < req->ps_nb; p++) {
     979                struct radius_attr_hdr * attr = (struct radius_attr_hdr *)(req->radius.buf + req->radius.attr_pos[req->ps_first + p]);
     980               
     981                if (radius_msg_add_attr_to_array(*msg, attr)) {
     982                        TRACE_DEBUG(INFO, "Error in radius_msg_add_attr_to_array, ENOMEM");
     983                        radius_msg_free(*msg);
     984                        free(*msg);
     985                        *msg = NULL;
     986                        return ENOMEM;
     987                }
     988        }
     989       
     990        /* Add the Message-Authenticator if needed, and other final tasks */
    977991        if (radius_msg_finish_srv(*msg, cli->key.data, cli->key.len, req->radius.hdr->authenticator)) {
    978992                TRACE_DEBUG(INFO, "An error occurred while preparing the RADIUS answer");
Note: See TracChangeset for help on using the changeset viewer.