The NAS generates the MN-FA key, not the AAA
authorAlan T. DeKok <aland@freeradius.org>
Wed, 10 Nov 2010 15:59:34 +0000 (16:59 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 10 Nov 2010 16:21:52 +0000 (17:21 +0100)
Patch from Ben Weichman

share/dictionary.freeradius.internal
src/modules/rlm_wimax/rlm_wimax.c

index 79be75b..4133c16 100644 (file)
@@ -341,8 +341,6 @@ ATTRIBUTE   Tmp-IP-Address-9                        1829    ipaddr
 #      these attributes.
 #
 ATTRIBUTE      WiMAX-MN-NAI                            1900    string
-ATTRIBUTE      WiMAX-FA-IP-Address                     1901    ipaddr
-ATTRIBUTE      WiMAX-MN-FA                             1902    octets
 
 ATTRIBUTE      TLS-Cert-Serial                         1910    string
 ATTRIBUTE      TLS-Cert-Expiration                     1911    string
index 8265802..6e7e1b9 100644 (file)
@@ -478,30 +478,6 @@ static int wimax_postauth(void *instance, REQUEST *request)
        }
 
        /*
-        *      Generate MN-FA = H(FA-RK, "MN FA" | FA-IP | MN-NAI)
-        */
-       ip = pairfind(request->reply->vps, 1901, 0);
-       if (fa_rk && ip && mn_nai) {
-               HMAC_Init_ex(&hmac, fa_rk->vp_octets, fa_rk->length,
-                            EVP_sha1(), NULL);
-               
-               HMAC_Update(&hmac, (const uint8_t *) "MN FA", 5);
-               HMAC_Update(&hmac, (const uint8_t *) &ip->vp_ipaddr, 4);
-               HMAC_Update(&hmac, (const uint8_t *) &mn_nai->vp_strvalue, mn_nai->length);
-
-               HMAC_Final(&hmac, &mip_rk_1[0], &rk1_len);
-
-               vp = radius_paircreate(request, &request->reply->vps,
-                                      1902, 0, PW_TYPE_OCTETS);
-               if (!vp) {
-                       RDEBUG("WARNING: Failed creating WiMAX-MN-FA");
-               } else {
-                       memcpy(vp->vp_octets, &mip_rk_1[0], rk1_len);
-                       vp->length = rk1_len;
-               }
-       }
-
-       /*
         *      Give additional information about requests && responses
         *
         *      WiMAX-RRQ-MN-HA-SPI