Lines Matching defs:resp
104 * try to parse the string `resp' into attributes in `attr', also
109 parse_attributes (const char *resp, krb5_flags *attr, int *mask, int bit)
113 if (str2attributes(resp, &tmp) == 0) {
118 } else if(*resp == '?') {
121 fprintf (stderr, "Unable to parse \"%s\"\n", resp);
133 char buf[1024], resp[1024];
140 if(get_response("Attributes", buf, resp, sizeof(resp)) != 0)
142 if (resp[0] == '\0')
144 if (parse_attributes (resp, attr, mask, bit) == 0)
151 * try to parse the string `resp' into policy in `attr', also
159 parse_policy (const char *resp, char **policy, int *mask, int bit)
161 if (strspn(resp, VALID_POLICY_NAME_CHARS) == strlen(resp) &&
162 *resp != '\0') {
164 *policy = strdup(resp);
172 } else if(*resp == '?') {
175 fprintf (stderr, "Unable to parse \"%s\"\n", resp);
187 char buf[1024], resp[1024];
195 if(get_response("Policy", buf, resp, sizeof(resp)) != 0)
197 if (resp[0] == '\0')
199 if (parse_policy (resp, policy, mask, bit) == 0)
290 * try to parse the time in `resp' storing it in `value'
294 parse_timet (const char *resp, krb5_timestamp *value, int *mask, int bit)
298 if (str2time_t(resp, &tmp) == 0) {
304 if(*resp != '?')
305 fprintf (stderr, "Unable to parse time \"%s\"\n", resp);
317 char buf[1024], resp[1024];
325 if(get_response(prompt, buf, resp, sizeof(resp)) != 0)
327 if (parse_timet (resp, value, mask, bit) == 0)
375 * try to parse the string in `resp' into a deltad in `value'
380 parse_deltat (const char *resp, krb5_deltat *value, int *mask, int bit)
384 if (str2deltat(resp, &tmp) == 0) {
389 } else if(*resp == '?') {
392 fprintf (stderr, "Unable to parse time \"%s\"\n", resp);
404 char buf[1024], resp[1024];
411 if(get_response(prompt, buf, resp, sizeof(resp)) != 0)
413 if (parse_deltat (resp, value, mask, bit) == 0)