Skip to content

Commit ffdef7d

Browse files
committed
Fix terminology in prompts
1 parent 46da947 commit ffdef7d

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

pamu2fcfg/pamu2fcfg.c

+16-14
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,8 @@ static void parse_args(int argc, char *argv[], struct args *args) {
391391
" -V, --user-verification Require user verification during authentication\n"
392392
" -d, --debug Print debug information\n"
393393
" -v, --verbose Print information about chosen origin and appid\n"
394-
" -u, --username=STRING The name of the user registering the device,\n"
395-
" defaults to the current user name\n"
394+
" -u, --username=STRING The name of the user registering the FIDO\n"
395+
" authenticator, defaults to the current user name\n"
396396
" -n, --nouser Print only registration information (key handle,\n"
397397
" public key, and options), useful for appending\n"
398398
"\n"
@@ -475,37 +475,37 @@ int main(int argc, char *argv[]) {
475475

476476
r = fido_dev_info_manifest(devlist, DEVLIST_LEN, &ndevs);
477477
if (r != FIDO_OK) {
478-
fprintf(stderr, "Unable to discover device(s), %s (%d)\n", fido_strerr(r),
479-
r);
478+
fprintf(stderr, "Unable to discover FIDO authenticator(s), %s (%d)\n",
479+
fido_strerr(r), r);
480480
goto err;
481481
}
482482

483483
if (ndevs == 0) {
484484
for (int i = 0; i < TIMEOUT; i += FREQUENCY) {
485485
fprintf(stderr,
486-
"\rNo U2F device available, please insert one now, you "
486+
"\rNo FIDO authenticator available, please insert one now, you "
487487
"have %2d seconds",
488488
TIMEOUT - i);
489489
fflush(stderr);
490490
sleep(FREQUENCY);
491491

492492
r = fido_dev_info_manifest(devlist, DEVLIST_LEN, &ndevs);
493493
if (r != FIDO_OK) {
494-
fprintf(stderr, "\nUnable to discover device(s), %s (%d)",
494+
fprintf(stderr, "\nUnable to discover FIDO authenticator(s), %s (%d)\n",
495495
fido_strerr(r), r);
496496
goto err;
497497
}
498498

499499
if (ndevs != 0) {
500-
fprintf(stderr, "\nDevice found!\n");
500+
fprintf(stderr, "\nFIDO authenticator found!\n");
501501
break;
502502
}
503503
}
504504
}
505505

506506
if (ndevs == 0) {
507-
fprintf(stderr, "\rNo device found. Aborting. "
508-
" \n");
507+
fprintf(stderr, "\rNo FIDO authenticator found. Aborting. "
508+
" \n");
509509
goto err;
510510
}
511511

@@ -537,14 +537,16 @@ int main(int argc, char *argv[]) {
537537
goto err;
538538
}
539539
if (args.pin_verification && !(devopts & PIN_SET)) {
540-
warnx("%s", devopts & PIN_UNSET ? "device has no PIN"
541-
: "device does not support PIN");
540+
warnx("%s", devopts & PIN_UNSET
541+
? "FIDO authenticator has no PIN"
542+
: "FIDO authenticator does not support PIN");
542543
goto err;
543544
}
544545
if (args.user_verification && !(devopts & UV_SET)) {
545-
warnx("%s", devopts & UV_UNSET
546-
? "device has no built-in user verification configured"
547-
: "device does not support built-in user verification");
546+
warnx("%s",
547+
devopts & UV_UNSET
548+
? "FIDO authenticator has no built-in user verification configured"
549+
: "FIDO authenticator does not support built-in user verification");
548550
goto err;
549551
}
550552
if ((devopts & (UV_REQD | PIN_SET | UV_SET)) == UV_REQD) {

util.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
#define DEFAULT_AUTHFILE_DIR ".config"
1919
#define DEFAULT_AUTHFILE_DIR_SSH ".ssh"
2020
#define DEFAULT_AUTHPENDING_FILE_PATH "/var/run/user/%d/pam-u2f-authpending"
21-
#define DEFAULT_PROMPT "Insert your U2F device, then press ENTER."
22-
#define DEFAULT_CUE "Please touch the device."
21+
#define DEFAULT_PROMPT "Insert your FIDO authenticator, then press ENTER."
22+
#define DEFAULT_CUE "Please touch the FIDO authenticator."
2323
#define DEFAULT_ORIGIN_PREFIX "pam://"
2424
#define SSH_ORIGIN "ssh:"
2525

0 commit comments

Comments
 (0)