Home
last modified time | relevance | path

Searched refs:prompt (Results 1 – 25 of 185) 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.c95 prompt, in usage()
128 if (prompt = strrchr(argv[0], '/')) in main()
129 ++prompt; in main()
131 prompt = argv[0]; in main()
135 rlogin = (strncmp(prompt, "rlog", 4) == 0) ? '~' : _POSIX_VDISABLE; in main()
158 "and -F allowed.\n"), prompt); in main()
169 "and -F allowed.\n"), prompt); in main()
195 prompt); in main()
215 prompt); in main()
242 prompt); in main()
[all …]
/illumos-gate/usr/src/lib/libsasl/plugin/
H A Dplugin_common.c387 sasl_interact_t *prompt; local
390 for (prompt = *promptlist; prompt->id != SASL_CB_LIST_END; ++prompt) {
391 if (prompt->id==lookingfor)
392 return prompt;
409 sasl_interact_t *prompt; local
414 prompt = _plug_find_prompt(prompt_need, id);
415 if (prompt != NULL) {
418 if (required && !prompt->result) {
423 *result = prompt->result;
456 sasl_interact_t *prompt; local
[all …]
/illumos-gate/usr/src/lib/libadm/common/
H A Dputprmpt.c39 putprmpt(FILE *fp, char *prompt, char *choices[], char *defstr) in putprmpt() argument
45 if (prompt == NULL) { in putprmpt()
48 } else if (n = (int)strlen(prompt)) { in putprmpt()
51 if (prompt[0] == '~') in putprmpt()
53 defstr, prompt + 1); in putprmpt()
54 else if (prompt[n-1] == '~') in putprmpt()
56 n - 1, prompt, defstr); in putprmpt()
58 (void) strlcpy(buffer, prompt, sizeof (buffer)); in putprmpt()
H A Dgetvol.c94 getvol(char *device, char *label, int options, char *prompt) in getvol() argument
96 return (_getvol(device, label, options, prompt, NULL)); in getvol()
100 _getvol(char *device, char *label, int options, char *prompt, char *norewind) in _getvol() argument
138 n = insert(device, label, options, prompt); in _getvol()
287 insert(char *device, char *label, int options, char *prompt) in insert() argument
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()
[all …]
H A Dckyorn.c81 ckyorn(char *yorn, char *defstr, char *error, char *help, char *prompt) in ckyorn() argument
86 if (!prompt) in ckyorn()
87 prompt = "Yes or No"; in ckyorn()
89 putprmpt(stderr, prompt, choices, defstr); in ckyorn()
H A Dckint.c89 char *prompt) in ckint() argument
97 if (!prompt) { in ckint()
99 prompt = temp; in ckint()
104 putprmpt(stderr, prompt, NULL, defstr); in ckint()
H A Dckkeywd.c65 char *prompt) in ckkeywd() argument
81 if (!prompt) in ckkeywd()
82 prompt = "Enter appropriate value"; in ckkeywd()
85 putprmpt(stderr, prompt, keyword, defstr); in ckkeywd()
/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.c55 prompt(void) in prompt() function
57 static char prompt[20]; /* probably too large, but well... */ in prompt() local
73 n = sprintf(prompt+n, "%s", ev); in prompt()
77 prompt[n++] = *p; in prompt()
80 if (prompt[n - 1] != ' ') in prompt()
81 prompt[n++] = ' '; in prompt()
82 prompt[n] = '\0'; in prompt()
84 return (prompt); in prompt()
140 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));
93 char *error, char *help, char *prompt));
103 char *error, char *help, char *prompt));
115 char *prompt));
126 char *prompt));
136 char *help, char *prompt));
147 char *help, 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.c20 char * prompt; member
69 if (p->prompt) { in krb5_os_get_tty_uio()
70 fputs(p->prompt, stdout); in krb5_os_get_tty_uio()
135 if (p->prompt && (p->flags & KRB5_UIO_FREE_PROMPT)) in krb5_free_uio()
136 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()
335 prompt[0].reply = &pw0; in __krb5_get_init_creds_password()
[all …]
H A Dpreauth.c369 …rb5_const_pointer key_seed, krb5_kdc_req *request, krb5_keyblock **new_enc_key, const char *prompt) in sam_get_pass_from_user() argument
379 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()
452 strncpy(p, prompt, prompt_len); p += prompt_len; 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()
505 retval = krb5_read_password(context, prompt, 0, passcode, &pcsize); 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.c285 yesno(char *prompt, char *invalid, boolean_t dflt) in yesno() argument
290 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()
801 "accessing the PKCS12 file: "), sizeof (prompt)); in get_pk12_password()
803 if (get_pin(prompt, NULL, (uchar_t **)&cred->cred, in get_pk12_password()
845 get_input_string(char *prompt, char *default_str, int min_len, int max_len) in get_input_string() argument
853 (void) printf("\t%s", prompt); in get_input_string()
[all …]
/illumos-gate/usr/src/lib/pam_modules/passwd_auth/
H A Dpasswd_auth.c77 char prompt[PAM_MAX_MSG_SIZE]; in pam_sm_authenticate() local
185 (void) snprintf(prompt, sizeof (prompt), in pam_sm_authenticate()
193 (void) snprintf(prompt, sizeof (prompt), in pam_sm_authenticate()
197 retval = __pam_get_authtok(pamh, PAM_PROMPT, PAM_AUTHTOK, prompt, in pam_sm_authenticate()

12345678