* Maybe the shared secret is wrong?
*/
if (client->active &&
- ((pkt->hdr.flags & FR_TACACS_FLAGS_VALUE_UNENCRYPTED) == 0) &&
+ ((pkt->hdr.flags & FR_FLAGS_VALUE_UNENCRYPTED) == 0) &&
RDEBUG_ENABLED2 &&
((vp = fr_pair_find_by_da(&request->request_pairs, attr_tacacs_user_name)) != NULL) &&
(fr_utf8_str((uint8_t const *) vp->vp_strvalue, vp->vp_length) < 0)) {
* Set the status.
*/
MEM(pair_update_reply(&vp, attr_tacacs_accounting_status) >= 0);
- vp->vp_uint8 = FR_TACACS_ACCOUNTING_STATUS_VALUE_ERROR;
+ vp->vp_uint8 = FR_ACCOUNTING_STATUS_VALUE_ERROR;
}
static unlang_action_t mod_process(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
fr_tacacs_packet_t *pkt = (fr_tacacs_packet_t *) buffer;
thread->seen_first_packet = true;
- thread->single_connection = ((pkt->hdr.flags & FR_TACACS_FLAGS_VALUE_SINGLE_CONNECT) != 0);
+ thread->single_connection = ((pkt->hdr.flags & FR_FLAGS_VALUE_SINGLE_CONNECT) != 0);
}
/*
pkt = (fr_tacacs_packet_t *) buffer;
if (written == 0) {
thread->stats.total_responses++;
- if (thread->single_connection) pkt->hdr.flags |= FR_TACACS_FLAGS_VALUE_SINGLE_CONNECT;
+ if (thread->single_connection) pkt->hdr.flags |= FR_FLAGS_VALUE_SINGLE_CONNECT;
}
/*
* are only doing a single session. In which case,
* return 0, which tells the caller to close the socket.
*/
- if (((pkt->hdr.flags & FR_TACACS_FLAGS_VALUE_SINGLE_CONNECT) == 0) &&
+ if (((pkt->hdr.flags & FR_FLAGS_VALUE_SINGLE_CONNECT) == 0) &&
(data_size + written) >= buffer_len) {
// @todo - check status for pass / fail / error, which
// cause the connection to be closed. Everything else