Lines Matching refs:response
200 * Return true if the current response is valid for a request to the
229 len = h->response[POS_LENGTH] << 8 | h->response[POS_LENGTH+1];
233 /* Check the response authenticator */
235 MD5Update(&ctx, &h->response[POS_CODE],
239 MD5Update(&ctx, &h->response[POS_ATTRS],
244 if (memcmp(&h->response[POS_AUTH], md5, sizeof md5) != 0)
252 if (h->response[POS_CODE] != RAD_ACCOUNTING_RESPONSE) {
254 (void)memcpy(resp, h->response, (size_t)MSGSIZE);
260 if (h->response[pos] == RAD_MESSAGE_AUTHENTIC) {
268 HMAC_Update(hctx, &h->response[POS_CODE],
276 if (memcmp(md, &h->response[pos + 2],
281 pos += h->response[pos + 1];
568 rv = recvfrom(h->fd, h->response, (size_t)MSGSIZE,
576 h->resp_len = h->response[POS_LENGTH] << 8 |
577 h->response[POS_LENGTH+1];
579 return h->response[POS_CODE];
691 generr(h, "Malformed attribute in response");
694 type = h->response[h->resp_pos++];
695 *len = h->response[h->resp_pos++] - 2;
697 generr(h, "Malformed attribute in response");
700 *value = &h->response[h->resp_pos];
920 * Returns the response type code on success, or -1 on failure.