Add missing is_newer and pubkey

This commit is contained in:
Szczepan Zalega
2019-08-06 16:56:02 +02:00
parent 118e129152
commit 9248c6462c
2 changed files with 11 additions and 0 deletions

8
fido2/version_check.c Normal file
View 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);
}