Lines Matching defs:packet
45 radius_calc_message_authenticator(RADIUS_PACKET * packet, const char *secret,
64 * Traverse the radius packet.
66 if (packet->request != NULL) {
67 if (!HMAC_Update(ctx, (const u_char *)packet->pdata, 4))
69 if (!HMAC_Update(ctx, (unsigned char *)packet->request->pdata
73 if (!HMAC_Update(ctx, (const u_char *)packet->pdata,
78 attr = ATTRS_BEGIN(packet->pdata);
79 end = ATTRS_END(packet->pdata);
106 radius_put_message_authenticator(RADIUS_PACKET * packet, const char *secret)
115 if (radius_unshift_raw_attr(packet, RADIUS_TYPE_MESSAGE_AUTHENTICATOR,
119 return (radius_set_message_authenticator(packet, secret));
123 radius_set_message_authenticator(RADIUS_PACKET * packet, const char *secret)
127 if (radius_calc_message_authenticator(packet, secret, ma) != 0)
130 return (radius_set_raw_attr(packet, RADIUS_TYPE_MESSAGE_AUTHENTICATOR,
135 radius_check_message_authenticator(RADIUS_PACKET * packet, const char *secret)
141 if (radius_calc_message_authenticator(packet, secret, ma0) != 0)
145 if ((rval = radius_get_raw_attr(packet,