parsed make_credential
This commit is contained in:
@@ -53,4 +53,31 @@ void ctap_write(void * _data, int len)
|
||||
}
|
||||
}
|
||||
|
||||
int ctap_user_presence_test()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
int ctap_user_verification(uint8_t arg)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
uint32_t ctap_atomic_count()
|
||||
{
|
||||
static uint32_t counter = 25;
|
||||
return counter++;
|
||||
}
|
||||
|
||||
int ctap_generate_rng(uint8_t * dst, size_t num)
|
||||
{
|
||||
FILE * urand = fopen("/dev/urandom","r");
|
||||
if (urand == NULL)
|
||||
{
|
||||
perror("fopen");
|
||||
exit(1);
|
||||
}
|
||||
fread(dst, 1, num, urand);
|
||||
fclose(urand);
|
||||
}
|
||||
|
Reference in New Issue
Block a user