fido_cred_set_type
int fido_cred_set_type(fido_cred_t *, int);
fido_cred_set_type(cred, credtype);
if ((r = fido_cred_set_type(cred, cose_alg)) != FIDO_OK) {