Lines Matching +full:key +full:- +full:up
2 * Copyright (c) 2018-2023 Yubico AB. All rights reserved.
3 * Use of this source code is governed by a BSD-style
5 * SPDX-License-Identifier: BSD-2-Clause
16 #include "../openbsd-compat/openbsd-compat.h"
20 fido_opt_t up;
46 char *key;
54 key = assignment;
64 if (!strcmp(key, "up"))
65 k = &opt->up;
66 else if (!strcmp(key, "uv"))
67 k = &opt->uv;
68 else if (!strcmp(key, "pin"))
69 k = &opt->pin;
71 errx(1, "unknown key '%s'", key);
110 fprintf(stderr, "up=%s\n", opt2str(opt->up));
111 fprintf(stderr, "uv=%s\n", opt2str(opt->uv));
112 fprintf(stderr, "pin=%s\n", opt2str(opt->pin));
125 if ((r = fido_assert_set_up(assert, opt->up)) != FIDO_OK)
127 if ((r = fido_assert_set_uv(assert, opt->uv)) != FIDO_OK)
167 char *key = NULL;
184 fido_assert_largeblob_key_len(assert, idx), &key);
198 if (key) {
199 fprintf(out_f, "%s\n", key);
200 explicit_bzero(key, strlen(key));
203 free(key);
227 opt.up = opt.uv = opt.pin = FIDO_OPT_OMIT;
229 while ((ch = getopt(argc, argv, "bdhi:o:prt:uvw")) != -1) {
247 opt.up = FIDO_OPT_TRUE;
259 /* -v implies both pin and uv for historical reasons */
271 argc -= optind;