Home | History | Annotate | Download | only in pam_radius

Lines Matching defs:num_msgs

197 	int num_msgs;
203 num_msgs = 0;
213 if (num_msgs >= MAX_CHALLENGE_MSGS) {
218 msgs[num_msgs].msg = rad_cvt_string(attrval, attrlen);
219 if (msgs[num_msgs].msg == NULL) {
224 msgs[num_msgs].msg_style = PAM_TEXT_INFO;
225 msg_ptrs[num_msgs] = &msgs[num_msgs];
226 num_msgs++;
234 if (num_msgs == 0) {
235 msgs[num_msgs].msg = strdup("(null RADIUS challenge): ");
236 if (msgs[num_msgs].msg == NULL) {
240 msgs[num_msgs].msg_style = PAM_TEXT_INFO;
241 msg_ptrs[num_msgs] = &msgs[num_msgs];
242 num_msgs++;
244 msgs[num_msgs-1].msg_style = PAM_PROMPT_ECHO_ON;
250 if ((retval = conv->conv(num_msgs, msg_ptrs, &resp,
253 if (build_access_request(radh, user, resp[num_msgs-1].resp, NULL,
256 memset(resp[num_msgs-1].resp, 0, strlen(resp[num_msgs-1].resp));
257 free(resp[num_msgs-1].resp);
259 while (num_msgs > 0)
260 free(msgs[--num_msgs].msg);