Home
last modified time | relevance | path

Searched refs:prompts (Results 1 – 25 of 128) sorted by relevance

123456

/freebsd/crypto/krb5/src/lib/krb5/os/
H A Dprompter.c38 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 Dprompter_posix.c42 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 Dconfig.c672 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 Dscript.c160 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 Dinternal.h82 struct prompts { struct
83 struct prompt *prompts; member
96 struct prompts *prompts; argument
H A DREADME24 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 Dprompting.c302 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 Dauth-bsdauth.c52 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 Dauth2-chall.c261 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 Dmonitor_wrap.c794 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 Dkrb5routines.c159 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 Dauthtok-too-long14 [prompts]
H A Dignore14 [prompts]
H A Dtoo-long11 [prompts]
H A Dauthtok17 [prompts]
/freebsd/contrib/pam-krb5/tests/data/scripts/long/
H A Dpassword10 [prompts]
H A Dpassword-debug13 [prompts]
/freebsd/contrib/pam-krb5/tests/data/scripts/pam-user/
H A Dupdate16 [prompts]
H A Dno-update16 [prompts]
/freebsd/contrib/pam-krb5/tests/data/scripts/expired/
H A Dfail16 [prompts]
/freebsd/contrib/pam-krb5/tests/data/scripts/pkinit/
H A Dprompt-use16 [prompts]
H A Dpin-mit16 [prompts]
H A Dprompt-try16 [prompts]
/freebsd/contrib/pam-krb5/tests/data/scripts/bad-authtok/
H A Dtry-first21 [prompts]
/freebsd/contrib/pam-krb5/tests/data/scripts/no-cache/
H A Dprompt-fail21 [prompts]

123456