/freebsd/contrib/libfido2/fuzz/ |
H A D | fuzz_credman.c | 25 struct blob cred_id; member 100 unpack_blob(v[3], &p->cred_id) < 0 || in unpack() 133 (argv[3] = pack_blob(&p->cred_id)) == NULL || in pack() 180 dummy.cred_id.len = sizeof(dummy_cred_id); in pack_dummy() 190 memcpy(&dummy.cred_id.body, &dummy_cred_id, dummy.cred_id.len); in pack_dummy() 340 fido_credman_del_dev_rk(dev, p->cred_id.body, p->cred_id.len, p->pin); in del_rk() 359 r0 = fido_cred_set_id(cred, p->cred_id.body, p->cred_id.len); in set_rk() 360 r1 = fido_cred_set_user(cred, p->cred_id.body, p->cred_id.len, p->rp_id, in set_rk() 396 mutate_blob(&p->cred_id); in mutate()
|
/freebsd/contrib/libfido2/tools/ |
H A D | largeblob.c | 98 const struct blob *cred_id, char **pin, struct blob *key) in lookup_key() argument 124 if (n == 1 && cred_id->len == 0) { in lookup_key() 128 if (cred_id->len == 0) { in lookup_key() 134 if (fido_cred_id_len(x) <= cred_id->len && in lookup_key() 135 !memcmp(fido_cred_id_ptr(x), cred_id->ptr, in lookup_key() 168 struct blob cred_id; in load_key() local 172 memset(&cred_id, 0, sizeof(cred_id)); in load_key() 185 if (cred_id64 != NULL && base64_decode(cred_id64, (void *)&cred_id.ptr, in load_key() 186 &cred_id.len) < 0) { in load_key() 190 r = lookup_key(path, dev, rp_id, &cred_id, pin, key); in load_key() [all …]
|
H A D | token.c | 302 char *cred_id = NULL; in token_info() local 319 cred_id = optarg; in token_info() 329 if (path == NULL || (credman && (cred_id != NULL || rp_id != NULL))) in token_info() 336 if (cred_id && rp_id) in token_info() 337 return (credman_print_rk(dev, path, rp_id, cred_id)); in token_info() 338 if (cred_id || rp_id) in token_info()
|
H A D | credman.c | 186 const char *cred_id) in credman_print_rk() argument 199 if (base64_decode(cred_id, &cred_id_ptr, &cred_id_len) < 0) { in credman_print_rk() 277 credman_update_rk(const char *path, const char *user_id, const char *cred_id, in credman_update_rk() argument 291 base64_decode(cred_id, &cred_id_ptr, &cred_id_len) < 0) { in credman_update_rk()
|
/freebsd/contrib/libfido2/examples/ |
H A D | README.adoc | 16 - <cred_id> 50 - cred [-t es256|es384|rs256|eddsa] [-k pubkey] [-ei cred_id] [-P pin] 57 ID is stored in <cred_id>. The -e option may be used to add <cred_id> 69 - assert [-t es256|es384|rs256|eddsa] [-a cred_id] [-h hmac_secret] [-P pin] 72 Asks <device> for a FIDO2 assertion corresponding to [cred_id],
|
/freebsd/contrib/libfido2/src/ |
H A D | credman.c | 464 credman_del_rk_wait(fido_dev_t *dev, const unsigned char *cred_id, in credman_del_rk_wait() argument 472 if (fido_blob_set(&cred, cred_id, cred_id_len) < 0) in credman_del_rk_wait() 488 fido_credman_del_dev_rk(fido_dev_t *dev, const unsigned char *cred_id, in fido_credman_del_dev_rk() argument 493 return (credman_del_rk_wait(dev, cred_id, cred_id_len, pin, &ms)); in fido_credman_del_dev_rk()
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | config_file.c | 309 static int cred_id = 0; in wpa_config_read() local 363 cred = wpa_config_read_cred(f, &line, cred_id++); in wpa_config_read()
|
/freebsd/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_new_handlers.c | 1885 char *iface, *cred_id; in wpas_dbus_handler_remove_cred() local 1895 op, WPAS_DBUS_NEW_CREDENTIALS_PART, &cred_id); in wpas_dbus_handler_remove_cred() 1896 if (!iface || !cred_id || !wpa_s->dbus_new_path || in wpas_dbus_handler_remove_cred() 1903 id = strtoul(cred_id, NULL, 10); in wpas_dbus_handler_remove_cred()
|