Add missing is_newer and pubkey
This commit is contained in:
parent
118e129152
commit
9248c6462c
8
fido2/version_check.c
Normal file
8
fido2/version_check.c
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#include "version.h"
|
||||||
|
|
||||||
|
// FIXME test version check function
|
||||||
|
bool is_newer(const version_t* const newer, const version_t* const older){
|
||||||
|
return (newer->major > older->major) ||
|
||||||
|
(newer->major == older->major && newer->minor > older->minor) ||
|
||||||
|
(newer->major == older->major && newer->minor == older->minor && newer->patch >= older->patch);
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
#include "stdint.h"
|
||||||
|
|
||||||
|
uint8_t *pubkey_nitrokey_boot = (uint8_t *) "\x7b\x2a\x9c\xf8\x21\xf6\x91\x40\x9d\x6c\x42\xe1\xbb\xa1\x31\x82\x6c\x25\x39\x31\x5b\x59\x3c\x8e\x07\x8d\xfa\x0a\x3d\x21\x35\x6f\x58\x81\x4c\xf6\xd8\xf5\x6e\x6f\x62\xc8\x32\xd3\x13\x6f\xe1\xd6\x2d\x81\x52\xbf\x5f\x9e\xa9\x29\xc9\x9d\x9e\x2c\x89\x5f\x1b\x68";
|
Loading…
x
Reference in New Issue
Block a user