Lines Matching refs:r

51 	int		 r;
57 r = fido_cred_set_type(cred, type);
58 if (r != FIDO_OK)
59 errx(1, "fido_cred_set_type: %s (0x%x)", fido_strerr(r), r);
62 r = fido_cred_set_clientdata(cred, cd, sizeof(cd));
63 if (r != FIDO_OK)
64 errx(1, "fido_cred_set_clientdata: %s (0x%x)", fido_strerr(r), r);
67 r = fido_cred_set_rp(cred, "localhost", "sweet home localhost");
68 if (r != FIDO_OK)
69 errx(1, "fido_cred_set_rp: %s (0x%x)", fido_strerr(r), r);
72 r = fido_cred_set_authdata(cred, authdata_ptr, authdata_len);
73 if (r != FIDO_OK)
74 errx(1, "fido_cred_set_authdata: %s (0x%x)", fido_strerr(r), r);
77 r = fido_cred_set_extensions(cred, ext);
78 if (r != FIDO_OK)
79 errx(1, "fido_cred_set_extensions: %s (0x%x)", fido_strerr(r), r);
82 if (rk && (r = fido_cred_set_rk(cred, FIDO_OPT_TRUE)) != FIDO_OK)
83 errx(1, "fido_cred_set_rk: %s (0x%x)", fido_strerr(r), r);
86 if (uv && (r = fido_cred_set_uv(cred, FIDO_OPT_TRUE)) != FIDO_OK)
87 errx(1, "fido_cred_set_uv: %s (0x%x)", fido_strerr(r), r);
90 if (cred_protect != 0 && (r = fido_cred_set_prot(cred,
92 errx(1, "fido_cred_set_prot: %s (0x%x)", fido_strerr(r), r);
95 r = fido_cred_set_fmt(cred, fmt);
96 if (r != FIDO_OK)
97 errx(1, "fido_cred_set_fmt: %s (0x%x)", fido_strerr(r), r);
105 r = fido_cred_set_attstmt(cred, attstmt_ptr, attstmt_len);
106 if (r != FIDO_OK)
107 errx(1, "fido_cred_set_attstmt: %s (0x%x)", fido_strerr(r), r);
109 r = fido_cred_verify(cred);
110 if (r != FIDO_OK)
111 errx(1, "fido_cred_verify: %s (0x%x)", fido_strerr(r), r);
167 int r;
192 r = fido_cred_exclude(cred, body, len);
193 if (r != FIDO_OK)
195 fido_strerr(r), r);
215 case 'r':
252 r = fido_dev_open(dev, argv[0]);
253 if (r != FIDO_OK)
254 errx(1, "fido_dev_open: %s (0x%x)", fido_strerr(r), r);
259 r = fido_cred_set_type(cred, type);
260 if (r != FIDO_OK)
261 errx(1, "fido_cred_set_type: %s (0x%x)", fido_strerr(r), r);
264 r = fido_cred_set_clientdata(cred, cd, sizeof(cd));
265 if (r != FIDO_OK)
266 errx(1, "fido_cred_set_clientdata: %s (0x%x)", fido_strerr(r), r);
269 r = fido_cred_set_rp(cred, "localhost", "sweet home localhost");
270 if (r != FIDO_OK)
271 errx(1, "fido_cred_set_rp: %s (0x%x)", fido_strerr(r), r);
274 r = fido_cred_set_user(cred, user_id, sizeof(user_id), "john smith",
276 if (r != FIDO_OK)
277 errx(1, "fido_cred_set_user: %s (0x%x)", fido_strerr(r), r);
280 r = fido_cred_set_extensions(cred, ext);
281 if (r != FIDO_OK)
282 errx(1, "fido_cred_set_extensions: %s (0x%x)", fido_strerr(r), r);
285 if (rk && (r = fido_cred_set_rk(cred, FIDO_OPT_TRUE)) != FIDO_OK)
286 errx(1, "fido_cred_set_rk: %s (0x%x)", fido_strerr(r), r);
289 if (uv && (r = fido_cred_set_uv(cred, FIDO_OPT_TRUE)) != FIDO_OK)
290 errx(1, "fido_cred_set_uv: %s (0x%x)", fido_strerr(r), r);
293 if (cred_protect != 0 && (r = fido_cred_set_prot(cred,
295 errx(1, "fido_cred_set_prot: %s (0x%x)", fido_strerr(r), r);
298 if (ms != 0 && (r = fido_dev_set_timeout(dev, (int)ms)) != FIDO_OK)
299 errx(1, "fido_dev_set_timeout: %s (0x%x)", fido_strerr(r), r);
301 if ((r = fido_dev_make_cred(dev, cred, pin)) != FIDO_OK) {
303 errx(1, "fido_makecred: %s (0x%x)", fido_strerr(r), r);
306 r = fido_dev_close(dev);
307 if (r != FIDO_OK)
308 errx(1, "fido_dev_close: %s (0x%x)", fido_strerr(r), r);