| /freebsd/crypto/krb5/src/lib/krb5/os/ |
| H A D | prompter.c | 38 krb5_prompt prompts[]) in krb5_prompter_posix() argument 75 if (prompts[i].reply->length > INT_MAX) in krb5_prompter_posix() 78 errcode = setup_tty(fp, prompts[i].hidden, &saveparm, &osigint); in krb5_prompter_posix() 83 (void)fputs(prompts[i].prompt, stdout); in krb5_prompter_posix() 86 (void)memset(prompts[i].reply->data, 0, prompts[i].reply->length); in krb5_prompter_posix() 89 retp = fgets(prompts[i].reply->data, (int)prompts[i].reply->length, in krb5_prompter_posix() 91 if (prompts[i].hidden) in krb5_prompter_posix() 103 retp = strchr(prompts[i].reply->data, '\n'); in krb5_prompter_posix() 116 prompts[i].reply->length = strlen(prompts[i].reply->data); in krb5_prompter_posix() 221 krb5_prompt prompts[]) in krb5_prompter_posix() argument [all …]
|
| /freebsd/crypto/heimdal/lib/krb5/ |
| H A D | prompter_posix.c | 42 krb5_prompt prompts[]) in krb5_prompter_posix() argument 53 if (prompts[i].hidden) { in krb5_prompter_posix() 54 if(UI_UTIL_read_pw_string(prompts[i].reply->data, in krb5_prompter_posix() 55 prompts[i].reply->length, in krb5_prompter_posix() 56 prompts[i].prompt, in krb5_prompter_posix() 60 char *s = prompts[i].reply->data; in krb5_prompter_posix() 62 fputs (prompts[i].prompt, stdout); in krb5_prompter_posix() 64 if(fgets(prompts[i].reply->data, in krb5_prompter_posix() 65 prompts[i].reply->length, in krb5_prompter_posix()
|
| /freebsd/contrib/pam-krb5/tests/fakepam/ |
| H A D | config.c | 672 static struct prompts * 675 struct prompts *prompts = NULL; in parse_prompts() local 686 if (prompts == NULL) { in parse_prompts() 687 prompts = bcalloc(1, sizeof(struct prompts)); in parse_prompts() 688 prompts->prompts = bcalloc(1, sizeof(struct prompt)); in parse_prompts() 689 prompts->allocated = 1; in parse_prompts() 690 } else if (prompts->allocated == prompts->size) { in parse_prompts() 691 count = prompts->allocated * 2; in parse_prompts() 693 prompts->prompts = breallocarray(prompts->prompts, count, size); in parse_prompts() 694 prompts->allocated = count; in parse_prompts() [all …]
|
| H A D | script.c | 160 struct prompts *prompts = appdata_ptr; in converse() local 176 if (prompts->current >= prompts->size) { in converse() 184 prompt = &prompts->prompts[prompts->current]; in converse() 186 (unsigned long) prompts->current + 1); in converse() 188 (unsigned long) prompts->current + 1); in converse() 190 prompts->current++; in converse() 291 if (work->prompts != NULL) { in run_script() 293 conv.appdata_ptr = work->prompts; in run_script() 341 if (work->prompts != NULL) { in run_script() 342 for (i = 0; i < work->prompts->size; i++) { in run_script() [all …]
|
| H A D | internal.h | 82 struct prompts { struct 83 struct prompt *prompts; argument 96 struct prompts *prompts; argument
|
| H A D | README | 24 to run, the expected prompts and replies, and the expected log 157 prompts. To mark an expected prompt or output line as a regular 236 This defines the logging output, not the prompts returned through the 239 The [prompts] Section 241 The [prompts] section defines the prompts that the PAM module is 261 If the [prompts] section is present and empty, the test harness will 262 check that the PAM module does not send any prompts. If the [prompts]
|
| /freebsd/contrib/pam-krb5/module/ |
| H A D | prompting.c | 302 krb5_prompt *prompts) in record_prompt_answers() argument 312 allowed = prompts[i].reply->length; in record_prompt_answers() 327 memcpy(prompts[i].reply->data, resp[i].resp, len + 1); in record_prompt_answers() 328 prompts[i].reply->length = (unsigned int) len; in record_prompt_answers() 363 const char *banner, int num_prompts, krb5_prompt *prompts) in pamk5_prompter_krb5() argument 417 retval = format_prompt(&prompts[i], msg[current_prompt]); in pamk5_prompter_krb5() 441 retval = record_prompt_answers(resp + offset, num_prompts, prompts); in pamk5_prompter_krb5() 460 int num_prompts, krb5_prompt *prompts) in pamk5_prompter_krb5_no_password() argument 470 prompts); in pamk5_prompter_krb5_no_password() 476 int num_prompts, krb5_prompt *prompts) in pamk5_prompter_krb5_no_password() argument [all …]
|
| /freebsd/crypto/openssh/ |
| H A D | auth-bsdauth.c | 52 u_int *numprompts, char ***prompts, u_int **echo_on) in bsdauth_query() argument 59 *prompts = NULL; in bsdauth_query() 88 *prompts = xcalloc(*numprompts, sizeof(char *)); in bsdauth_query() 90 (*prompts)[0] = xstrdup(challenge); in bsdauth_query()
|
| H A D | auth2-chall.c | 261 char *name, *instr, **prompts; in send_userauth_info_request() local 266 &name, &instr, &kbdintctxt->nreq, &prompts, &echo_on)) in send_userauth_info_request() 276 if ((r = sshpkt_put_cstring(ssh, prompts[i])) != 0 || in send_userauth_info_request() 285 free(prompts[i]); in send_userauth_info_request() 286 free(prompts); in send_userauth_info_request()
|
| H A D | monitor_wrap.c | 794 u_int *num, char ***prompts, u_int **echo_on) in mm_sshpam_query() argument 817 *prompts = xcalloc((*num + 1), sizeof(char *)); in mm_sshpam_query() 820 if ((r = sshbuf_get_cstring(m, &((*prompts)[i]), NULL)) != 0 || in mm_sshpam_query() 953 char ***prompts, u_int **echo_on) in mm_chall_setup() argument 958 *prompts = xcalloc(*numprompts, sizeof(char *)); in mm_chall_setup() 965 u_int *numprompts, char ***prompts, u_int **echo_on) in mm_bsdauth_query() argument 993 mm_chall_setup(name, infotxt, numprompts, prompts, echo_on); in mm_bsdauth_query() 994 (*prompts)[0] = challenge; in mm_bsdauth_query()
|
| /freebsd/crypto/krb5/src/windows/leashdll/ |
| H A D | krb5routines.c | 159 krb5_prompt prompts[]); 796 krb5_prompt prompts[]) in leash_krb5_prompter() argument 815 tb[i].buf = prompts[i].reply->data; in leash_krb5_prompter() 816 tb[i].len = prompts[i].reply->length; in leash_krb5_prompter() 817 tb[i].label = prompts[i].prompt; in leash_krb5_prompter() 819 tb[i].echo = (prompts[i].hidden ? 2 : 1); in leash_krb5_prompter() 825 prompts[i].reply->length = strlen(prompts[i].reply->data); in leash_krb5_prompter() 834 memset(prompts[i].reply->data, 0, prompts[i].reply->length); in leash_krb5_prompter()
|
| /freebsd/contrib/pam-krb5/tests/data/scripts/password/ |
| H A D | authtok-too-long | 14 [prompts]
|
| H A D | ignore | 14 [prompts]
|
| H A D | too-long | 11 [prompts]
|
| H A D | authtok | 17 [prompts]
|
| /freebsd/contrib/pam-krb5/tests/data/scripts/long/ |
| H A D | password | 10 [prompts]
|
| H A D | password-debug | 13 [prompts]
|
| /freebsd/contrib/pam-krb5/tests/data/scripts/pam-user/ |
| H A D | update | 16 [prompts]
|
| H A D | no-update | 16 [prompts]
|
| /freebsd/contrib/pam-krb5/tests/data/scripts/expired/ |
| H A D | fail | 16 [prompts]
|
| /freebsd/contrib/pam-krb5/tests/data/scripts/pkinit/ |
| H A D | prompt-use | 16 [prompts]
|
| H A D | pin-mit | 16 [prompts]
|
| H A D | prompt-try | 16 [prompts]
|
| /freebsd/contrib/pam-krb5/tests/data/scripts/bad-authtok/ |
| H A D | try-first | 21 [prompts]
|
| /freebsd/contrib/pam-krb5/tests/data/scripts/no-cache/ |
| H A D | prompt-fail | 21 [prompts]
|