Home
last modified time | relevance | path

Searched refs:prompt (Results 1 – 25 of 189) sorted by relevance

12345678

/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dpassutils.c67 char prompt[1024]; in pkcs11_get_pass() local
73 (void) snprintf(prompt, sizeof (prompt), DEFAULT_TOKEN_PROMPT, in pkcs11_get_pass()
76 (void) snprintf(prompt, sizeof (prompt), DEFAULT_USER_PROMPT); in pkcs11_get_pass()
79 tmpbuf = getpassphrase(prompt); in pkcs11_get_pass()
103 (void) snprintf(prompt, sizeof (prompt), in pkcs11_get_pass()
106 (void) snprintf(prompt, sizeof (prompt), in pkcs11_get_pass()
108 tmpbuf = getpassphrase(prompt); in pkcs11_get_pass()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dmain.c97 prompt, in usage()
130 if (prompt = strrchr(argv[0], '/')) in main()
131 ++prompt; in main()
133 prompt = argv[0]; in main()
137 rlogin = (strncmp(prompt, "rlog", 4) == 0) ? '~' : _POSIX_VDISABLE; in main()
160 "and -F allowed.\n"), prompt); in main()
171 "and -F allowed.\n"), prompt); in main()
197 prompt); in main()
217 prompt); in main()
244 prompt); in main()
[all …]
/illumos-gate/usr/src/lib/libadm/common/
H A Dputprmpt.c40 putprmpt(FILE *fp, char *prompt, char *choices[], char *defstr) in putprmpt() argument
46 if (prompt == NULL) { in putprmpt()
49 } else if (n = (int)strlen(prompt)) { in putprmpt()
52 if (prompt[0] == '~') in putprmpt()
54 defstr, prompt + 1); in putprmpt()
55 else if (prompt[n-1] == '~') in putprmpt()
57 n - 1, prompt, defstr); in putprmpt()
59 (void) strlcpy(buffer, prompt, sizeof (buffer)); in putprmpt()
H A Dgetvol.c138 n = insert(device, label, options, prompt); in _getvol()
305 if (prompt) { in insert()
306 (void) strlcpy(prmpt, prompt, sizeof (prmpt)); in insert()
307 for (pt = prmpt; *prompt; ) { in insert()
308 if ((*prompt == '\\') && (prompt[1] == '%')) in insert()
309 prompt++; in insert()
310 else if (*prompt == '%') { in insert()
311 switch (prompt[1]) { in insert()
325 prompt += 2; in insert()
328 *pt++ = *prompt++; in insert()
[all …]
H A Dckyorn.c82 ckyorn(char *yorn, char *defstr, char *error, char *help, char *prompt) in ckyorn() argument
87 if (!prompt) in ckyorn()
88 prompt = "Yes or No"; in ckyorn()
90 putprmpt(stderr, prompt, choices, defstr); in ckyorn()
H A Dckint.c90 char *prompt) in ckint() argument
98 if (!prompt) { in ckint()
100 prompt = temp; in ckint()
105 putprmpt(stderr, prompt, NULL, defstr); in ckint()
H A Dckkeywd.c66 char *prompt) in ckkeywd() argument
82 if (!prompt) in ckkeywd()
83 prompt = "Enter appropriate value"; in ckkeywd()
86 putprmpt(stderr, prompt, keyword, defstr); in ckkeywd()
H A Dckrange.c88 char *error, char *help, char *prompt) in ckrange() argument
107 if (!prompt) { in ckrange()
112 prompt = defpmpt; in ckrange()
120 putprmpt(stderr, prompt, choices, defstr); in ckrange()
/illumos-gate/usr/src/lib/libsasl/plugin/
H A Dplugin_common.c391 for (prompt = *promptlist; prompt->id != SASL_CB_LIST_END; ++prompt) {
393 return prompt;
416 if (prompt != NULL) {
464 if (prompt != NULL) {
467 if (!prompt->result) {
481 memcpy((*password)->data, prompt->result, prompt->len);
526 if (!prompt->result) {
572 if (!prompt->result) {
854 char *prompt; member
876 if (list->prompt)
[all …]
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgmount.c47 extern int getvol(char *device, char *label, int options, char *prompt);
55 char *pt, prompt[64], cmd[CMDSIZ]; in pkgmount() local
65 (void) snprintf(prompt, sizeof (prompt), in pkgmount()
68 (void) snprintf(prompt, sizeof (prompt), in pkgmount()
72 (void) snprintf(prompt, sizeof (prompt), pkg_gt(LABEL2), pkg); in pkgmount()
74 (void) snprintf(prompt, sizeof (prompt), pkg_gt(LABEL3)); in pkgmount()
85 (devp->rdonly ? 0 : DM_FORMFS|DM_WLABEL), prompt))) { in pkgmount()
/illumos-gate/usr/src/common/ficl/
H A Dmain.c54 prompt(void) in prompt() function
56 static char prompt[20]; /* probably too large, but well... */ in prompt() local
72 n = sprintf(prompt+n, "%s", ev); in prompt()
76 prompt[n++] = *p; in prompt()
79 if (prompt[n - 1] != ' ') in prompt()
80 prompt[n++] = ' '; in prompt()
81 prompt[n] = '\0'; in prompt()
83 return (prompt); in prompt()
136 if ((buffer = gl_get_line(gl, prompt(), NULL, -1)) == NULL) in main()
/illumos-gate/usr/src/cmd/svr4pkg/hdrs/
H A Dlibadm.h54 char *help, char *prompt));
65 char *help, char *prompt));
74 char *help, char *prompt));
84 char *prompt));
115 char *prompt));
126 char *prompt));
136 char *help, char *prompt));
147 char *help, char *prompt));
156 char *prompt));
222 char *prompt));
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_create/
H A Dzfs_create_encrypted.ksh85 log_mustnot zfs create -o keylocation=prompt $TESTPOOL/$TESTFS1/c1
86 log_mustnot zfs create -o keyformat=passphrase -o keylocation=prompt \
90 log_mustnot zfs create -o encryption=off -o keylocation=prompt \
95 -o keylocation=prompt $TESTPOOL/$TESTFS1/c2
98 log_mustnot zfs create -o encryption=on -o keylocation=prompt \
110 log_mustnot zfs create -o keylocation=prompt $TESTPOOL/$TESTFS2/c2
119 log_mustnot zfs create -o encryption=off -o keylocation=prompt \
124 -o keylocation=prompt $TESTPOOL/$TESTFS2/c5
128 log_mustnot zfs create -o encryption=on -o keylocation=prompt \
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dread_pwd.c44 krb5_read_password(krb5_context context, const char *prompt, const char *prompt2, char *return_pwd,… in krb5_read_password() argument
51 k5prompt.prompt = (char *)prompt; in krb5_read_password()
61 k5prompt.prompt = (char *)prompt2; in krb5_read_password()
120 const char * prompt, in read_console_password() argument
145 (void) fputs(prompt, stdout); in read_console_password()
243 krb5_read_password(context, prompt, prompt2, return_pwd, size_return) in krb5_read_password() argument
245 const char *prompt;
258 (context, prompt, prompt2, return_pwd, size_return));
261 dps.pwd_prompt = prompt;
287 krb5_read_password(context, prompt, prompt2, return_pwd, size_return) in krb5_read_password() argument
[all …]
H A Dpromptusr.c21 char * prompt; member
70 if (p->prompt) { in krb5_os_get_tty_uio()
71 fputs(p->prompt, stdout); in krb5_os_get_tty_uio()
136 if (p->prompt && (p->flags & KRB5_UIO_FREE_PROMPT)) in krb5_free_uio()
137 free(p->prompt); in krb5_free_uio()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dgic_pwd.c60 krb5_prompt prompt; in krb5_get_as_key_password() local
93 prompt.prompt = promptstr; in krb5_get_as_key_password()
94 prompt.hidden = 1; in krb5_get_as_key_password()
95 prompt.reply = password; in krb5_get_as_key_password()
101 1, &prompt))))) { in krb5_get_as_key_password()
175 krb5_prompt prompt[2]; in __krb5_get_init_creds_password() local
176 krb5_prompt_type prompt_types[sizeof(prompt)/sizeof(prompt[0])]; in __krb5_get_init_creds_password()
333 prompt[0].prompt = "Enter new password"; in __krb5_get_init_creds_password()
334 prompt[0].hidden = 1; in __krb5_get_init_creds_password()
338 prompt[1].prompt = "Enter it again"; in __krb5_get_init_creds_password()
[all …]
H A Dpreauth.c379 krb5_default_pwd_prompt1 = prompt; in sam_get_pass_from_user()
396 char *prompt = sc->sam_response_prompt.data; in handle_sam_labels() local
432 prompt = "Passcode"; in handle_sam_labels()
434 prompt_len = strlen(prompt); in handle_sam_labels()
473 char * prompt; in obtain_sam_padata() local
500 prompt = handle_sam_labels(sam_challenge); in obtain_sam_padata()
501 if (prompt == NULL) { in obtain_sam_padata()
506 free(prompt); in obtain_sam_padata()
516 if (prompt == NULL) in obtain_sam_padata()
520 prompt); in obtain_sam_padata()
[all …]
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dgetpass.c56 getpass(const char *prompt) in getpass() argument
58 return ((char *)__getpass(prompt, SMLPASSWD)); in getpass()
62 getpassphrase(const char *prompt) in getpassphrase() argument
64 return ((char *)__getpass(prompt, MAXPASSWD)); in getpassphrase()
70 __getpass(const char *prompt, int size) in __getpass() argument
97 (void) fputs(prompt, fi); in __getpass()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_encrypted.ksh67 log_mustnot zpool create -O keylocation=prompt $TESTPOOL $DISKS
69 log_mustnot zpool create -O keyformat=passphrase -O keylocation=prompt \
75 log_mustnot zpool create -O encryption=off -O keylocation=prompt \
80 -O keylocation=prompt $TESTPOOL $DISKS
83 log_mustnot zpool create -O encryption=on -O keylocation=prompt \
/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/
H A Dsfdcmore.c50 char prompt[1]; /* prompt string */ member
213 r = ttyquery(sfstdin, f, more->prompt, dp);
303 int sfdcmore(Sfio_t* f, const char* prompt, int rows, int cols) in sfdcmore() argument
305 int sfdcmore(f, prompt, rows, cols) in sfdcmore()
307 char* prompt;
321 if (!prompt)
322 prompt = "\033[7m More\033[m";
323 n = strlen(prompt) + 1;
331 memcpy(more->prompt, prompt, n);
/illumos-gate/usr/src/cmd/keyserv/
H A Dnewkey.c334 char prompt[MAXPASSWD+MAXHOSTNAMELEN+64]; local
369 (void) sprintf(prompt, "Enter local root login password:");
371 (void) sprintf(prompt, "Enter %s's login password:",
374 pass = getpassphrase(prompt);
421 (void) sprintf(prompt,
424 pass = getpassphrase(prompt);
443 (void) sprintf(prompt,
446 pass = getpassphrase(prompt);
/illumos-gate/usr/src/boot/common/
H A Dboot.c126 char *cp, *prompt; in command_autoboot() local
128 prompt = NULL; in command_autoboot()
132 prompt = argv[2]; in command_autoboot()
143 return (autoboot(howlong, prompt)); in command_autoboot()
169 autoboot(int timeout, char *prompt) in autoboot() argument
208 printf("%s\n", (prompt == NULL) ? in autoboot()
210 "for command prompt." : prompt); in autoboot()
/illumos-gate/usr/src/boot/common/linenoise/
H A Dlinenoise.c127 const char *prompt; /* Prompt to display. */ member
339 size_t plen = strlen(l->prompt); in refreshSingleLine()
359 abAppend(&ab,l->prompt,strlen(l->prompt)); in refreshSingleLine()
378 int plen = strlen(l->prompt); in refreshMultiLine()
409 abAppend(&ab,l->prompt,strlen(l->prompt)); in refreshMultiLine()
599 static int linenoiseEdit(char *buf, size_t buflen, const char *prompt) in linenoiseEdit() argument
607 l.prompt = prompt; in linenoiseEdit()
608 l.plen = strlen(prompt); in linenoiseEdit()
623 printf ("%s", prompt); in linenoiseEdit()
775 char *linenoise(const char *prompt) { in linenoise() argument
[all …]
/illumos-gate/usr/src/lib/krb5/ss/
H A Dinvocation.c53 new_table->prompt = malloc((unsigned)strlen(subsystem_name)+3);
54 strcpy(new_table->prompt, subsystem_name);
55 strcat(new_table->prompt, ": ");
79 free(t->prompt);
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/
H A Dcommon.c290 if (prompt == NULL) in yesno()
291 prompt = gettext("Enter (y)es or (n)o? "); in yesno()
295 (void) printf("%s", prompt); in yesno()
794 char prompt[1024]; in get_pk12_password() local
799 (void) strlcpy(prompt, in get_pk12_password()
853 (void) printf("\t%s", prompt); in get_input_string()
892 char prompt[1024]; in get_filename() local
895 (void) snprintf(prompt, sizeof (prompt), in get_filename()
898 fname = get_input_string(prompt, NULL, in get_filename()
1111 char prompt[1024]; in get_token_password() local
[all …]

12345678